Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Default RTE processing rules
- RTE.default.proc {
- # TRANSFORMATION METHOD
- # We assume that CSS Styled Content and DAM is used.
- overruleMode = ts_css, txdam_media
- # TAGS ALLOWED OUTSIDE P & DIV
- # add some more standard elements
- allowTagsOutside = hr, address, ul, ol, li, img, table, object, embed, code, pre
- entryHTMLparser_db {
- tags {
- # IMAGE TAGS (Extension Manager must be enabled, too)
- img.allowedAttribs = style,class,id,src,width,height
- img.rmTagIfNoAttrib = 1
- # disable above and enable below to remove all images
- # img.allowedAttribs = 0
- # add acronym
- acronym.allowedAttribs = id, title, dir, lang, xml:lang, class
- }
- # REMOVE OPEN OFFICE META DATA TAGS, WORD 2003 TAGS, LINK, META, STYLE AND TITLE TAGS, AND DEPRECATED HTML TAGS
- # We use this rule instead of the denyTags rule so that we can protect custom tags without protecting these unwanted tags.
- # modify default config
- removeTags = center, font, link, meta, o:p, sdfield, style, title, big, small
- }
- exitHTMLparser_db {
- # remap some old tags
- tags {
- b.remap = strong
- i.remap = em
- s.remap = strike
- }
- }
- }
- # Make sure we use ts_css transformation
- # add DAM
- RTE.config.tt_content.bodytext.proc.overruleMode = ts_css, txdam_media
- RTE.config.tt_content.bodytext.types.text.proc.overruleMode = ts_css, txdam_media
- RTE.config.tt_content.bodytext.types.textpic.proc.overruleMode = ts_css, txdam_media
- # needed for DAM media tag within tt_news
- RTE.config.tt_news.bodytext.proc.overruleMode = ts_css, txdam_media
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement