rtehtmlarea

Konfigurieren von htmlArea RTE -Template

In der Setup Sektion des Basis Templates (knolledge Base Template - General) folgendes aufnehmen:

content.RTE_compliant = 1
content.RTE_compliant.mode =

TypoScript Root Seite

In das Seiten TypoScript folgendes aufnehmen:

#--------------------------------
# RTE
#--------------------------------

RTE.default {
  contentCSS = fileadmin/css/knolledge_rte.css
  showTagFreeClasses = 1
  proc.allowedClasses = listing, listing_h1, content-highlight
  classesCharacter = listing_h1, content-highlight
  classesParagraph = listing
  showButtons = 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, user, acronym, findreplace, chMode, inserttag, removeformat, copy, cut, paste, undo, redo, showhelp, about, toggleborders
  hidePStyleItems = H4, H5, H6, pre, address
  proc.entryHTMLparser_db.keepNonMatchedTags = 0
  xhtml_cleaning = 1
  proc.allowTags = 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, address, sdfield, style, text-align
  proc.dontHSC_rte = 1
  proc.dontUndoHSC_db = 1
}
RTE.config >
RTE.FE >

Bilder

Jedoch - wenn Bilder verwendet werden ist es besser folgenden Eintrag aud Null zu setzen - andernfalls geht das <img ...> verloren beim Sichern.

 proc.entryHTMLparser_db.keepNonMatchedTags = 0

Anzeigen von HTML Tags als Text

# to be able to use & gt; tags etc. use this
RTE.default.proc.dontHSC_rte = 1
RTE.default.proc.dontUndoHSC_db = 1

Grösse konfigurieren

Global

/**
 * Customizations for all users per default
 */
t3lib_extMgm::addUserTSConfig('
   options.RTESmallHeight = 500
');

Pro User/Gruppe

options.RTESmallWidth = 445
options.RTESmallHeight = 600

Neuer Content Bug

Wenn man neuen Inhalt anlegt wird kein <p> Tag eingefügt. Als Folge ist die Formatierung durch Stylesheet falsch.

Die einzige (nicht allzu elegante) Lösung die mir einfiel ist die Default Werte im User TSconfig zu setzen:

TCAdefaults.tt_content.bodytext = <p>& nbsp;</p>

Erstellt: 07/2010| Geändert: 10/2015