Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 506
E-A Avatar asked Jun 07 '11 14:06

E-A


2 Answers

You can set

valid_elements : '*[*]', 

to allow all html tags.

like image 67
Thariama Avatar answered Oct 14 '22 01:10

Thariama


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

like image 29
David Caulfield Avatar answered Oct 14 '22 02:10

David Caulfield