Issue Bug Closed

#16254Left/Center/Right-Adjustment formatting gets lost after saving

Juergen Kussmann 06/19/06, 10:25 updated 08/12/06, 14:20

Description

when I edit text in the RTE the Left/Center/Right-Adjustment buttons work as expected. but after saving the text all newLeft/Center/Right-Adjustment formattings disappear. there is no trace of the formatting in the html-code.

The problem appears only in TYPO3 4.0 with IE (Version 6). In TYPO3 3.8.1 OR TYPO3 4.0 with firefox it works as expected. The RTE-Configuration is in TYPO3 3.8.1 and TYPO3 4.0 the same.

I use this RTE-Configuration (in typo3 3.8.1 and typo3 4.0):

####################################################################################################################
  1. RTEHtmlArea-TS-Konfiguration #
  2. #
  3. ACHTUNG: #
  4. Wenn hier Aenderungen vorgenommen werden, dann darauf achten, dass auch der Browser-Cache geleert #
  5. wird (am besten Browser schliessen und neu starten)! Ansonsten werden die Aenderungen im Browser NICHT sichtbar! #
    ####################################################################################################################
  1. Eigene CSS-Klassen in externer Datei definieren
    RTE.default.contentCSS = fileadmin/css/cbs_basic.css
  1. Texte aus MS Word werden gesaeubert
    RTE.default.enableWordClean = 1
  1. bei mozilla/firefox werden bei ENTER Paragraphen erzeugt (wie im IE)
    RTE.default.disableEnterParagraphs = 0
  1. use -Tags instead of e.g. -Tags (gilt für Mozilla/Firefox)
    RTE.default.useCSS = 1
  1. which buttons should be shown?
    RTE.default.showButtons = *
    RTE.default.hideButtons = fontstyle,fontsize,strikethrough,subscript,superscript,lefttoright,righttoleft,textcolor,bgcolor,textindicator,emoticon,acronym,inserttag,showhelp,about,user

##### RTE Default Elements
##### Eigene Tags im RTE auswaehlbar machen (die eigenen Tags koennen wie hier gezeigt erstellt werden, ODER automatisch von einer
##### Extension (de_custom_tags) erzeugt und in den RTE eingefuegt werden…die Extension hat ein Bug, welchen man aber einfach fixen kann.
##### Die eigenen Tags können im RTE nur ausgewaehlt werden, wenn der Button ‘user’ nicht versteckt ist (siehe Option RTE.default.hideButtons)
#RTE.default.userElements {
# 1010 = Custom Tags – RTE Substitution
# 1010 {
# }
# 1015 = Custom Tags – Acronym
# 1015 {
# 1=<bilder-buch><br> # 1{<br> # description = Ersetzt <bilder-buch> durch ‘Das ist ein Bilder-Buch.’<br> # mode = wrap<br> # content = &amp;ltBILDER-BUCH&amp;gt|&amp;lt/BILDER-BUCH&amp;gt<br> # }<br> # }<br>#}</bilder-buch></bilder-buch>

  1. which Style-Items (the Button is called ‘formatblock’) shouldn’t be used? (possible values are: H1,H2,H3,H4,H5,H6,P,PRE,ADRESS)
    RTE.default.hidePStyleItems = PRE, ADDRESS

RTE.default.hideTags = font, font (full)

  1. Definiert wann und wo welche CSS-Klassen benutzt werden dürfen
    RTE.default.showTagFreeClasses = 0
    RTE.default.classesCharacter = Code,Definition,Kommentar,Warnung,Zitat,Hell,Dunkel
    RTE.default.classesImage =
    RTE.default.classesAnchor =

#must be set for span classes !!!
RTE.config.tt_content.bodytext.proc.allowedClasses < RTE.default.classesCharacter
RTE.config.tt_news.bodytext.proc.allowedClasses < RTE.default.classesCharacter

  1. show Statusbar
    RTE.default.showStatusBar = 1
  1. Breite des RTE definieren (in Prozent oder Pixeln)
  2. Muster: TCEFORM.<table_name>.<column_name>.RTEfullScreenWidth = <breite>[<span>|px]<br>TCEFORM.tt_content.bodytext.RTEfullScreenWidth = 100%<br>TCEFORM.tt_news.bodytext.RTEfullScreenWidth = 100</span></breite></column_name></table_name>

RTE.default.proc {
// TRANSFORMATION METHOD
overruleMode = ts_css

// LINES CONVERSION
dontConvBRtoParagraph = 1
// TAGS ALLOWED OUTSIDE P & DIV
allowTagsOutside = img,hr
// TAGS ALLOWED
allowTags = table, tbody, tr, th, td, h1, h2, h3, h4, h5, h6, div, p,br, span, ul, ol, li, pre, blockquote, strong, em, b, i, u, sub, sup,strike, a, img, nobr, hr, tt, q, cite, abbr, acronym
// ALLOWED P & DIV ATTRIBUTES
keepPDIVattribs = align,class,style
// CONTENT TO RTE
HTMLparser_rte {
// TAGS ALLOWED
allowTags < RTE.default.proc.allowTags
  // DO NOT REMOVE UNMATCHED TAGS
keepNonMatchedTags = 0
}
// CONTENT TO DATABASE
entryHTMLparser_db = 1
entryHTMLparser_db {
// XHTML COMPLIANCE
xhtml_cleaning = 1
  // CLEAN TAGS
noAttrib = b,i,u,strike,sub,sup,strong,em,quote,blockquote,cite,tt,br,center
tags.font.allowedAttribs = color,style
tags.hr.allowedAttribs = class
  // REMAP B AND I TAGS
tags.b.remap = strong
tags.i.remap = em
  // remove Tags which have no attributes
rmTagIfNoAttrib = span,div,font
  #htmlSpecialChars = 1
}
}

(issue imported from #M3693)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.