(no commit message)
[paste/267.git] / rte.ts
1 # Put this into Page TSConfig\r
2 \r
3 # Rich Text Editor configuration\r
4 # https://docs.typo3.org/typo3cms/extensions/rtehtmlarea/Configuration/PageTsconfig/interfaceConfiguration/Index.html\r
5 # https://docs.typo3.org/typo3cms/CoreApiReference/Rte/Transformations/Index.html\r
6 # https://docs.typo3.org/typo3cms/TyposcriptReference/Functions/Htmlparser/Index.html\r
7 \r
8 RTE.default {\r
9     showButtons = bold, strong, emphasis, italic, unorderedlist, link, unlink, chMode\r
10     RTEHeightOverride = 300\r
11 \r
12     proc {\r
13         # allowTags gets added to the built-in list, so we use denyTags\r
14         # default allowtags:\r
15         #  a,b,blockquote,br,center,div,em,font,hr,i,img,li,ol,p,pre,span,strike,strong,sub,sup,u,ul\r
16         denyTags = blockquote, center, div, font, h1, h2, h3, h4, h5, h6, hr, img, ol, pre, span, strike, sub, sup, strike, u\r
17 \r
18         entryHTMLparser_db = 1\r
19         entryHTMLparser_db {\r
20             removeTags < RTE.default.proc.denyTags\r
21             noAttrib = b, br, div, em, i, li, p, strong, ul\r
22             tags >\r
23             # prevent activation of RteHtmlParser::transformStyledATags()\r
24             tags.a.allowedAttribs = href,title,target\r
25         }\r
26     }\r
27 }\r