[TYPO3-RTE] RTE in frontend: transforming tags into entities
Michael Bakonyi
konakt at mb-neuemedien.de
Fri Nov 7 08:51:25 CET 2008
Hm, can't anybody help me out with this?
Michael
Michael Bakonyi schrieb:
> Hi,
>
> I use the extension news_feedit toghether with mth_feedit, which
> together provide frontend-editing of tt_news-records via the frontend.
> Now there's the problem, that tags are transformed into entities when I
> save the record in the frontend.
>
> So for example <p>asdf</p> becomes <p>asdf</p>
>
> For the frontend I use the same RTE-config as for the backend:
>
>
>
> RTE{
>
> default{
>
> enableWordClean = 1
> removeTrailingBR = 1
> removeComments = 1
> removeTags = center, sdfield
> removeTagsAndContents = style,script
>
> # ----- STANDARD-FARB-AUSWAHL ----- */
> disableColorPicker = 1
>
> # ----- PFAD-ANZEIGE UNTEN AUSBLENDEN ----- */
> showStatusBar = 0
>
> # ----- BUTTONS-ANZEIGE ----- */
> showButtons = *
>
> # ----- EINTRÄGE IM DROPDOWN "ABSATZ" ----- */
> hidePStyleItems = h1, h5, h6, pre, address
>
> keepButtonGroupTogether = 1
>
> showTagFreeClasses = 1
>
> ignoreMainStyleOverride = 1
>
> contentCSS = fileadmin/templates/css/screen/typo3/typo3_rte.css
>
> proc{
>
> allowTags = table, tbody, tr, th, td, h1, h2, h3, h4, h5,
> h6, div, p, br, span, ul, ol, li, re, blockquote, strong, em, b, i, u,
> sub, sup, strike, a, img, nobr, hr, tt, q, cite, abbr, acronym, center
> denyTags = font
>
> entryHTMLparser_db = 1
> entryHTMLparser_db {
> # tags die erlaubt/verboten sind
> allowTags < RTE.default.proc.allowTags
> denyTags < RTE.default.proc.denyTags
>
> # CLEAN TAGS
> noAttrib = b, i, u, strike, sub, sup, strong, em, quote,
> blockquote, cite, tt, br, center
>
> rmTagIfNoAttrib = span,div,font
>
> htmlSpecialChars = 0
>
> ## align attribute werden erlaubt
> tags {
> p.fixAttrib.align.unset >
> p.allowedAttribs = class,style,align
>
> div.fixAttrib.align.unset >
>
> # b und i tags werden ersetzt (em / strong)
> b.remap = strong
> i.remap = em
>
> ## img tags werden erlaubt
> img >
> }
> }
>
> exitHTMLparser_db = 1
> exitHTMLparser_db {
> tags.b.remap = strong
> tags.i.remap = em
>
> htmlSpecialChars = 0
> }
>
> HTMLparser_rte {
> # tags die erlaubt/verboten sind
> allowTags < RTE.default.proc.allowTags
> denyTags < RTE.default.proc.denyTags
>
> # tags die untersagt sind
> removeTags = font
>
> # entfernt html-kommentare
> removeComments = 1
>
> keepNonMatchedTags = 0
> }
> }
>
> # Do not allow insertion of the following tags
> hideTags = font
>
> # ----- LINK-POPUP-KONFIGURATION ----- */
>
> # ----- STIL-DROPDOWN AUSBLENDEN ----- */
> classesAnchor >
> classesLinks >
>
> # ----- FRAME-ZIEL ----- */
> buttons.link.targetSelector.disabled = 1
>
> # ----- POPUP-MÖGLICHKEIT ----- */
> buttons.link.popupSelector.disabled = 1
>
> FE < RTE.default
> FE.showButtons = bold, italic, unorderedlist, insertcharacter, link
> FE.userElements >
> FE.userLinks >
>
> }
>
> }
>
> I don't know if there's a problem with my config or with the extension.
> Would be glad if someone could help me out with that.
>
> Michael
More information about the TYPO3-project-rte
mailing list