Project

General

Profile

Bug #24381 » rte.txt

Administrator Admin, 2010-12-21 17:15

 

## Define labels and styles to be applied to class selectors in the interface of the RTE
RTE.classes >
RTE.classes {
text_klein {
name = Small text
}
blue-box {
name = Blue box
}
}

## Anchor classes configuration for use by the anchor accesibility feature (htmlArea RTE only)
RTE.classesAnchor >


## Default RTE configuration

RTE.default {
## Markup options (htmlArea RTE only)
enableWordClean = 1
removeTrailingBR = 1
removeComments = 1
removeTags = center, font, o:p, sdfield, strike
removeTagsAndContents = script
## Removes the default styles
disablePCexamples = 1

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

toolbarOrder = bar, copy, cut, paste, bar, undo, redo, bar, bold, italic, underline, subscript, superscript, bar, left, center, right, bar, outdent, indent, bar, orderedlist, unorderedlist, bar, insertcharacter, line, link, image, bar, findreplace, bar, showhelp, about, linebreak, formatblock, bar, textstylelabel, textstyle, bar, blockstylelabel, blockstyle, bar, removeformat, bar, chMode, linebreak, table, toggleborders, tableproperties, rowproperties, rowinsertabove, rowinsertunder, rowdelete, rowsplit, columninsertbefore, columninsertafter, columndelete, columnsplit, cellproperties, cellinsertbefore, cellinsertafter, celldelete, cellsplit, cellmerge

## More toolbar options (htmlArea RTE only)
keepButtonGroupTogether = 1

## Enable status bar (htmlArea RTE only)
showStatusBar = 1

## Hide infrequently used paragraph types in the paragraph type selector (formatblock button)
hidePStyleItems = pre,address,h5,h6

## Add default example styles
## Left, center and right alignment of text in paragraphs and cells.
inlineStyle.text-alignment >
inlineStyle.frames >
## Bullet styles for unordered lists.
inlineStyle.ul >
## Numbering styles for ordered lists.
inlineStyle.ol >
inlineStyle.inline-text >
## Rename block format labels
buttons.formatblock.items {
h1.label = Heading 1 - Page heading
h2.label = Heading 2 - Section
h3.label = Heading 3 - Subsection
h4.label = Heading 4 - Subsubsection
}

## Use stylesheet file rather than the above mainStyleOverride and inlineStyle properties to style the contents (htmlArea RTE only)
ignoreMainStyleOverride = 1

# Zuweisung der CSS-Datei
contentCSS = fileadmin/templates/css/rte_styles.css

## classesParagraph, classesTable, classesTD, classesLinks, classesCharacter
## htmlArea RTE: Restrict the list of class selectors presented by the RTE to the following:

classesParagraph = container, h1, h2, h3, h4, p, blockquote
classesTable =
classesTD =
classesLinks =
classesCharacter = blue-box, text_klein, error

## Configuration of the anchor accessibility feature (htmlArea RTE only)
## These classes should also be in the list of allowedClasses.
classesAnchor =
classesAnchor.default {
page =
url =
file =
mail =
}

showTagFreeClasses = 1

## Configuration specific to the TableOperations feature (htmlArea RTE only)
## Remove the following fieldsets from the properties popups
disableAlignmentFieldsetInTableOperations = 0
disableSpacingFieldsetInTableOperations = 1
disableColorFieldsetInTableOperations = 1
disableLayoutFieldsetInTableOperations = 0

proc {
# tags die erlaubt / verboten sind
allowTags = table, tbody, tr, th, td, h1, h2, h3, h4, h5, h6, div, p, br, span, ul, ol, li, re, blockquote, strong, em, b, i, u, sub, sup, strike, a, img, nobr, hr, tt, q, cite, abbr, acronym, center, code, pre
denyTags = font, col

# br wird nicht zu p konvertiert
dontConvBRtoParagraph = 1

# tags sind erlaubt außerhalt von p, div
allowTagsOutside = img,hr,address

# erlaubte attribute in p, div tags
keepPDIVattribs = class, style, id

## List all class selectors that are allowed on the way to the database
allowedClasses = text_klein, blue-box, error

# html parser einstellungen
HTMLparser_rte {
# tags die erlaubt/verboten sind
allowTags < RTE.default.proc.allowTags
denyTags < RTE.default.proc.denyTags

# tags die untersagt sind
removeTags = center, font, o:p, sdfield, strike

# entfernt html-kommentare
removeComments = 1

# tags die nicht übereinstimmen werden nicht entfernt (protect / 1 / 0)
keepNonMatchedTags = 0
}

# Content to database
entryHTMLparser_db = 1
entryHTMLparser_db {
# tags die erlaubt/verboten sind
allowTags < RTE.default.proc.allowTags
denyTags < RTE.default.proc.denyTags

# CLEAN TAGS
noAttrib = b, i, u, strike, sub, sup, strong, em, quote, blockquote, cite, tt, br, center, col

rmTagIfNoAttrib = font, span

removeTags = font, link, o:p, sdfield, meta, style, title, strike

keepNonMatchedTags = 1
htmlSpecialChars = 0

## align attribute werden erlaubt
tags {
p.fixAttrib.align.unset = 1
div.fixAttrib.align.unset = 1
span.fixAttrib.style.unset = 1
p.allowedAttribs = class,style,align
hr.allowedAttribs = class
table.allowedAttribs = class,style,align,width
# img.allowedAttribs = 0
# img.rmTagIfNoAttrib = 1

}
}

HTMLparser_db {
noAttrib = br
xhtml_cleaning = 1
tags.table.allowedAttribs = class,style,align,width
tags.span.allowedAttribs = class
}

exitHTMLparser_db = 1
exitHTMLparser_db {
tags.b.remap = strong
tags.i.remap = em
tags.table.allowedAttribs = class,style,align,width
keepNonMatchedTags = 1
htmlSpecialChars = 0
}
}
}

## front end RTE configuration for the general public (htmlArea RTE only)
RTE.default.FE < RTE.default
RTE.default.FE {
showStatusBar = 0
hideButtons = chMode, blockstyle, textstyle, underline, strikethrough, subscript, superscript, lefttoright, righttoleft, left, center, right, justifyfull, table, inserttag, findreplace, removeformat, copy, cut, paste
userElements >
userLinks >
}

## Make sure we use ts_css transformation
RTE.config.tt_content.bodytext >
RTE.config.tt_content.bodytext {
proc.overruleMode = ts_css
types.text.proc.overruleMode = ts_css
types.textpic.proc.overruleMode = ts_css
}
    (1-1/1)