I am using tinymce editor and my requirement is to strip all styles applied on a content while pasting without losing the bullets and tables. Is this possible? I tried initialising my tinymce editor as follows:
tinymce.init({
plugins: "paste,textcolor",
paste_as_text: true,
encoding: "xml",
mode: "exact",
selector: "textarea.className",
menubar: false,
statusbar: false,
height: 257,
browser_spellcheck: true,
toolbar: "forecolor backcolor,bold,italic,underline,separator,strikethrough,justifyleft,justifycenter,justifyright, justifyfull,bullist,numlist,undo,redo,link,unlink"
});
I am using the paste plugin and setting the paste_as_text as true. This will strip off all the styles so that I can apply the desired styles on my own. However, even the bullets and tables are also stripped which is not good. Any idea people? Thanks in advance!!