Project

General

Profile

Bug #72243 » rtehtmlarea.ts

Bruno Thinnesen, 2015-12-15 15:15

 
RTE.classes{
au_bg_dark{
name = a M?rk baggrund
}
au_bg_medium{
name = b Mellem baggrund
}
au_bg_light{
name = c Lys baggrund
}
au_bg_grey{
name = d Gr? baggrund
}
au_bt_dark{
name = e M?rk ramme top
}
au_bt_medium{
name = f Mellem ramme top
}
au_bt_light{
name = g Lys ramme top
}
au_bb_dark{
name = h M?rk ramme bund
}
au_bb_medium{
name = i Mellem ramme bund
}
au_bb_light{
name = j Lys ramme bund
}
}

RTE.default {
enableWordClean = 1
showButtons = *
toolbarOrder = formatblock, bar, strong, emphasis, subscript, superscript, blockquote, bar, orderedlist, unorderedlist, outdent, indent, bar, insertcharacter, insertsofthyphen, line, link, unlink, image, bar, linebreak, findreplace, chMode, inserttag, removeformat, bar, copy, cut, paste, , pastebehaviour, pastetoggle, bar, undo, redo, bar, table, toggleborders, bar, tableproperties, tablerestyle, bar, rowproperties, rowinsertabove, rowinsertunder, rowdelete, rowsplit, bar, columnproperties, columninsertbefore, columninsertafter, columndelete, columnsplit, bar, cellproperties, cellinsertbefore, cellinsertafter, celldelete, cellsplit, cellmerge

hideTableOperationsInToolbar = 0
buttons.formatblock.removeItems = pre, address, article, aside, blockquote, footer, header, nav, section, b, i
buttons.inserttag.denyTags = abbr, acronym, address, big, blockquote, cite, code, div, fieldset, font, legend, q, small, span, sub, sup, table, tt, pre, strike, u, b, i
buttons.pastetoggle.setActiveOnRteOpen = 1
buttons.pastetoggle.hidden = 1
buttons.image.options.removeItems = plain, dragdrop
buttons.image.properties.removeItems = border, class, clickenlarge, paddingTop, paddingRight, paddingBottom, paddingLeft
buttons.image.options.magic.maxWidth = 1000
buttons.tableproperties.removeFieldsets = alignment, borders, color, language, spacing, layout
buttons.rowproperties.removeFieldsets = alignment, borders, color, language, layout, rowgroup
buttons.cellproperties.removeFieldsets = alignment, borders, color, language, layout
buttons.columnproperties.removeFieldsets = alignment, borders, color, language, layout

contentCSS = EXT:au_tsconfig/res/styles/rte_styles.css
buttons.blockstyle.tags.table.allowedClasses >
buttons.blockstyle.tags.table.allowedClasses := addToList(au_bg_dark, au_bg_medium, au_bg_light, au_bg_grey, au_bt_dark, au_bt_medium, au_bt_light, au_bb_dark, au_bb_medium, au_bb_light)
buttons.blockstyle.tags.tr.allowedClasses >
buttons.blockstyle.tags.tr.allowedClasses := addToList(au_bg_dark, au_bg_medium, au_bg_light, au_bg_grey, au_bt_dark, au_bt_medium, au_bt_light, au_bb_dark, au_bb_medium, au_bb_light)
buttons.blockstyle.tags.td.allowedClasses >
buttons.blockstyle.tags.td.allowedClasses := addToList(au_bg_dark, au_bg_medium, au_bg_light, au_bg_grey, au_bt_dark, au_bt_medium, au_bt_light, au_bb_dark, au_bb_medium, au_bb_light)
}

RTE.config.pages.subtitle {
showButtons = strong, emphasis, subscript, superscript, insertsofthyphen
RTEHeightOverride = 120
}

RTE.default.proc.transformBoldAndItalicTags = 1

#
# REMOVE ALL INLINE STYLING
#
# START
#
RTE.default.proc.keepPDIVattribs := removeFromList(style)
RTE.default.proc.keepPDIVattribs := addToList(class)

RTE.default.proc.entryHTMLparser_db.tags {
span.allowedAttribs := removeFromList(style)
span.fixAttrib.style.unset = 1
p.allowedAttribs := removeFromList(style)
p.fixAttrib.style.unset = 1
b.allowedAttribs := removeFromList(style)
b.fixAttrib.style.unset = 1
bdo.allowedAttribs := removeFromList(style)
bdo.fixAttrib.style.unset = 1
big.allowedAttribs := removeFromList(style)
big.fixAttrib.style.unset = 1
blockquote.allowedAttribs := removeFromList(style)
blockquote.fixAttrib.style.unset = 1
cite.allowedAttribs := removeFromList(style)
cite.fixAttrib.style.unset = 1
code.allowedAttribs := removeFromList(style)
code.fixAttrib.style.unset = 1
del.allowedAttribs := removeFromList(style)
del.fixAttrib.style.unset = 1
dfn.allowedAttribs := removeFromList(style)
dfn.fixAttrib.style.unset = 1
em.allowedAttribs := removeFromList(style)
em.fixAttrib.style.unset = 1
i.allowedAttribs := removeFromList(style)
i.fixAttrib.style.unset = 1
ins.allowedAttribs := removeFromList(style)
ins.fixAttrib.style.unset = 1
kbd.allowedAttribs := removeFromList(style)
kbd.fixAttrib.style.unset = 1
label.allowedAttribs := removeFromList(style)
label.fixAttrib.style.unset = 1
q.allowedAttribs := removeFromList(style)
q.fixAttrib.style.unset = 1
samp.allowedAttribs := removeFromList(style)
samp.fixAttrib.style.unset = 1
small.allowedAttribs := removeFromList(style)
small.fixAttrib.style.unset = 1
strike.allowedAttribs := removeFromList(style)
strike.fixAttrib.style.unset = 1
strong.allowedAttribs := removeFromList(style)
strong.fixAttrib.style.unset = 1
sub.allowedAttribs := removeFromList(style)
sub.fixAttrib.style.unset = 1
sup.allowedAttribs := removeFromList(style)
sup.fixAttrib.style.unset = 1
tt.allowedAttribs := removeFromList(style)
tt.fixAttrib.style.unset = 1
u.allowedAttribs := removeFromList(style)
u.fixAttrib.style.unset = 1
var.allowedAttribs := removeFromList(style)
var.fixAttrib.style.unset = 1
div.allowedAttribs := removeFromList(style)
div.fixAttrib.style.unset = 1
table.allowedAttribs := removeFromList(style)
table.fixAttrib.style.unset = 1
hr.allowedAttribs := removeFromList(style)
hr.fixAttrib.style.unset = 1
h1.fixAttrib.style.unset = 1
h2.fixAttrib.style.unset = 1
h3.fixAttrib.style.unset = 1
h4.fixAttrib.style.unset = 1
h5.fixAttrib.style.unset = 1
thead.fixAttrib.style.unset = 1
tfoot.fixAttrib.style.unset = 1
tbody.fixAttrib.style.unset = 1
col.fixAttrib.style.unset = 1
colgroup.fixAttrib.style.unset = 1
tr.fixAttrib.style.unset = 1
td.fixAttrib.style.unset = 1
th.fixAttrib.style.unset = 1
ol.fixAttrib.style.unset = 1
ul.fixAttrib.style.unset = 1
li.fixAttrib.style.unset = 1
dl.fixAttrib.style.unset = 1
dt.fixAttrib.style.unset = 1
dd.fixAttrib.style.unset = 1
br.fixAttrib.style.unset = 1
object.fixAttrib.style.unset = 1
param.fixAttrib.style.unset = 1
script.fixAttrib.style.unset = 1
a.fixAttrib.style.unset = 1
pre.fixAttrib.style.unset = 1
abbr.fixAttrib.style.unset = 1
address.fixAttrib.style.unset = 1
area.fixAttrib.style.unset = 1
map.fixAttrib.style.unset = 1
caption.fixAttrib.style.unset = 1
form.fixAttrib.style.unset = 1
select.fixAttrib.style.unset = 1
option.fixAttrib.style.unset = 1
input.fixAttrib.style.unset = 1
button.fixAttrib.style.unset = 1
fieldset.fixAttrib.style.unset = 1
legend.fixAttrib.style.unset = 1
optgroup.fixAttrib.style.unset = 1
textarea.fixAttrib.style.unset = 1
iframe.fixAttrib.style.unset = 1
}

RTE.default.FE.proc.keepPDIVattribs := removeFromList(style)
RTE.default.FE.proc.entryHTMLparser_db.tags {
span.allowedAttribs := removeFromList(style)
p.allowedAttribs := removeFromList(style)
p.fixAttrib.style.unset = 1
b.allowedAttribs := removeFromList(style)
bdo.allowedAttribs := removeFromList(style)
big.allowedAttribs := removeFromList(style)
blockquote.allowedAttribs := removeFromList(style)
cite.allowedAttribs := removeFromList(style)
code.allowedAttribs := removeFromList(style)
del.allowedAttribs := removeFromList(style)
dfn.allowedAttribs := removeFromList(style)
em.allowedAttribs := removeFromList(style)
i.allowedAttribs := removeFromList(style)
ins.allowedAttribs := removeFromList(style)
kbd.allowedAttribs := removeFromList(style)
label.allowedAttribs := removeFromList(style)
q.allowedAttribs := removeFromList(style)
samp.allowedAttribs := removeFromList(style)
small.allowedAttribs := removeFromList(style)
strike.allowedAttribs := removeFromList(style)
strong.allowedAttribs := removeFromList(style)
sub.allowedAttribs := removeFromList(style)
sup.allowedAttribs := removeFromList(style)
tt.allowedAttribs := removeFromList(style)
u.allowedAttribs := removeFromList(style)
var.allowedAttribs := removeFromList(style)
div.allowedAttribs := removeFromList(style)
table.allowedAttribs := removeFromList(style)
hr.allowedAttribs := removeFromList(style)
hr.fixAttrib.style.unset = 1
h1.fixAttrib.style.unset = 1
h2.fixAttrib.style.unset = 1
h3.fixAttrib.style.unset = 1
h4.fixAttrib.style.unset = 1
h5.fixAttrib.style.unset = 1
thead.fixAttrib.style.unset = 1
tfoot.fixAttrib.style.unset = 1
tbody.fixAttrib.style.unset = 1
col.fixAttrib.style.unset = 1
colgroup.fixAttrib.style.unset = 1
tr.fixAttrib.style.unset = 1
td.fixAttrib.style.unset = 1
th.fixAttrib.style.unset = 1
ol.fixAttrib.style.unset = 1
ul.fixAttrib.style.unset = 1
li.fixAttrib.style.unset = 1
dl.fixAttrib.style.unset = 1
dt.fixAttrib.style.unset = 1
dd.fixAttrib.style.unset = 1
br.fixAttrib.style.unset = 1
object.fixAttrib.style.unset = 1
param.fixAttrib.style.unset = 1
script.fixAttrib.style.unset = 1
a.fixAttrib.style.unset = 1
pre.fixAttrib.style.unset = 1
abbr.fixAttrib.style.unset = 1
address.fixAttrib.style.unset = 1
area.fixAttrib.style.unset = 1
map.fixAttrib.style.unset = 1
caption.fixAttrib.style.unset = 1
form.fixAttrib.style.unset = 1
select.fixAttrib.style.unset = 1
option.fixAttrib.style.unset = 1
input.fixAttrib.style.unset = 1
button.fixAttrib.style.unset = 1
fieldset.fixAttrib.style.unset = 1
legend.fixAttrib.style.unset = 1
optgroup.fixAttrib.style.unset = 1
textarea.fixAttrib.style.unset = 1
iframe.fixAttrib.style.unset = 1
}

RTE.default.FE.enableWordClean.HTMLparser.tags.p.allowedAttribs := removeFromList(style)
RTE.default.enableWordClean.HTMLparser.allowTags := removeFromList(style)
RTE.default.enableWordClean.HTMLparser.tags.p.allowedAttribs := removeFromList(style)

RTE.default.removeTagsAndContents := removeFromList(script)
RTE.default.FE.removeTagsAndContents := removeFromList(script)
RTE.default.FE.proc.allowTagsOutside := addToList(script)
RTE.default.proc.allowTagsOutside := addToList(script)
RTE.default.proc.proc.allowTagsOutside := addToList(script)

RTE.default.proc {
allowTags := addToList(object,param)
allowTagsOutside := addToList(object)
entryHTMLparser_db.allowTags := addToList(object,param)
}

#
# REMOVE ALL INLINE STYLING
#
# STOP
#

RTE.classesAnchor =
RTE.default.buttons.link.properties.class.allowedClasses >
RTE.default.FE.buttons.link.properties.class.allowedClasses >

(2-2/2)