[TYPO3-RTE] how to keep a custom class on a blockquote tag?

Martin Kutschker martin.kutschker-n0spam at no5pam-blackbox.net
Mon Apr 2 18:43:42 CEST 2007


David Lanier schrieb:
> Hello,
> 
> I've defined a couple of custom classes for a blockquote tag: 
> "pull_left" and "pull_right".  I'm able to select them from the list 
> when I've selected a blockquote in the RTE.  At that point, in the 
> status bar, there is this:
> 
> Path: body -> blockquote.pull_right -> p
> 
> which what I want.  But after saving, the "pull_right" class is removed.
> 
> I have defined the same sort of thing for <p> and <a> tags, and they 
> work fine.
> 
> Page TSConfig:
> RTE.default.classesParagraph = notice
> RTE.default.classesAnchor = term
> RTE.default.proc.allowedClasses (
>     term, data, notice, pull_right, pull_left
> )
>  # add "class" to list of allowed attributes for blockquote
> RTE.default.proc.entryHTMLparser_db.tags.blockquote.allowedAttribs := 
> addToList(class)
> 
> I've also tried this:
> RTE.default.proc.entryHTMLparser_db.tags.blockquote.allowedAttribs >
> 
> All of this appears as expected when viewing Page TSConfig using the 
> Info Module.
> 
> Everything I've tried gives me the same result.  I can select the 
> appropriate class in the RTE, but it's removed when saving to the 
> database.  And only with Blockquotes.  Classes are attached to P and A 
> tags without any trouble.
> 
> Any advice?

Is classed a preserved attribute of blockquote for the field in 
question? I see that you have changed this for default 
(entryHTMLparser_db), but have a look at page info if something else is 
there.

Masi


More information about the TYPO3-project-rte mailing list