1 # ***************************************************************************************
2 # Default proc options in Page TSconfig for htmlArea RTE
4 # Sets the proc options for all default configurations.
6 # Assumptions: - CSS Styled Content is installed.
7 # - XHTML output is expected.
9 # ***************************************************************************************
11 ## Default RTE processing rules
14 ## TRANSFORMATION METHOD
15 ## We assume that CSS Styled Content is used.
18 ## DO NOT CONVERT BR TAGS INTO LINEBREAKS
19 ## br tags in the content are assumed to be intentional.
20 dontConvBRtoParagraph = 1
22 ## TAGS ALLOWED OUTSIDE P & DIV
23 allowTagsOutside = address, article, aside, blockquote, footer, header, hr, nav, section
26 ## Added to the default internal list: b,i,u,a,img,br,div,center,pre,font,hr,sub,sup,p,strong,em,li,ul,ol,blockquote,strike,span
27 ## But, for the sake of clarity, we use a complete list in alphabetic order.
28 ## center, font, link, meta, o:p, strike, sdfield, style, title and u will be removed on entry (see below).
29 ## b and i will be remapped on exit (see below).
30 ## Note that the link accessibility feature of htmlArea RTE does insert img tags.
31 allowTags = a, abbr, acronym, address, article, aside, b, bdo, big, blockquote, br, caption, center, cite, code, col, colgroup, dd, del, dfn, dl, div, dt, em, font, footer
32 allowTags := addToList(header, h1, h2, h3, h4, h5, h6, hr, i, img, ins, kbd, label, li, link, meta, nav, ol, p, pre, q, samp, sdfield, section, small)
33 allowTags := addToList(span, strike, strong, style, sub, sup, table, thead, tbody, tfoot, td, th, tr, title, tt, u, ul, var)
36 ## Make sure we can set rules on any tag listed in allowTags.
39 ## ALLOWED P & DIV ATTRIBUTES
40 ## Attributes class and align are always preserved
41 ## Align attribute will be unset on entry (see below)
42 ## This is a list of additional attributes to keep
43 keepPDIVattribs = id, title, dir, lang, xml:lang, itemscope, itemtype, itemprop
45 ## REMAP BOLD AND ITALIC TO STRONG AND EMPHASIS AND VICE VERSA
46 transformBoldAndItalicTags = 1
48 ## ALLOW TO WRITE ABOUT HTML
52 ## CONTENT TO DATABASE
53 entryHTMLparser_db = 1
57 ## Always use the same list of allowed tags.
58 allowTags < RTE.default.proc.allowTags
61 ## Make sure we can set rules on any tag listed in allowTags.
64 ## AVOID CONTENT BEING HSC'ed TWICE
70 img.allowedAttribs = 0
71 img.rmTagIfNoAttrib = 1
73 ## CLEAN ATTRIBUTES ON THE FOLLOWING TAGS
74 span.fixAttrib.style.unset = 1
75 span.allowedAttribs = id, title, dir, lang, xml:lang, class, itemscope, itemtype, itemprop
76 span.rmTagIfNoAttrib = 1
78 allowedAttribs = id, title, dir, lang, xml:lang, class, itemscope, itemtype, itemprop
79 fixAttrib.align.unset = 1
82 hr.allowedAttribs = class
83 b.allowedAttribs < .span.allowedAttribs
84 bdo.allowedAttribs < .span.allowedAttribs
85 big.allowedAttribs < .span.allowedAttribs
86 blockquote.allowedAttribs < .span.allowedAttribs
87 cite.allowedAttribs < .span.allowedAttribs
88 code.allowedAttribs < .span.allowedAttribs
89 del.allowedAttribs < .span.allowedAttribs
90 dfn.allowedAttribs < .span.allowedAttribs
91 em.allowedAttribs < .span.allowedAttribs
92 i.allowedAttribs < .span.allowedAttribs
93 ins.allowedAttribs < .span.allowedAttribs
94 kbd.allowedAttribs < .span.allowedAttribs
95 label.allowedAttribs < .span.allowedAttribs
96 q.allowedAttribs < .span.allowedAttribs
97 samp.allowedAttribs < .span.allowedAttribs
98 small.allowedAttribs < .span.allowedAttribs
99 strike.allowedAttribs < .span.allowedAttribs
100 strong.allowedAttribs < .span.allowedAttribs
101 sub.allowedAttribs < .span.allowedAttribs
102 sup.allowedAttribs < .span.allowedAttribs
103 tt.allowedAttribs < .span.allowedAttribs
104 u.allowedAttribs < .span.allowedAttribs
105 var.allowedAttribs < .span.allowedAttribs
108 ## REMOVE OPEN OFFICE META DATA TAGS, WORD 2003 TAGS, LINK, META, STYLE AND TITLE TAGS, AND DEPRECATED HTML TAGS
109 ## We use this rule instead of the denyTags rule so that we can protect custom tags without protecting these unwanted tags.
110 removeTags = center, font, link, meta, o:p, sdfield, strike, style, title, u
112 ## PROTECT CUSTOM TAGS
113 keepNonMatchedTags = protect
117 ## STRIP ALL ATTRIBUTES FROM THESE TAGS
118 ## If this list of tags is not set, it will default to: b,i,u,br,center,hr,sub,sup,strong,em,li,ul,ol,blockquote,strike.
119 ## However, we want to keep xml:lang attribute on most tags and tags from the default list where cleaned on entry.
123 exitHTMLparser_db = 1
126 ## Unwanted tags were removed on entry.
127 ## Without this rule, the parser will remove all tags! Presumably, this rule will be more efficient than repeating the allowTags rule
128 keepNonMatchedTags = 1
130 ## AVOID CONTENT BEING HSC'ed TWICE
135 ## Use same RTE processing rules in FE
136 RTE.default.FE.proc < RTE.default.proc
138 ## RTE processing rules for bodytext column of tt_content table
139 ## Erase settings from other extensions
140 RTE.config.tt_content.bodytext >
142 ## Make sure we use ts_css transformation
143 RTE.config.tt_content.bodytext.proc.overruleMode = ts_css
144 RTE.config.tt_content.bodytext.types.text.proc.overruleMode = ts_css
145 RTE.config.tt_content.bodytext.types.textpic.proc.overruleMode = ts_css