Advertisement
Guest User

Untitled

a guest
Oct 17th, 2011
375
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. # Default RTE processing rules
  3. RTE.default.proc {
  4.  
  5.     # TRANSFORMATION METHOD
  6.     # We assume that CSS Styled Content and DAM is used.
  7.     overruleMode = ts_css, txdam_media
  8.  
  9.         # TAGS ALLOWED OUTSIDE P & DIV
  10.         # add some more standard elements
  11.     allowTagsOutside = hr, address, ul, ol, li, img, table, object, embed, code, pre
  12.  
  13.     entryHTMLparser_db {
  14.         tags {
  15.        
  16.             # IMAGE TAGS (Extension Manager must be enabled, too)
  17.             img.allowedAttribs = style,class,id,src,width,height
  18.             img.rmTagIfNoAttrib = 1
  19.             # disable above and enable below to remove all images
  20.             # img.allowedAttribs = 0
  21.                        
  22.             # add acronym
  23.             acronym.allowedAttribs = id, title, dir, lang, xml:lang, class
  24.         }
  25.  
  26.         # REMOVE OPEN OFFICE META DATA TAGS, WORD 2003 TAGS, LINK, META, STYLE AND TITLE TAGS, AND DEPRECATED HTML TAGS
  27.         # We use this rule instead of the denyTags rule so that we can protect custom tags without protecting these unwanted tags.
  28.         # modify default config
  29.         removeTags = center, font, link, meta, o:p, sdfield, style, title, big, small
  30.     }
  31.  
  32.     exitHTMLparser_db {
  33.         # remap some old tags
  34.         tags {
  35.             b.remap = strong
  36.             i.remap = em
  37.             s.remap = strike
  38.         }
  39.     }
  40. }
  41.  
  42. # Make sure we use ts_css transformation
  43. # add DAM
  44. RTE.config.tt_content.bodytext.proc.overruleMode = ts_css, txdam_media
  45. RTE.config.tt_content.bodytext.types.text.proc.overruleMode = ts_css, txdam_media
  46. RTE.config.tt_content.bodytext.types.textpic.proc.overruleMode = ts_css, txdam_media
  47.  
  48. # needed for DAM media tag within tt_news
  49. RTE.config.tt_news.bodytext.proc.overruleMode = ts_css, txdam_media
  50.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement