4 Answers, 1 is accepted
I mean to say Kendo UI Editor. So the question should be:
Is there a way to do clean formatting when pasting the content of the clipboard (not from MS Word document) into the Kendo UI Editor?
Basically, I want to accomplish the same thing as the clean formatting tool does.
Customizations on the pasted content can be performed in the paste event of the Editor.
You can either use string manipulation, or temporarily inject the pasted content in an invisible container and clean the formatting via DOM manipulation.
Dimo, thank you very much for your prompt reply.
Is there a way though, to use the code behind the Clean Formatting tool, to clean the pasted content?
The "Clean formatting" tool works with the currently selected content in the Editor. From this point of view, the tool can be used for the pasted content only if the user selects what he have already pasted and clean it manually.