Bug #80839
closedRTE CKEditor
0%
Description
i used the CKEditor (Be) for my own Extension, with Flexforms. And make dots in me setting arguments e.g.
<settings.description>
<TCEforms>
<exclude>1</exclude>
<label>Beschreibung</label>
<config>
<type>text</type>
<rows>5</rows>
<cols>30</cols>
<eval>trim</eval>
</config>
<defaultExtras>richtext[]:rte_transform[mode=ts_css]</defaultExtras>
</TCEforms>
</settings.description>
then i got the following error Message
index.php?route=%2Frecord%2Fedit&token=d0ec8fb…&edit[tt_content][39…:245 Uncaught TypeError: Cannot read property 'description' of undefined at index.php?route=%2Frecord%2Fedit&token=d0ec8fb…&edit[tt_content][39…:245
...
The problem is:
require(["ckeditor"], function(CKEDITOR) {
...
require(['TYPO3/CMS/Backend/FormEngine'], function(FormEngine) {
CKEDITOR.instances.data_tt_content__39__pi_flexform__data__general__lDEF__settings.description__vDEF_.on('change', function() {
CKEDITOR.instances.data_tt_content__39__pi_flexform__data__general__lDEF__settings.description__vDEF_.updateElement();
FormEngine.Validation.validate();
});
});
});
the CKEDITOR Object make the eventhandling to onChange with the requlare dots, but with spaceing dots in my variable broke the settings.
From:
CKEDITOR.instances.data_tt_content__39__pi_flexform__data__general__lDEF__settings.description__vDEF_.on('change'
Must change to:
CKEDITOR.instances['data_tt_content__39__pi_flexform__data__general__lDEF__settings.description__vDEF_'].on('change'
Thx :)
Updated by Filipe DA COSTA COSTA about 7 years ago
I'm having the same issue.
Tommy's proposed changes seems to work.
Updated by Benni Mack about 7 years ago
- Target version changed from 8 LTS to next-patchlevel
Updated by Łukasz Uznański over 6 years ago
It's already solved here: https://review.typo3.org/#/c/53490/
Updated by Frank Nägler over 6 years ago
- Status changed from New to Closed
I will close this issue, because it is already fixed in v8 and master with: https://review.typo3.org/#/c/53490/
If I am wrong, please feel free to open a new issue.