[BUGFIX] Enable class/data-* attributes in RTE elements 49/52349/3
authorBenni Mack <benni@typo3.org>
Tue, 4 Apr 2017 05:24:26 +0000 (07:24 +0200)
committerAndreas Fernandez <typo3@scripting-base.de>
Tue, 4 Apr 2017 06:41:35 +0000 (08:41 +0200)
CKEditor should allow data attributes and class attribute by
default, otherwise any link added in the typolink popup
will get removed automatically by CKEditor's Content filter.

Releases: master
Resolves: #80666
Change-Id: Ia2bc0308fbe01d96019666010aed036532f8a10d
Reviewed-on: https://review.typo3.org/52349
Reviewed-by: Frans Saris <franssaris@gmail.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Jan Helke <typo3@helke.de>
Tested-by: Jan Helke <typo3@helke.de>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>

index 0add8a3..974a43f 100644 (file)
@@ -7,6 +7,8 @@ editor:
     # will be overridden by the record (if a language is set)
     defaultContentLanguage: "en"
     defaultLanguage: "en"
+    # Allow any class or any data attribute in any tag
+    extraAllowedContent: "*(*)[data-*]"
     height: 300
     width: "auto"
     toolbar: "Basic"