[TYPO3-RTE] <SPAN> Tag lost

Martin Brulisauer martin.brulisauer at tux-gmbh.ch
Fri Jan 27 17:24:30 CET 2006


Hi Stanislas

>"Stanislas Rolland" <stanislas.rolland at fructifor.ca> wrote:
>Would help to know what version you are using, and with what default 
>settings.

I use the current version from the repository (1.1.3).
Mozilla extension: set
Force Aspell: not set
Troubleshooting: not set
compressed script: set
Default configuration: Typical
Images in RTE: set
All others: default

>
>Try
>
>RTE.default.proc.entryHTMLparser_db.tags.span.fixAttrib.style.unset >
>
Tried but no effect.

When I switch to non RTE mode and add a <span> tag it will be stored in the
database. If I enable RTE mode for this page again, the <span> tag is 
visible
in the RTE window, so I guess it's not the entryHTMLparser_db... If I store
the content after enabeling the RTE mode, the tag is gone.

At the end follows the full TSConfig of my page.

Regards,
Martin


RTE.default {
  showButtons = blockstylelabel, blockstyle, textstylelabel, textstyle, 
formatblock, bold, italic, underline, strikthrough, subscript, superscript, 
left, center, right, justifyfull, oderedlist, unorderedlist, outdent, 
indent, textcolor, bgcolor, textindicator, emoticon, insertcharacter, line, 
link, image, table, user, acronym, findreplace, chMode, inserttag,, 
removeformat, copy, cut, paste, undo, redo, showhelp, about, toggleborders, 
tableproperties, rowproperties, rowinsertabove, rowinsertunder, rowdelete, 
rowsplit, columninsertbefore, columninsertafter, columndelete, columnsplit, 
cellproperties, cellinsertbefore, cellinsertafter, celldelete, cellsplit, 
cellmerge
  contentCSS = fileadmin/style/rte.css
  useCSS = 1

  ignoreMainStyleOverride = 1
  showTagFreeClasses = 1
  disableColorPicker = 1
  disableSelectColor = 0
  disableEnterParagraph = 1
  classesAnchor = underline, navbar
  classesParagraph = nomargin, sidemenu

  hideButtons = lefttoright, righttoleft, inserttag, fontstyle, fontsize
  hidePStyleItems = PRE, FONT
  hideTags = font, font (full)
  showStatusBar = 1
  proc {
    overruleMode = ts_css
    dontConvBRtoParagraph = 1
    allowTagsOutside = img,hr
    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
    denyTags = font
    keepPDIVattribs = align,class,style
    HTMLparser_rte {
      allowTags < RTE.default.proc.allowTags
      removeTags < RTE.default.proc.denyTags
      keepNonMatchedTags = 0
    }
    entryHTMLparser_db = 1
    entryHTMLparser_db {
      allowTags < RTE.default.proc.allowTags
      denyTags < RTE.default.proc.denyTags
      xhtml_cleaning = 1
      noAttrib = b, i, u, strike, sub, sup, strong, em, quote, blockquote, 
cite, tt, br, center
      tags.span.allowedAttribs = id, class, style, title, alt
      tags.span.fixAttrib.style.unset >
      tags.hr.allowedAttribs = class
      tags.b.remap = strong
      tags.i.remap = em
      rmTagIfNoAttrib = span,div,font
      htmlSpecialChars = 0
    }
    HTMLparser_db = 1
    HTMLparser_db {
      noAttrib = br
      xhtml_cleaning = 1
    }
    exitHTMLparser_db = 1
    exitHTMLparser_db {
      allowTags < RTE.default.proc.allowTags
      denyTags < RTE.default.proc.denyTags
      tags.span.allowedAttribs = <RTE.default.proc.tags.span.allowedAttribs
      tags.b.remap = strong
      tags.i.remap = em
      keepNonMatchedTags = 1
      htmlSpecialChars = 0
    }
  }
  tt_content.bodytext >
  tt_content.bodytext.proc {
    overruleMode = ts_css
    tags.span.allowedAttribs = <RTE.default.proc.tags.span.allowedAttribs
  }
  tt_content.bodytext.types.text.proc.overruleMode = ts_css
  tt_content.bodytext.types.textpic.proc.overruleMode = ts_css
  colors = color1, color2, color3, color4, color5, color6, color7, color8
}
RTE.colors {
  color1 {
    name = dunkelblau
    value = #000066
  }
  color2 {
    name = blau
    value = #00008B
  }
  color3 {
    name = rotbraun
    value = #B22222
  }
  color4 {
    name = dunkelrot
    value = #CC3300
  }
  color5 {
    name = mittelbraun
    value = #D2691E
  }
  color6 {
    name = orange
    value = #FF9933
  }
  color7 {
    name = pfirsich
    value = #FFDAB9
  }
  color8 {
    name = natur
    value = #FDF5E6
  }
}






More information about the TYPO3-project-rte mailing list