Bug #59574
closedRTE: JS exception raised in BlockStyle plugin regarding property disableStyleOnOptionLabel
100%
Description
Hi,
using own RTE-Configuration causes exceptions, as plugins try to check deprecated variable (disableStyleOnOptionLabel):
[root@mail web]# find ./typo3_src-6.2.3/typo3/sysext/rtehtmlarea/ -type f | xargs grep disableStyleOnOptionLabel
./typo3_src-6.2.3/typo3/sysext/rtehtmlarea/htmlarea/plugins/BlockStyle/block-style.js: if (!this.pageTSconfiguration.*disableStyleOnOptionLabel*) {
./typo3_src-6.2.3/typo3/sysext/rtehtmlarea/htmlarea/plugins/TextStyle/text-style.js: style: (!(this.pageTSconfiguration && this.pageTSconfiguration.*disableStyleOnOptionLabel*) && HTMLArea.classesValues && HTMLArea.classesValues[cssClass] && !HTMLArea.classesNoShow[cssClass]) ? HTMLArea.classesValues[cssClass] : null
This causes a JS exception which blocks Table injection s. http://forum.typo3.org/index.php/t/198506/
TypeError: this.pageTSconfiguration is undefined
if (!this.pageTSconfiguration.disableStyleOnOptionLabel) { merged...612 (Zeile 15064)
As a workaround I just commented out the if-clause.
Best regards,
Stelli
Updated by Stanislas Rolland about 10 years ago
- Category set to RTE (rtehtmlarea + ckeditor)
Updated by Stanislas Rolland about 10 years ago
- Subject changed from RTE JS-Plugins checking deprecated variable: disableStyleOnOptionLabel to RTE: JS exception raised in BlockStyle plugin regarding property disableStyleOnOptionLabel
- Assignee set to Stanislas Rolland
- Target version set to next-patchlevel
Property disableStyleOnOptionLabel is NOT deprecated.
The problem is that the BlockStyle plugin checks for this.pageTSconfiguration.disableStyleOnOptionLabel without checking first that this.pageTSconfiguration exists at all.
Updated by Gerrit Code Review about 10 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/33915
Updated by Gerrit Code Review about 10 years ago
Patch set 1 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/33916
Updated by Stanislas Rolland about 10 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset a78edef6336a19971382552fdb0ebd8c945daff2.