Project

General

Profile

Actions

Bug #29509

closed

RTE removes style attribute of p tag when saving to the database

Added by Helmut Hummel over 12 years ago. Updated over 12 years ago.

Status:
Rejected
Priority:
Should have
Category:
RTE (rtehtmlarea + ckeditor)
Target version:
-
Start date:
2011-09-06
Due date:
% Done:

0%

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

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

Actions #1

Updated by Stanislas Rolland over 12 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)

Actions #2

Updated by Helmut Hummel over 12 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!

Actions

Also available in: Atom PDF