Bug #29509
closedRTE removes style attribute of p tag when saving to the database
0%
Description
I have the following configuration:
RTE.default.proc.entryHTMLparser_db.tags.span.allowedAttribs = id, title, dir, lang, xml:lang, class, style
RTE.default.proc.entryHTMLparser_db.tags.p.allowedAttribs = class, align, style
Now, when I select a color for a paragraph and save it, the color is lost because the style tag is removed from the p tag.
The style attribute from span tags is preserved though.
A similar configuration is working in TYPO3 version 4.4
Updated by Stanislas Rolland about 13 years ago
- Status changed from New to Needs Feedback
- Assignee set to Stanislas Rolland
You may check the RTE configuration option "Enable features that use the style attribute" in the Extension Manager.
If not, I think you need:
RTE.default.proc.keepPDIVattribs := addToList(style)
Updated by Helmut Hummel about 13 years ago
- Status changed from Needs Feedback to Rejected
I'm sorry. You're right. I had "Enable features that use the style attribute" in the extension configuration enabled, but anybody has overwritten the RTE.default.proc.keepPDIVattribs property, forgetting to add "style" there. After setting it correctly, it worked.
Thanks!