TinyMCE — stripping junk when pasting from word

This will strip all annoying extra nonsense when copy/pasting from Word:

tinyMCE.init({
selector: “textarea”,
menubar: false,
plugins: “paste”,
paste_as_text : true,
paste_data_images: false,
paste_word_valid_elements: “”,
paste_webkit_styles: “”,
paste_retain_style_properties : “”,
toolbar: “insertfile | bold italic | bullist numlist”,
height : “500”
});

This entry was posted in Uncategorized. Bookmark the permalink.