Hallo zusammen,
ich weiß, das Thema wurde schon oft behandelt und ich hab die letzten 3 Stunden nur Sachen ausprobiert und recherchiert. Vielleicht sieht jemand direkt den Fehler in meinem Script. Ich würde mich sehr über eine kleine Hilfestellung freuen.
Viele Grüße und schon mal tausend Dank!
Das Problem ist, dass ich gerne die Klasse "small" dem Formatblock zuordnen möchte. Was auch noch nicht funktioniert ist die Konvertierung von i in em und von b in strong.
### RTE Link Title und Alt Text ### RTE.classesAnchor.externalLink.titleText > RTE.classesAnchor.externalLink.altText > RTE.classesAnchor.internalLink.titleText > RTE.classesAnchor.internalLink.altText > RTE.default { contentCSS = fileadmin/templates/css/wezimed-rte-styles.css showTagFreeClasses = 1 classesTable = classesCharacter = classesImage = classesAnchor = classesParagraph = small showButtons = formatblock, bold, italic, subscript, superscript, orderedlist, unorderedlist, textindicator, insertcharacter, link, unlink, image, table, findreplace, chMode, undo, redo, toggleborders, tableproperties, rowproperties, rowinsertabove, rowinsertunder, rowdelete, rowsplit, columninsertbefore, columninsertafter, columndelete, columnsplit, cellproperties, cellinsertbefore, cellinsertafter, celldelete, cellsplit, cellmerge ignoreMainStyleOverride = 1 proc { overrideMode = css_transform # Klassen zulassen allowedClasses = bodytext,small denyTags = u,div,center,pre,font,hr,blockquote,strike,span entryHTMLparser_db = 1 entryHTMLparser_db { allowTags = p,b,i,a,img,br,div,strong,hr,sup,sub,strong,li,ul,ol,h1,h2,em } # b -> strong / i -> em exitHTMLparser_db = 1 exitHTMLparser_db { } } # 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 # Formatblock neustrukturieren buttons.formatblock.orderItems = h1,h2,p,small,blockquote buttons.formatblock.addItems = small,blockquote buttons.formatblock.removeItems = h3, h4, h5, h6, pre, address, article, aside, div, footer, header, nav, section #buttons.formatblock.prefixLabelWithTag = 1 } ### Fähnchen Backend ### mod.SHARED { defaultLanguageFlag = de defaultLanguageLabel = deutsch }
Mein CSS wird in den RT geladen, das sehe ich an den Überschriften und dem Absatz.
@charset "UTF-8"; /* CSS Document */ body { font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: normal; color: #666666; display: inline; height: 100%; background-color: #ffffff; line-height: 1.5; } p { margin: 0; padding: 0; } h1 { color: #E95D0F; font-size: 14px; font-weight: normal; text-transform: uppercase; margin: 0 0 5px 0; letter-spacing: 2px; } h2 { color: #666666; font-size: 14px; font-weight: bold; margin: 0 0 5px 0; } a { color: #E95D0F; text-decoration: none; } a:hover { color: #E95D0F; text-decoration: underline; } a:active { color: #E95D0F; text-decoration: none; } a:visited { color: #E95D0F; text-decoration: none; } p.small, .small { font-size: 10px; font-family: Arial, Helvetica, sans-serif; font-weight: normal; color: #666666; }