E-A
E-A

Reputation: 2025

TinyMce Allow all Html tag

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_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?

Upvotes: 43

Views: 54134

Answers (2)

David Caulfield
David Caulfield

Reputation: 82

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

Upvotes: 5

Thariama
Thariama

Reputation: 50840

You can set

valid_elements : '*[*]',

to allow all html tags.

Upvotes: 77

Related Questions