Hallo Forum. Folgendes Problem:
Mein RTE funktioniert prima, nur Textformatierungen innerhalb von Abschnitten (also p-tags) funktionieren nicht. Ich kann ganze Abschnitte mit dem "bold"-Button Fett formatieren, wenn ich das allerdings für ein einzelnes Wort oder auch mehrere Wörter innerhalb des Abschnittes versuche, funktioniert es leider nicht mehr. Woran kann das liegen? Hier meine RTE-Konfiguration:
RTE.classesAnchor {
internalLink {
class = internal-link
type = page
image >
}
externalLink {
class = external-link
type = url
image >
}
externalLinkInNewWindow {
class = external-link-new-window
type = url
image >
}
internalLinkInNewWindow {
class = internal-link-new-window
type = page
image >
}
download {
class = download
type = file
image >
}
mail {
class = mail
type = mail
image >
}
}
RTE.default {
# Editor CSS
contentCSS = fileadmin/templates/rte_formats.css
useCSS = 1
showTagFreeClasses = 0
ignoreMainStyleOverride = 1
# Configuration of the editor-buttons
showButtons = undo, redo, bold, underline, blockstyle, blockstylelabel, unorderedlist, insertcharacter, link, removeformat, insertcharacter, copy, cut, paste
hideButtons = subscript, superscript, italic, left, center, right, orderedlist, image, toggleborders, showhelp, acronym, outdent, indent, justifyfull, findreplace, chMode, textcolor, bgcolor, textindicator, emoticon, user, fontsize, strikethrough, lefttoright, righttoleft, fontstyle, formatblock, spellcheck, inserttag, table, tableproperties, rowproperties, rowinsertabove, rowinsertunder, rowdelete, rowsplit, columninsertbefore, columninsertafter, columndelete, columnsplit, cellproperties, cellinsertbefore, cellinsertafter, celldelete, cellsplit, cellmerge, line, about, textstyle, textstylelabel
# Markup options
enableWordClean = 1
removeTrailingBR = 1
removeComments = 1
removeTags = center, sdfield, font
removeTagsAndContents = script
# Keep RTE groups together
keepButtonGroupTogether = 1
# Hide the statusbar of the editor
showStatusBar = 0
proc {
entryHTMLparser_db {
tags {
# Replace b and i tags
#b.remap = strong
#i.remap = em
p.allowedAttribs = class,style,align,id
span.allowedAttribs = class,style,align,id
}
}
# CSS-Classes
classesParagraph (
align-left, align-center, align-right
)
# Allowed and forbidden tags
allowTags = h1, h2, div, p, br, span, ul, li, strong, em, b, i, u, sub, sup, strike, a, font
denyTags = table, tbody, tr, th, td, ol, re, blockquote, center, acronym, img, nobr, hr, tt, q, cite, abbr, h3, h4, h5, h6
# Do not convert br into p
dontConvBRtoParagraph = 1
# Tags that are allowed outside of p or div
allowTagsOutside = span
# Allowed attributes in p, div tags
keepPDIVattribs = xml:lang,class,style,id,_moz_dirty
# List all class selectors that are allowed on the way to the database
allowedClasses (
header2, external-link, external-link-new-window, internal-link, internal-link-new-window, download, mail
)
}
}
RTE.default.classesParagraph = header2
RTE.classes.header2{
name = Überschrift
}