TinyMce Allow all Html tag

前端 未结 2 770
醉话见心
醉话见心 2020-12-05 09:56

I\'m using TinyMce and even though the danger of a script attack, I need to enable all html tags with the editor.

Currently, I\'m use like:

valid_ele         


        
相关标签:
2条回答
  • 2020-12-05 10:13

    You can set

    valid_elements : '*[*]',
    

    to allow all html tags.

    0 讨论(0)
  • 2020-12-05 10:24

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

    0 讨论(0)
提交回复
热议问题