菜单

TSconfig – RTE

2010年04月8日 - typo3

RTE.default {
blindImageOptions = magic, dragdrop
#contentCSS = fileadmin/templates/inc/css/global.css
showTagFreeClasses =
classesCharacter =
classesParagraph =
classesImage =
classesAnchor = external-link, internal-link, download, mail, thickbox
classesAnchor.default {
page = internal-link
url = external-link
file = download
mail = mail
}
classesTable =
classesTD =
classesUL =
classesHR =
enableWordClean = 1
removeTrailingBR = 1
removeComments = 1
removeTags = sdfield, font
removeTagsAndContents = style, script
useCSS = 1

# blockstylelabel, blockstyle, textstylelabel, textstyle, fontstyle, fontsize, formatblock, bold, italic, underline, strikethrough, subscript, superscript, lefttoright, righttoleft, left, center, right, justifyfull, orderedlist, unorderedlist, outdent, indent, textcolor, bgcolor, textindicator, emoticon, insertcharacter, line, link, image, table, user, acronym, findreplace, spellcheck, chMode, inserttag, removeformat, copy, cut, paste, undo, redo, showhelp, about, toggleborders, tableproperties, rowproperties, rowinsertabove, rowinsertunder, rowdelete, rowsplit, columninsertbefore, columninsertafter, columndelete, columnsplit, cellproperties, cellinsertbefore, columninsertafter, celldelete, cellsplit, cellmerge
# showButtons = *
# hideButtons = blockstylelabel, blockstyle
# toolbarOrder = blockstylelabel, blockstyle, bar, textstylelabel, textstyle, bar, formatblock, linebreak, bold, italic, underline, unorderedlist, bar, link, image, bar, removeformat, copy, cut, paste, undo, redo, bar, chMode, linebreak, table, toggleborders, tableproperties, rowproperties, rowinsertabove, rowinsertunder, rowdelete, rowsplit, columninsertbefore, columninsertafter, columndelete, columnsplit, cellproperties, cellinsertbefore, columninsertafter, celldelete, cellsplit, cellmerge, textstyle
showButtons = formatblock,bold, underline, italic, left, center, right, justifyfull, orderedlist, unorderedlist, insertcharacter, link, image, removeformat, copy, cut, paste, undo, redo, subscript, superscript, findreplace, textindicator, user, chMode,
# hideButtons = blockstyle, blockstylelabel,fontstyle, formatblock, fontsize, lefttoright, righttoleft, textcolor, bgcolor, emoticon, spellcheck, inserttag, outdent, indent, acronym, line, table, toggleborders, tableproperties, rowproperties, rowinsertabove, rowinsertunder, rowdelete, rowsplit, columninsertbefore, columninsertafter, columndelete, columnsplit, cellproperties, cellinsertbefore, cellinsertafter, celldelete, cellsplit, cellmerge, showhelp, about, textstyle, textstylelabel, insertcharacter, underline, strikethrough
hideTableOperationsInToolbar = 0

disableContextMenu = 0
disableTYPO3Browsers = 0
disableSelectColor = 0
disableEnterParagraphs = 0
hidePStyleItems = pre,address,blockquote,div
hideFontSizes =
fontSizes =
hideTags = 0
disableColorPicker = 1
showStatusBar = 1
defaultLinkTarget = _self
buttons.formatblock.removeItems = pre,address,blockquote,div
}

RTE.classesAnchor {
internalLink {
class = internal-link
type = page
image >
titleText >
}
externalLink {
class = external-link
type = url
image >
titleText >
}
download {
class = download
type = file
image >
titleText >
}
mail {
class = mail
type = mail
image >
titleText >
}
}

RTE.default.proc {
overruleMode = ts_css
remapParagraphTag = p
dontConvBRtoParagraph = 1
internalizeFontTags = 1
allowTagsOutside = img, table, br, span, hr, h1, h2, h3, h4,h5,h6,embed,object,param
# 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, center, font, tt, q, cite, abbr, acronym, sdfield
allowTags = table, tbody, tr, th, td, h1, h2, h3, h4, h5, h6, div, p, br, span, ul, ol, li, blockquote, strong, em, b, i, u, sub, sup, strike, a, img, nobr, hr,embed,object,param
denyTags = *
preserveTags = div, span, & &quote;
keepPDIVattribs = id,class,style,align

# Allow embed (Youtube) HTML tags in the RTE
allowTags := addToList(object,param,embed)
allowTagsOutside := addToList(object,embed)
entryHTMLparser_db.allowTags < RTE.default.proc.allowTags

allowedClasses =
entryHTMLparser_db = 1
entryHTMLparser_db {
allowTags < RTE.default.proc.allowTags
denyTags >
htmlSpecialChars = 0
tags {
div.remap >
## REMOVE IMG TAGS
# img.allowedAttribs = 0
# img.rmTagIfNoAttrib = 1
## CLEAN ATTRIBUTES ON THE FOLLOWING TAGS
span.fixAttrib >
# span.fixAttrib.style.unset = 1
# p.fixAttrib.align.unset = 1
# div.fixAttrib.align.unset = 1
# hr.allowedAttribs = class
# b.allowedAttribs = xml:lang
# blockquote.allowedAttribs = xml:lang
# cite.allowedAttribs = xml:lang
# em.allowedAttribs = xml:lang
# i.allowedAttribs = xml:lang
# q.allowedAttribs = xml:lang
# strong.allowedAttribs = xml:lang
# sub.allowedAttribs = xml:lang
# sup.allowedAttribs = xml:lang
# tt.allowedAttribs = xml:lang
}
removeTags = sdfield
rmTagIfNoAttrib >
keepNonMatchedTags = protect
}

HTMLparser_db {
noAttrib = b, i, u, strike, sub, sup, strong, em, quote, blockquote, cite, tt, br, center
xhtml_cleaning = 1
}

exitHTMLparser_db = 1
exitHTMLparser_db {
tags.b.remap = strong
tags.i.remap = em
keepNonMatchedTags = 1
htmlSpecialChars = 0
}
}

RTE.default.FE < RTE.default

#mod.SHARED {
# defaultLanguageLabel = Deutsch
# defaultLanguageFlag = de.gif
#}

## Default RTE configuration

RTE.default.buttons.indent.useBlockquote = 1
RTE.default.buttons.left.useAlignAttribute = 1
RTE.default.buttons.center.useAlignAttribute = 1
RTE.default.buttons.right.useAlignAttribute = 1
RTE.default.buttons.justifyfull.useAlignAttribute = 1

RTE.default.buttons.left.useClass = test-left

RTE.default.buttons.center.useClass = test-center

RTE.default.buttons.right.useClass = test-right

发表评论

电子邮件地址不会被公开。 必填项已用*标注