How can I disable the automatic cleaning of HTML code in TinyMCE 4.x When I copy text from WORD, TinyMCE removes styles
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 : '*[*]',
});
tinyMCE.init({
// ...
cleanup : false,
verify_html : false
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With