page.RTE {

// Classes definition
classes >

// Anchor classes definition
classesAnchor >

// Default RTE configuration (all tables)
default {

 // Hide style
 hidePStyleItems = pre, address, h1, h2, h5, h6
 
 // Disable RTE
 disable = 0
 
 // Available classes for HTML elements
 classesParagraph >
 classesTable >
 classesTD >
 classesLinks >
 classesCharacter >
 classesAnchor >
 classesImage >
 
 // Show tags from content CSS
 showTagFreeClasses = 1
 
 // Disable examples styles
 disablePCexamples = 1
 
 // Disable Typo3 specific browsers
 disableTYPO3Browsers = 0
 
 // Tab elements to remove in the picture popup
 blindImageOptions >
 
 // Default target for links
 defaultLinkTarget = 
 
 // Tab elements to remove in the link popup
 blindLinkOptions >
 
 // Buttons to show
 showButtons = blockstylelabel, blockstyle, textstylelabel, textstyle, formatblock, bold, italic, underline, strikethrough, subscript, superscript, lefttoright, righttoleft, left, center, right, justifyfull, orderedlist, unorderedlist, outdent, indent, textcolor, bgcolor, textindicator, insertcharacter, line, link, image, table, acronym, findreplace, spellcheck, chMode, inserttag, removeformat, copy, cut, paste, undo, redo, showhelp, about, toggleborders, tableproperties, rowproperties, rowinsertabove, rowinsertunder, rowdelete, rowsplit, columninsertbefore, columninsertafter, columndelete, columnsplit, cellproperties, cellinsertbefore, cellinsertafter, celldelete, cellsplit, cellmerge
 
 // Buttons to hide
 hideButtons = fontstyle, fontsize, emoticon, user
 
 // Toolbar order
 toolbarOrder = formatblock, space, bar, space, blockstylelabel, blockstyle, space, textstylelabel, textstyle, space, bar, space, linebreak, bold, italic, underline, strikethrough, subscript, superscript, space, bar, space, left, center, right, justifyfull, space, bar, space, orderedlist, unorderedlist, outdent, indent, linebreak, link, image, insertcharacter, line, table, acronym, inserttag, space, bar, space, findreplace, removeformat, spellcheck, space, bar, space, copy, cut, paste, space, bar, space, undo, redo, space, bar, space, chMode, showhelp, about, linebreak, toggleborders, space, bar, space, tableproperties, space, bar, space, rowproperties, rowinsertabove, rowinsertunder, rowdelete, rowsplit, space, bar, space, columninsertbefore, columninsertafter, columndelete, columnsplit, space, bar, space, cellproperties, cellinsertbefore, cellinsertafter, celldelete, cellsplit, cellmerge
 
 // Group buttons (Mozilla only)
 keepButtonGroupTogether = 1
 
 // Hide table operations
 hideTableOperationsInToolbar = 0
 
 // Show toggle borders item even if table operations are disabled
 keepToggleBordersInToolbar = 0
 
 // Disable contextual menu
 disableContextMenu = 0
 disableRightClick = 0
 
 // Display status bar
 showStatusBar = 1
 
 // Disable color picker
 disableColorPicker = 0
 
 // Disable color selector
 disableSelectColor = 0
 
 // RTE stylesheet
 contentCSS = fileadmin/template/main/rte.css
 
 // MS Word cleaning
 enableWordClean = 1
 
 // Remove HTML comments
 removeComments = 1
 
 // Remove HTML tags
 removeTags = font
 
 // Remove HTML tags and their content
 removeTagsAndContents =
 
 // Use CSS formatting when possible
 useCSS = 0
 
 // Disable enter key for new paragraphs creation
 disableEnterParagraphs = 0
 
 // Remove trailing BR if any
 removeTrailingBR = 1
 
 // Hide tags in the quick tag plugin
 hideTags = font, font (full)
 
 // Disable table attributes for table operations
 disableAlignmentFieldsetInTableOperations = 1
 disableSpacingFieldsetInTableOperations = 1
 disableColorFieldsetInTableOperations = 1
 disableLayoutFieldsetInTableOperations = 1
 disableBordersFieldsetInTableOperations = 1
 
 // Processing rules
 proc {
 
  // Transformation method
  overruleMode = ts_css
 
  // Do not convert BR into linebreaks
  dontConvBRtoParagraph = 1
 
  // Map paragraph tag
  remapParagraphTag = p
 
  // Tags allowed outside P & DIV
  allowTagsOutside = hr, address
 
  // Tags allowed
  allowTags = a, abbr, acronym, address, blockquote, b, br, caption, center, cite, code, div, em, font, h1, h2, h3, h4, h5, h6, hr, i, img, li, link, ol, p, pre, q, sdfield, span, strike, strong, sub, sup, table, thead, tbody, tfoot, td, th, tr, tt, u, ul
 
  // Tags denied
  denyTags >
 
  // Attributes to keep for P & DIV
  keepPDIVattribs = xml:lang,class,style,align
 
  // ALLOWED SPAN ATTRIBUTES
  tags.span.allowedAttribs = style
 
  // Tags allowed outside <p> and <div> tags
  allowTagsOutside = img,hr,table,tr,th,td,h1,h2,h3,h4,h5,h6,br,ul,ol,li,pre,address,span
 
  // Tags allowed in Typolists
  allowTagsInTypolists = br,font,b,i,u,a,img,span
 
  // Keep unknown tags
  dontRemoveUnknownTags_db = 1
 
  // Allow tables
  preserveTables = 1
 
  // ALLOWED CLASSES
  allowedClasses >
  
  // Additionnal attributes for P & DIV
  // div.allowedAttribs = class,style,align
  // p.allowedAttribs = class,style,align
  table.allowedAttribs = class
  
  entryHTMLparser_db {
   tags.table.allowedAttribs = class, colspan, rowspan
   tags.td.allowedAttribs = class, colspan, rowspan
   tags.tr.allowedAttribs = class, colspan, rowspan
   tags.p.allowedAttribs = class, colspan, rowspan
  }
 
 }
}
}

// Frontend RTE configuration
RTE.default.FE < RTE.default

// Full screen for bodytext (tt_content)
TCEFORM.tt_content.bodytext.RTEfullScreenWidth= 100%

