Project

General

Profile

Actions

Bug #16040

closed

rte htmlarea in workspace removes textformatting, in live-mode formatting is applied

Added by philipp killer over 18 years ago. Updated almost 11 years ago.

Status:
Closed
Priority:
Should have
Category:
Workspaces
Target version:
-
Start date:
2006-04-13
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.0
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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
  1. 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 >
  1. 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

ws_text_format_problem.gif (19.5 KB) ws_text_format_problem.gif Administrator Admin, 2006-04-13 11:04

Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Bug #16176: RTE-config in PageTS-config not loaded when in draft workspaceClosedMichael Stucki2006-05-24

Actions
Actions #1

Updated by Tomas Mrozek over 18 years ago

I have the very same problem. rtehtmlarea just behaves differently when used for versioning (DRAFT workspace).

"is this a bug? looks to me like a minor one.."

Looks to me like a major one since it renders versioning unusable.

Actions #2

Updated by Administrator Admin over 18 years ago

I have the sameproblem

Actions #3

Updated by Administrator Admin over 18 years ago

This must have something to do with the TSConfig.
With the default RTE settings it works fine but with my settings the RTE becomes buggy (removes formating after saving in draft workspace).
I will do some more debugging.

This is my TSconfig:

RTE.default >
keepNonMatchedTags = 1
page.insertClassesFromRTE = 1
content.insertClassesFromRTE = 1
lib.parseFunc.allowTag = b,i,u,a,img,br,div,center,pre,font,hr,sub,sup,p,strong,em,li,ul,ol,blockquote,strike,span,clear,h1,h2,h3,h4,nobr,table,tr,td,th
lib.parseFunc_RTE.allowTag = b,i,u,a,img,br,div,center,pre,font,hr,sub,sup,p,strong,em,li,ul,ol,blockquote,strike,span,clear,h1,h2,h3,h4,nobr,table,tr,td,th
RTE.config.tt_content.bodytext.proc.allowTags = b,i,u,a,img,br,div,center,pre,font,hr,sub,sup,p,strong,em,li,ul,ol,blockquote,strike,span,clear,h1,h2,h3,h4,nobr
RTE.default{
contentCSS = fileadmin/styles/ic.css
useCSS = 1
showButtons = cut,copy,paste,formatblock,class,fontsize,textcolor,bold,italic,underline,left,center,right,orderedlist,unorderedlist,outdent,indent,link,image,emoticon,user,chMode,blockstylelabel, blockstyle, textstylelabel, textstyle, formatblock
hidePStyleItems = *
hideButtons = fontstyle,bgcolor,line,table
proc {
allowTagsInTypolists=br,font,b,i,u,a,img,span,li,ul,ol
dontConvBRtoParagraph = 1
dontProtectUnknownTags_rte=1
dontHSC_rte = 1
preserveTables = 1
typolist = 1
typohead = 1
overruleMode = ts_css
allowTagsOutside = img,hr,ul,ol,li,br,h1,h2,h3,h4,div,table,tr,td,th
allowTags = b,i,u,a,img,br,div,center,pre,font,hr,sub,sup,p,strong,em,li,ul,ol,blockquote,strike,span,clear,h1,h2,h3,h4,nobr,table,tr,td,th
keepPDIVattribs = align,class,style,id
HTMLparser_rte {
allowTags = b,i,u,a,img,br,div,center,pre,font,hr,sub,sup,p,strong,em,li,ul,ol,blockquote,strike,span,clear,h1,h2,h3,h4,nobr,table,tr,td,th
keepNonMatchedTags = 1
dontProtectUnknownTags_rte = 0
}
entryHTMLparser_db = 0
entryHTMLparser_db {
noAttrib = h1,h2,h3,h4,hr,br,b,strong,i,em,u,dl,dt,dd,H2
rmTagIfNoAttrib = span,font
}
}
HTMLparser {
htmlSpecialChars = 0
keepNonMatchedTags=1
dontProtectUnknownTags_rte = 0
noAttrib = h1,h2,h3,h4,hr,br,b,strong,i,em,u,dl,dt,dd,H2
allowTags = b,i,u,a,img,br,div,center,pre,font,hr,sub,sup,p,strong,em,li,ul,ol,blockquote,strike,span,clear,h1,h2,h3,h4,nobr,table,tr,td,th
}
HTMLparser_rte {
allowTags = b,i,u,a,img,br,div,center,pre,font,hr,sub,sup,p,strong,em,li,ul,ol,blockquote,strike,span,clear,h1,h2,h3,h4,nobr,table,tr,td,th
keepNonMatchedTags = 1
dontProtectUnknownTags_rte = 1
}
}
RTE.colors {
color1 {
name = grey
value = #636363
}
color2 {
name = darkblue
value = #003366
}
color3 {
name = orange
value = #FC8D00
}
color4 {
name = red
value = #FF0000
}
color5 {
name = green
value = #00ff00
}
noColor {
name = no color
value =
}
}
RTE.default.colors = color1, color2, color3, color4, color5
RTE.default.showTagFreeClasses = 1
RTE.default.classesCharacter = main,grey8,darkblue9,darkblue11,orange9,orange11,orange13,blueblock
RTE.default.classesParagraph = darkblue9,darkblue11,orange9,orange11,orange13,blueblock,blueliteblock,grayblockcontainer,grayblock
RTE.config.tt_content.bodytext.proc.allowedClasses = main,grey8,darkblue9,darkblue11,orange9,orange11,orange13,blueblock,blueliteblock,grayblockcontainer,grayblock,tablegray1,tableblue1

Actions #4

Updated by Martin Kutschker over 18 years ago

Do you have the same TS config for all workspaces?

Actions #5

Updated by Administrator Admin over 18 years ago

yes

Actions #6

Updated by Andreas Wolf over 18 years ago

I had the same problem. I could fix it and just submitted a description and fix under Issue #3544.

Actions #7

Updated by Michael Stucki about 18 years ago

Duplicates are usually closed...

Actions #8

Updated by Michael Stucki almost 11 years ago

  • Category set to Workspaces
Actions #9

Updated by Michael Stucki almost 11 years ago

  • Project changed from 624 to TYPO3 Core
  • Category changed from Workspaces to Workspaces
  • Target version deleted (0)
Actions

Also available in: Atom PDF