Skip to content
Snippets Groups Projects
Commit d5066ad2 authored by Armin Vieweg's avatar Armin Vieweg Committed by Christian Kuhn
Browse files

[BUGFIX] Fixes required CKeditor fields in flexforms

CKeditor throwed errors in javascript, when field identifier
contained dot's. Using array syntax for CKEDITOR.instances
solved this issue.

Releases: master, 8.7
Resolves: #81390
Change-Id: I1f876de7aab1b6370aa89420600079c1439d339d
Reviewed-on: https://review.typo3.org/53490


Tested-by: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: default avatarFrans Saris <franssaris@gmail.com>
Tested-by: default avatarFrans Saris <franssaris@gmail.com>
Reviewed-by: default avatarAndreas Fernandez <typo3@scripting-base.de>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
parent c0d350cb
No related merge requests found
......@@ -182,8 +182,8 @@ class RichTextElement extends AbstractFormElement
$(function(){
CKEDITOR.replace("' . $fieldId . '", ' . json_encode($configuration) . ');
require([\'jquery\', \'TYPO3/CMS/Backend/FormEngine\'], function($, FormEngine) {
CKEDITOR.instances.' . $fieldId . '.on(\'change\', function() {
CKEDITOR.instances.' . $fieldId . '.updateElement();
CKEDITOR.instances["' . $fieldId . '"].on(\'change\', function() {
CKEDITOR.instances["' . $fieldId . '"].updateElement();
FormEngine.Validation.validate();
FormEngine.Validation.markFieldAsChanged($(\'#' . $fieldId . '\'));
});
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment