[BUGFIX] Allow requirejs modules from wizards in RTE fields 53/57753/3
authorHelmut Hummel <typo3@helhum.io>
Wed, 1 Aug 2018 10:42:47 +0000 (12:42 +0200)
committerNicole Cordes <typo3@cordes.co>
Wed, 1 Aug 2018 13:27:52 +0000 (15:27 +0200)
The RichTextElement must not unset "requireJsModules"
from the result array as this removes previously added
modules.

Resolves: #85705
Releases: master, 8.7
Change-Id: I495732f0a1f16db84b8ec6daa2fd028e4a3a9dee
Reviewed-on: https://review.typo3.org/57753
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Nicole Cordes <typo3@cordes.co>
Tested-by: Nicole Cordes <typo3@cordes.co>
typo3/sysext/rte_ckeditor/Classes/Form/Element/RichTextElement.php

index a12b8bd..aa8dc95 100644 (file)
@@ -130,7 +130,6 @@ class RichTextElement extends AbstractFormElement
         $resultArray['html'] = implode(LF, $html);
 
         $this->rteConfiguration = $config['richtextConfiguration']['editor'];
-        $resultArray['requireJsModules'] = [];
         $resultArray['requireJsModules'][] = [
             'ckeditor' => $this->getCkEditorRequireJsModuleCode($fieldId)
         ];