Project

General

Profile

Bug #32948 » rte_config.txt

Configuration TSCONFIG - Romain Roy, 2012-01-03 16:05

 
#Configuration typoscript / Tsconfig pour le RTE IFT
RTE {
#Colors definition
colors {
color1 {
name = rouge (PS)
value = #D2232B
}
}
classes{
name=Test
noShow = 0
value = color:blue;
}
classesAnchor{
ext-lien{
class=ext-lien,tabs-active
type=url
}
}
fonts{
facePS{
name=Arial
value=Arial,Helvetica
}
}
fontSize{
sizeRR{
name=large
value=24px
}
}
default {
useCSS = 1
= fileadmin/templates/css/rte.css
showButtons=*
#hideButtons=emoticon,language,fontstyle,fontsize,user,sample,big,code,variable,definition,definitionlist,small,deletedtext,quotation,bidioverride,variable,outdent,indent,insertedtext,blockquote,showlanguagemarks,insertparagraphafter,insertparagraphbefore,monospaced,formattext,lefttoright,righttoleft,strong,emphasis,keyboard,strikethrough
toolbarOrder=blockstylelabel, blockstyle, space, textstylelabel, textstyle, linebreak,bar, formattext, bold, strong, italic, emphasis, big, small, insertedtext, deletedtext, citation, code, definition, keyboard, monospaced, quotation, sample, variable, bidioverride, strikethrough, subscript, superscript, underline, span, bar, fontstyle, space, fontsize, bar, formatblock, blockquote, insertparagraphbefore, insertparagraphafter, bar, lefttoright, righttoleft, language, showlanguagemarks, bar, left, center, right, justifyfull, bar, orderedlist, unorderedlist, definitionlist, definitionitem, outdent, indent, bar, textcolor, bgcolor, textindicator, bar, emoticon, insertcharacter, line, link, unlink, image, table, user, acronym, bar, findreplace, spellcheck, bar, chMode, inserttag, removeformat, bar, copy, cut, paste, bar, undo, redo, bar, showhelp, about, linebreak, toggleborders, bar, tableproperties, tablerestyle, bar, rowproperties, rowinsertabove, rowinsertunder, rowdelete, rowsplit, bar, columnproperties, columninsertbefore, columninsertafter, columndelete, columnsplit, bar, cellproperties, cellinsertbefore, cellinsertafter, celldelete, cellsplit, cellmerge
#userElements>
#userElements{
# 10=Quotation (block) - Citation (bloc)
# 10{
# 1=Quotation - Citation
# 1{
# mode=wrap
# description=Apply this style to the first line of your text - Appliquer ce style à la première ligne de votre texte
# content=<p class="blockquote">|</p>
# }
# 2=Author - Auteur
# 2{
# mode=wrap
# description=Apply this style to the second line of your text - Appliquer ce style à la deuxième ligne de votre texte
# content=<p class="author">|</p>
# }
# }
#}
buttons{
formatblock{
orderItems=p, h1, h2, h3, h4, h5, h6, pre, address, blockquote, div,span
removeItems= blockquote,pre,address,h5,h6
items{
#h1.label = Titre Niveau 1
#h2.label = Titre Niveau 2
#h3.label = Titre Niveau 3
#p.label =
}
prefixLabelWithTag=1
}
blockstyle{
tags{
#div.allowedClasses>
#div.allowedClasses=test
#p.allowedClasses>
#p.allowedClasses=
#h3.allowedClasses>
#h3.allowedClasses=titre
}
prefixLabelWithClassName=1
showTagFreeClasses=1
}
indent{
#useClass
}
left{
useClass = textleft
useAlignAttribute=0
}
right{
useClass = textright
}
center{
useClass = textcenter
}
justifyfull{
useClass = textjustify
}
formattext{
#orderItems =
#removeItems=
}
textstyle{
tags{
b.allowedClasses = bold
prefixLabelWithClassName=1
span.allowedClasses>
span.allowedClasses=span
}
}
language{
restrictToItems = en,fr,de
useLangAttribute=0
useXmlLangAttribute=1
}
image{
TYPO3Browser{
disabled = 0
}
options{
magic{
maxWidth=300
maxHeight=300
}
plain{
maxWidth=300
maxHeight=300
}
}
properties{
removeItems=border,float
class.default = image
}
}
link{
TYPO3Browser.disabled=0
targetSelector.disabled=0
popupSelector.disabled=0
pageIdSelector.enabled=0
queryParametersSelector.enabled=1
#options.removeItems =
properties{
class{
page{
#required=1
}
}
}
}
acronym{
}
fontstyle{
removeItems=
addItems=
defaultItem
}
fontsize{
removeItems=
addItems=
defaultItem=
}
}
keepButtonGroupTogether = 1
disablePCexamples=1
disableRightClick=0
disableTYPO3Browsers=0
#blindImageOptions=magic,dragdrop
#blindLinkOptions=page,file,url,mail,spec
defaultLinkTarget=_self
showTagFreeClasses = 0
classesLinks>
classesAnchor>
classesParagraph>
classesCharacter>
classesAnchor=ext-lien
classesAnchor.default{
page=
url= ext-lien
file=
mail=
}
classesCharacter = important,very important, big important
colors = color1
disableColorPicker = 0
disableSelectColor = 0
# Available classes for HTML elements
# classesParagraph >
#classesTable >
#classesTD >
#classesCharacter
#classesAnchor >
#classesImage >
# Paragraphes classes - should be defined in attached css file or in inlineStyle property
#classesParagraph = align-justify,align-right,align-left,align-center



hideFontFaces =
#fontFace = facePS # Similaire à fontstyle.addItems
hideFontSizes =

hideTableOperationsInToolbar=0
showStatusBar = 1
enableWordClean = 1
removeComments=1
ignoreMainStyleOverride=1


disableEnterParagraphs=0
removeTrailingBR = 1
# Remove HTML tags
removeTags=font
denyTags>
# Remove HTML tags and their content
removeTagsAndContents =

disableAlignmentFieldsetInTableOperations = 0
disableSpacingFieldsetInTableOperations = 0
disableColorFieldsetInTableOperations = 0
disableLayoutFieldsetInTableOperations = 0
disableBordersFieldsetInTableOperations = 0

proc{
overruleMode = ts_css
allowedClasses =
dontConvBRtoParagraph = 1
remapParagraphTag=p
allowTags = a, abbr, acronym, address, blockquote, b, br, caption, cite, code, div, em, font, h1, h2, h3, hr, i, img, li, link, ol, p, pre, q, sdfield, span, strike, strong, sub, sup, table, thead, tbody, tfoot, td, th, tr, tt, u, ul,iframe
allowTags := addToList(iframe)
denyTags>
keepPDIVattribs = xml:lang,class,style,align
allowTagsOutside = img,hr,table,tr,th,td,h1,h2,h3,br,ul,ol,li,pre,address,iframe,span
allowTagsOutside :=addToList(iframe)
allowTagsInTypolists = br,font,b,i,u,a,img,span
dontRemoveUnknownTags_db = 1
preserveTables = 1
### CONTENT TO DATABASE
entryHTMLparser_db=1
entryHTMLparser_db{
allowTags < RTE.default.proc.allowTags
denyTags >
htmlSpecialChars = 0
allowTags := addToList(iframe)
tags{
b.remap=strong
i.remap=em
### REMOVE IMG TAGS
#img.allowedAttribs=0
#img.rmTagIfNoAttrib=0
### CLEAN ATTRIBUTES ON THE FOLLOWING TAGS
span.fixAttrib.style.unset=0
#p.fixAttrib.align.unset=1
#p.fixAttrib.class.default=paragraph1
#h2.fixAttrib.class.default=title
#h3.fixAttrib.class.default=title
#h4.fixAttrib.class.default=title
#h2.fixAttrib.class.removeIfEquals = title2
#h2.fixAttrib.class.removeIfFalse= 1
#h3.fixAttrib.class.removeIfEquals = title1
#h4.fixAttrib.class.removeIfEquals = title2
#div.fixAttrib.align.unset=1
#hr.allowedAttribs=class
#b.allowedAttribs=xml:lang
#blockquote.allowedAttribs=xml:lang
#cite.allowedAttribs=xml:lang
#del.allowedAttribs=xml:lang
#em.allowedAttribs=xml:lang
#i.allowedAttribs=xml:lang
#ins.allowedAttribs=xml:lang
#q.allowedAttribs=xml:lang
#strike.allowedAttribs=xml:lang
#strong.allowedAttribs=xml:lang
#sub.allowedAttribs=xml:lang
#sup.allowedAttribs=xml:lang
#tt.allowedAttribs=xml:lang
#u.allowedAttribs=xml:lang
img>
p.fixAttrib.align.unset >
div.fixAttrib.align.unset >
div.allowedAttribs = class,align,style
p.allowedAttribs = class,align
p.allowedTags = span

}
removeTags = center, o:p, sdfield
keepNonMatchedTags = 1
}
HTMLparser_rte=1
HTMLparser_rte{
tags.strong.remap=b
tags.em.remap=i
allowTags < RTE.default.proc.allowTags
}
HTMLparser_db{
noAttrib = br
xhtml_cleaning = 1
allowTags < RTE.default.proc.allowTags
}
exitHTMLparser_db=1
exitHTMLparser_db{
# Remap bold and italic
tags.b.remap = strong
tags.i.remap = em
# Keep non matched tags
keepNonMatchedTags = 1
allowTags < RTE.default.proc.allowTags
# HTML special character
htmlSpecialChars = 0
#dontHSC_rte=1
}
}
}
}

# MS Word clean options
RTE.default.enableWordClean.HTMLparser < RTE.default.proc.entryHTMLparser_db

# Frontend RTE configuration
RTE.default.FE < RTE.default
RTE.tt_news < RTE.default
RTE.tt_content < RTE.default
# Full screen for bodytext (tt_content)
TCEFORM.tt_content.bodytext.RTEfullScreenWidth= 100%



(1-1/2)