开发者

TinyMce Allow all Html tag

开发者 https://www.devze.com 2023-03-10 19:38 出处:网络
I\'m using TinyMce and even though the danger of a script attack, I need to enable all html tags with th开发者_高级运维e editor.

I'm using TinyMce and even though the danger of a script attack, I need to enable all html tags with th开发者_高级运维e editor.

Currently, I'm use like:

valid_elements: "@[class],p[style],h3,h4,h5,h6,a[href|target],strong/b,"
              + "div[align],br,table,tbody,thead,tr,td,ul,ol,li,img[src]"

But always need to add something, I want to enable ALL HTML tags with all attributes. Is there such switch that Disables the HTML filtering?


You can set

valid_elements : '*[*]',

to allow all html tags.


To keep style tags, use valid_children : "+body[style]"

0

精彩评论

暂无评论...
验证码 换一张
取 消