[TYPO3] how to keep a custom class on a blockquote tag?
David Lanier
mailinglists at davidlanier.com
Mon Apr 2 16:35:05 CEST 2007
(already posted to the RTE list, but no response there yet, so posting
here.)
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?
Thanks in advance,
David Lanier
PS, Should I post a complete Page TSConfig?
More information about the TYPO3-english
mailing list