TinyMCE 4 disable cleanup html
10,559
Solution 1
tinyMCE.init({
// ...
cleanup : false,
verify_html : false
});
Solution 2
This might not fix all your problem but this allowed me to be able to use all html tags and attributes, so it might be a step in right direction.
tinyMCE.init({
// ...
valid_elements : '*[*]',
});
Edit :
This worked better for me:
tinyMCE.init({
// ...
extended_valid_elements : '*[*]',
});
Related videos on Youtube
Author by
Bugaloo
Updated on July 08, 2022Comments
-
Bugaloo almost 2 years
How can I disable the automatic cleaning of HTML code in TinyMCE 4.x When I copy text from WORD, TinyMCE removes styles
-
Nathan B over 6 yearsWhat's the replacement of cleanup in tinymce 4?
-
Mo Sadeghipour almost 3 yearsThe link to paste preprocess is broken.
-
Thariama almost 3 yearsi adjusted the link