Zum Inhalt springen

Unterschied RTE.default

Erstellt am 30. Januar 2015 · Noch keine Antworten

Tags: Frage

wildtrix ·

Hallo Leute,

mein nächstes Problem liegt im RTE. ich habe etwas gegoogelt und auch hier im Forum nach einer Lösung gesucht. Aber leider nichts gefunden, dass annährend mein Problem löst.

Ziel ist meine rte.css in RTE einzubinden. Siehe aktuelle rte.css anbei.

Beim einbinden stelle ich fest, das im Bereich des RTE.defaults {...} meiner 6.2.9 Version zu den Versionen im Netz/Forum, Unterschiede gibt und diese Unterschiede nicht zu meinem gewünschten Ergebnis (eigene Schriftarten, -farben und -größen) führen.

ich sollte wissen, wie und wo ich nun meine Schriftarten einbinden muss, damit ich diese auch im RTE selber verwenden kann. Ein ToDo mit einzelnen Schritten wäre mir als Anfänger sehr hilfreich.

Vielen Dank für eure Hilfe.
Gruß
Wildi

Teil RTE.defaults meiner pageTSConfig.txt:

RTE.default {

        contentCSS = fileadmin/templates/css/rte.css

            ## Markup options (htmlArea RTE only)
        enableWordClean = 1
        removeTrailingBR = 1
        removeComments = 1
        removeTags = center, o:p, sdfield
        removeTagsAndContents = style,script

		## Markup options
	enableWordClean = 1
	removeTrailingBR = 1
	removeComments = 1
	removeTags = center, font, o:p, sdfield, strike, u
	removeTagsAndContents = link, meta, script, style, title

		## Toolbar options
		## The TCA configuration may add buttons to the toolbar
	showButtons = blockstylelabel, blockstyle, textstylelabel, textstyle
	showButtons := addToList(formatblock, bold, italic, subscript, superscript)
	showButtons := addToList(orderedlist, unorderedlist, outdent, indent, textindicator)
	showButtons := addToList(insertcharacter, link, table, findreplace, chMode, removeformat, undo, redo, about)
	showButtons := addToList(toggleborders, tableproperties)
	showButtons := addToList(rowproperties, rowinsertabove, rowinsertunder, rowdelete, rowsplit)
	showButtons := addToList(columninsertbefore, columninsertafter, columndelete, columnsplit)
	showButtons := addToList(cellproperties, cellinsertbefore, cellinsertafter, celldelete, cellsplit, cellmerge)

		## More toolbar options
	keepButtonGroupTogether = 1

		## Enable status bar
	showStatusBar =  1

		## Hide infrequently used block types in the block formatting selector
	buttons.formatblock.removeItems = pre,address

		## List all class selectors that are allowed on the way to the database
	proc.allowedClasses = external-link, external-link-new-window, internal-link, internal-link-new-window, download, mail
	proc.allowedClasses := addToList(align-left, align-center, align-right, align-justify)
	proc.allowedClasses := addToList(csc-frame-frame1, csc-frame-frame2)
	proc.allowedClasses := addToList(component-items, action-items)
	proc.allowedClasses := addToList(component-items-ordered, action-items-ordered)
	proc.allowedClasses := addToList(important, name-of-person, detail, DunkelGraueSchrift, HellGraueSchrift, RoteSchrift, BlaueSchrift)
	proc.allowedClasses := addToList(indent)

		## Restrict the list of class selectors presented by the RTE to the following for the specified tags:
	buttons.blockstyle.tags.div.allowedClasses = align-left, align-center, align-right
	buttons.blockstyle.tags.div.allowedClasses := addToList(csc-frame-frame1, csc-frame-frame2)
	buttons.blockstyle.tags.table.allowedClasses = csc-frame-frame1, csc-frame-frame2
	buttons.blockstyle.tags.td.allowedClasses = align-left, align-center, align-right
	buttons.textstyle.tags.span.allowedClasses = important, name-of-person, detail

		## Configuration of links
		## These classes should also be in the list proc.allowedClasses
	buttons.link.properties.class.allowedClasses = external-link, external-link-new-window, internal-link, internal-link-new-window, download, mail
	buttons.link.page.properties.class.default = internal-link
	buttons.link.url.properties.class.default = external-link-new-window
	buttons.link.file.properties.class.default = download
	buttons.link.mail.properties.class.default = mail

		## Configuration specific to the TableOperations feature
		## Remove the following fieldsets from the table operations dialogs
	disableAlignmentFieldsetInTableOperations = 1
	disableSpacingFieldsetInTableOperations = 1
	disableColorFieldsetInTableOperations = 1
	disableLayoutFieldsetInTableOperations = 1
	disableBordersFieldsetInTableOperations = 1
		## Show borders on table creation
	buttons.toggleborders.setOnTableCreation = 1

		## Configuration specific to the bold and italic buttons
		## Add hotkeys associated with bold and italic buttons
	buttons.bold.hotKey = b
	buttons.italic.hotKey = i

		## Configuration of microdata schema
	schema {
		sources {
			schemaOrg = EXT:rtehtmlarea/extensions/MicrodataSchema/res/schemaOrgAll.rdf
		}
	}
}

Besipiel RTE.default aus diesem Forum:

RTE.default {
 
# Zuweisung der CSS-Datei
contentCSS = rte_formate.css
 
## Markup options
enableWordClean = 1
removeTrailingBR = 1
removeComments = 1
removeTags = center, sdfield
removeTagsAndContents = style,script
 
# Buttons die gezeigt/versteckt werden
showButtons = textstyle, textstylelabel, blockstyle, blockstylelabel, bold, italic, underline, left, center, right, orderedlist, unorderedlist, insertcharacter, line, link, image, removeformat, table, toggleborders, tableproperties, rowproperties, rowinsertabove, rowinsertunder, rowdelete, rowsplit, columninsertbefore, columninsertafter, columndelete, columnsplit, cellproperties, cellinsertbefore, cellinsertafter, celldelete, cellsplit, cellmerge, findreplace, insertcharacter, undo, redo, showhelp, about
hideButtons = fontstyle, formatblock, fontsize, strikethrough,lefttoright, righttoleft, textcolor, bgcolor, textindicator, emoticon, user, spellcheck, chMode, inserttag, outdent, indent, justifyfull, subscript, superscript, acronym, copy, cut, paste
 
# Hält die RTE Icons gegroupt zusammen
keepButtonGroupTogether = 1
 
# blendet Statusbar in htmlarea aus
showStatusBar = 0
 
## Add styles Left, center and right alignment of text in paragraphs and cells.
inlineStyle.text-alignment (
p.align-left, h1.align-left, h2.align-left, h3.align-left, h4.align-left, h5.align-left, h6.align-left, td.align-left { text-align: left; }
p.align-center, h1.align-center, h2.align-center, h3.align-center, h4.align-center, h5.align-center, h6.align-center, td.align-center { text-align: center; }
p.align-right, h1.align-right, h2.align-right, h3.align-right, h4.align-right, h5.align-right, h6.align-right, td.align-right { text-align: right; }
)
 
## Use stylesheet file rather than the above mainStyleOverride and inlineStyle properties to style the contents (htmlArea RTE only)
ignoreMainStyleOverride = 1
 
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
denyTags = font
 
# br wird nicht zu p konvertiert
dontConvBRtoParagraph = 1
 
# tags sind erlaubt außerhalt von p, div
allowTagsOutside = img,hr
 
# erlaubte attribute in p, div tags
keepPDIVattribs = align,class,style,id
 
# List all class selectors that are allowed on the way to the database
allowedClasses (
external-link, external-link-new-window, internal-link, internal-link-new-window, download, mail,
align-left, align-center, align-right, author
)	
 
# 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 = font
 
# 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
 
rmTagIfNoAttrib = span,div,font
 
# htmlSpecialChars = 1
 
## align attribute werden erlaubt
tags {
p.fixAttrib.align.unset >
p.allowedAttribs = class,style,align
 
div.fixAttrib.align.unset >
 
hr.allowedAttribs = class
 
# b und i tags werden ersetzt (em / strong)
b.remap = strong
i.remap = em
 
## img tags werden erlaubt
img >
}
}
 
}
 
# Classes: Ausrichtung
classesParagraph (
align-left, align-center, align-right
)
 
# Classes: Eigene Stile
classesCharacter = author
classesImage= rte_image
 
 
# Classes für Links (These classes should also be in the list of allowedClasses)
classesAnchor = external-link, external-link-new-window, internal-link, internal-link-new-window, download, mail
classesAnchor.default {
page = internal-link
url = external-link-new-window
file = download
mail = mail
}
 
# zeigt alle CSS-Klassen die in formate.css vorhanden sind
showTagFreeClasses = 1
 
# Do not allow insertion of the following tags
hideTags = font
 
# Tabellen Optionen in der RTE Toolbar
hideTableOperationsInToolbar = 0
keepToggleBordersInToolbar = 1
 
# Tabellen Editierungs-Optionen (cellspacing/ cellpadding / border)
disableSpacingFieldsetInTableOperations = 1
disableAlignmentFieldsetInTableOperations=1
disableColorFieldsetInTableOperations=1
disableLayoutFieldsetInTableOperations=1
disableBordersFieldsetInTableOperations=0
}
rte.txt
6kB