Antisamy policy fixes
Allow table tags in TinyMCE
This commit is contained in:
parent
bf7c6ffaf7
commit
3c2e9cab05
2 changed files with 30 additions and 10 deletions
|
@ -106,8 +106,8 @@ http://www.w3.org/TR/html401/struct/global.html
|
|||
<regexp name="angle" value="(-|\+)?([0-9]+(\.[0-9]+)?)(deg|grads|rad)"/>
|
||||
<regexp name="time" value="([0-9]+(\.[0-9]+)?)(ms|s)"/>
|
||||
<regexp name="frequency" value="([0-9]+(\.[0-9]+)?)(hz|khz)"/>
|
||||
<regexp name="length" value="((-|\+)?0|(-|\+)?([0-9]+(\.[0-9]+)?)(em|ex|px|in|cm|mm|pt|pc))"/>
|
||||
<regexp name="positiveLength" value="((\+)?0|(\+)?([0-9]+(\.[0-9]+)?)(em|ex|px|in|cm|mm|pt|pc))"/>
|
||||
<regexp name="length" value="((-|\+)?0|(-|\+)?([0-9]+(\.[0-9]+)?)(rem|em|ex|px|in|cm|mm|pt|pc))"/>
|
||||
<regexp name="positiveLength" value="((\+)?0|(\+)?([0-9]+(\.[0-9]+)?)(rem|em|ex|px|in|cm|mm|pt|pc))"/>
|
||||
<regexp name="percentage" value="(-|\+)?([0-9]+(\.[0-9]+)?)%"/>
|
||||
<regexp name="positivePercentage" value="(\+)?([0-9]+(\.[0-9]+)?)%"/>
|
||||
|
||||
|
@ -149,6 +149,14 @@ http://www.w3.org/TR/html401/struct/global.html
|
|||
</regexp-list>
|
||||
</attribute>
|
||||
|
||||
<attribute name="dir" description="The dir attribute specifies the text direction of the element's content.">
|
||||
<literal-list>
|
||||
<literal value="ltr"/>
|
||||
<literal value="rtl"/>
|
||||
<literal value="auto"/>
|
||||
</literal-list>
|
||||
</attribute>
|
||||
|
||||
<attribute name="class" description="The 'class' of any HTML attribute is usually a single word, but it can also be a list of class names separated by spaces">
|
||||
<regexp-list>
|
||||
<regexp name="htmlClass"/>
|
||||
|
@ -549,12 +557,24 @@ http://www.w3.org/TR/html401/struct/global.html
|
|||
|
||||
<!-- All formatting tags -->
|
||||
|
||||
<tag name="h1" action="validate"/>
|
||||
<tag name="h2" action="validate"/>
|
||||
<tag name="h3" action="validate"/>
|
||||
<tag name="h4" action="validate"/>
|
||||
<tag name="h5" action="validate"/>
|
||||
<tag name="h6" action="validate"/>
|
||||
<tag name="h1" action="validate">
|
||||
<attribute name="dir"/>
|
||||
</tag>
|
||||
<tag name="h2" action="validate">
|
||||
<attribute name="dir"/>
|
||||
</tag>
|
||||
<tag name="h3" action="validate">
|
||||
<attribute name="dir"/>
|
||||
</tag>
|
||||
<tag name="h4" action="validate">
|
||||
<attribute name="dir"/>
|
||||
</tag>
|
||||
<tag name="h5" action="validate">
|
||||
<attribute name="dir"/>
|
||||
</tag>
|
||||
<tag name="h6" action="validate">
|
||||
<attribute name="dir"/>
|
||||
</tag>
|
||||
|
||||
<tag name="p" action="validate">
|
||||
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
theme_advanced_resizing : true,
|
||||
height : "${height}",
|
||||
width : "${width}",
|
||||
valid_elements : "a[href|name|title],br,p,i,em,cite,strong/b,u,sub,sup,ul,ol,li",
|
||||
valid_elements : "tr[*],td[*],tbody[*],table[*],a[href|name|title],br,p[style],i,em,cite,strong/b,u,sub,sup,ul,ol,li,h1[dir|style|id],h2[dir|style|id],h3[dir|style|id],h4,h5,h6,div[style|class],span[dir|style|class]",
|
||||
fix_list_elements : true,
|
||||
fix_nesting : true,
|
||||
cleanup_on_startup : true,
|
||||
|
@ -49,7 +49,7 @@
|
|||
paste_use_dialog : false,
|
||||
paste_auto_cleanup_on_paste : true,
|
||||
paste_convert_headers_to_strong : true,
|
||||
paste_strip_class_attributes : "all",
|
||||
paste_strip_class_attributes : "mso",
|
||||
paste_remove_spans : true,
|
||||
paste_remove_styles : true,
|
||||
paste_retain_style_properties : ""
|
||||
|
|
Loading…
Add table
Reference in a new issue