Bug #16040
closedrte htmlarea in workspace removes textformatting, in live-mode formatting is applied
0%
Description
ok, this problem is a really tricky one.
i configured the rte in page TSconfig with custom classes for text and paragraphs (used contentCSS). they do work fine in live-mode. i can apply my own classes.
but then i switch to workspace (custom workspace i made). now the custom classes show up in the htmlarea and i can apply them. but when i save the changes the classes are removed (in live mode they are not removed!). --i also made sure i looked at the right records in the db.-- then i took a look at the tt_content record in the db. the formatting is already removed in the stored record in the db (again, when i do the same in live mode formatting is still there in the db-record).
but the removing of text formatting in the custom workspace only happens in paragraphs of type 'normal'(!)
if i format text in paragraphs of type 'header 1', header 2' as well as in lists and tables the formatting is NOT removed, so everything works fine there.
see attached documented screenshot.
shouldn't the rte configuration be the same regardless of the workspace i'm in? at least as long as i didn't configure it to behave different which i have no idea how to do it (and i'm quite sure it can't be done right now using typoscript, am i right?).
is this a bug? looks to me like a minor one..
here is my page TSconfig:
RTE.default {
blindImageOptions=plain,dragdrop
disabled=0
#showButtons= bold,italic,underline,left,center,right,orderedlist,link,formatblock,unorderedlist,outdent,indent,fontstyle
- Ein- und Ausblenden von Absatzarten im Rich Text Editor
classesParagraph = links,rechts,zentriert,block,wichtigerHinweis, titel_12px, titel_12px_blau, titel_14px, titel_14px_blau, titel_16px, titel_16px_blau, titel_18px, titel_18px_blau, 10px, 10px_block, 10px_blau, 10px_blau_block, 11px, 11px_block, 11px_blau, 11px_blau_block, 12px, 12px_block, 12px_blau, 12px_blau_block
classesCharacter = links,rechts,zentriert,block,wichtigerHinweis, titel_12px, titel_12px_blau, titel_14px, titel_14px_blau, titel_16px, titel_16px_blau, titel_18px, titel_18px_blau, 10px, 10px_block, 10px_blau, 10px_blau_block, 11px, 11px_block, 11px_blau, 11px_blau_block, 12px, 12px_block, 12px_blau, 12px_blau_block
classesLinks >
classesImage >
classesTable >
classesTD >
hidePStyleItems = H1,H4,H5,H6,PRE,ADDRESS
showStatusBar = 1
removeTags >
removeTagsAndContents >
hideTags >
- Festlegung der Darstellung im Rich Text Editor
#mainStyleOverride_add.H1 = font-size:18px;font-family: verdana, arial;
mainStyleOverride_add.H2 = font-family:Arial, Helvetica, sans-serif;font-size:12px;line-height:17px;font-weight:bold;color: #333333;margin-top: 0px;margin-bottom: 8px;
mainStyleOverride_add.H3 = font-family:Arial, Helvetica, sans-serif;font-size: 12px;font-weight:bold;line-height: 17px;color: #333333;top: 0px;bottom: 0px;margin-top: 0px;margin-bottom: 8px;
mainStyleOverride_add.TD = text-align: left;vertical-align: top;font-style: normal;font-family:Arial, Helvetica, sans-serif;font-size: 12px;line-height: 17px;color:#333333;
mainStyleOverride_add.P = vertical-align: top;font-style: normal;font-family:Arial, Helvetica, sans-serif;font-size: 12px;line-height: 17px;color:#333333;margin-bottom:12px;margin-top:0px;text-align:justify;
mainStyleOverride_add.DIV = vertical-align: top;font-style: normal;font-family:Arial, Helvetica, sans-serif;font-size: 12px;line-height: 17px;color:#333333;margin-bottom:12px;margin-top:0px;text-align:justify;
mainStyleOverride_add.UL = font-style: normal;font-family:Arial, Helvetica, sans-serif;font-size: 12px;line-height: 17px;color:#333333;margin-top:2px;margin-bottom:10px;margin-left:20px;
mainStyleOverride_add.OL = font-style: normal;font-family:Arial, Helvetica, sans-serif;font-size: 12px;line-height: 17px;color:#333333;margin-top:2px;margin-bottom:10px;margin-left:30px;
mainStyleOverride_add.LI = font-style: normal;font-family:Arial, Helvetica, sans-serif;font-size: 12px;line-height: 17px;color:#333333;margin-top:2px;margin-bottom:10px;margin-left:30px;
mainStyleOverride_add.A = color:#FF6633;text-decoration:none;
mainStyleOverride_add.BLOCKQUOTE = vertical-align: top;font-style: normal;font-family:Arial, Helvetica, sans-serif;font-size: 12px;line-height: 17px;color:#333333;margin-bottom:12px;margin-top:0px;text-align:justify;
useCSS = 1
#contentCSS = fileadmin/templates/main.css
contentCSS = fileadmin/templates/htmlarea.css
#shows classes which are not linked to a tag too
showTagFreeClasses = 1
}
#override default setting from pageTSConfig.txt
lib.parseFunc_RTE.nonTypoTagStdWrap.encapsLines.remapTag.DIV = P
RTE.config.tt_content.bodytext.proc.allowedClasses >
RTE.config.tt_content.bodytext.proc.allowedClasses = links,rechts,zentriert,block,wichtigerHinweis, titel_12px, titel_12px_blau, titel_14px, titel_14px_blau, titel_16px, titel_16px_blau, titel_18px, titel_18px_blau, 10px, 10px_block, 10px_blau, 10px_blau_block, 11px, 11px_block, 11px_blau, 11px_blau_block, 12px, 12px_block, 12px_blau, 12px_blau_block
RTE {
// DEFAULT PROC RULES
default.proc {
// TRANSFORMATION METHOD
overruleMode = ts_css
// LINES CONVERSION
dontConvBRtoParagraph = 1
// SPLIT CONTENT INTO FONT TAG CHUNKS
internalizeFontTags = 1
// TAGS ALLOWED OUTSIDE P & DIV
allowTagsOutside = img,hr
// TAGS ALLOWED IN TYPOLISTS
allowTagsInTypolists = br,font,b,i,u,a,img,span
// TAGS ALLOWED
allowTags = table, 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, center, tbody
// TAGS DENIED
denyTags >
// ALLOWED CLASSES
//allowedClasses =
// ALLOWED P & DIV ATTRIBUTES
keepPDIVattribs = align,class,style
// ALLOW TABLES
preserveTables = 1
// CONTENT TO RTE
HTMLparser_rte {
// TAGS ALLOWED
allowTags = table, 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, center, tbody
// DON'T REMOVE UNMATCHED TAGS
keepNonMatchedTags = 1
// ALLOWED SPAN ATTRIBUTES
tags.span.allowedAttribs = style,class
}
// CONTENT TO DATABASE
HTMLparser_db {
// TAGS ALLOWED
allowTags = table, 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, center, tbody
// DON'T REMOVE UNMATCHED TAGS
keepNonMatchedTags = 1
// ALLOWED SPAN ATTRIBUTES
tags.span.allowedAttribs = style,class
}
entryHTMLparser_db = 1
entryHTMLparser_db {
allowTags = table, 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, center, tbody
denyTags >
removeTags >
rmTagIfNoAttrib >
}
}
}
typo3 4.0
internet explorer 6 & newest firefox
(issue imported from #M3249)
Files