diff --git a/typo3/sysext/rte_ckeditor/Classes/Form/Element/RichTextElement.php b/typo3/sysext/rte_ckeditor/Classes/Form/Element/RichTextElement.php index 295f8a3cf0e599404eaaf5746088b61ff277a892..bd0373a46967bd0333451e27629428960df84cb1 100644 --- a/typo3/sysext/rte_ckeditor/Classes/Form/Element/RichTextElement.php +++ b/typo3/sysext/rte_ckeditor/Classes/Form/Element/RichTextElement.php @@ -197,9 +197,9 @@ class RichTextElement extends AbstractFormElement return 'function(CKEDITOR) { ' . $externalPlugins . ' - $(function(){ - CKEDITOR.replace("' . $fieldId . '", ' . json_encode($configuration) . '); - require([\'jquery\', \'TYPO3/CMS/Backend/FormEngine\'], function($, FormEngine) { + require([\'jquery\', \'TYPO3/CMS/Backend/FormEngine\'], function($, FormEngine) { + $(function(){ + CKEDITOR.replace("' . $fieldId . '", ' . json_encode($configuration) . '); CKEDITOR.instances["' . $fieldId . '"].on(\'change\', function() { CKEDITOR.instances["' . $fieldId . '"].updateElement(); FormEngine.Validation.validate();