Project

General

Profile

Actions

Bug #59574

closed

RTE: JS exception raised in BlockStyle plugin regarding property disableStyleOnOptionLabel

Added by Sebastian Stelmasik almost 10 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Category:
RTE (rtehtmlarea + ckeditor)
Target version:
Start date:
2014-06-14
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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

Actions

Also available in: Atom PDF