PDA

View Full Version : paste plaintext using htmleditor



kleu060
2 Sep 2012, 12:07 AM
I am currently using the htmleditor as my textarea.

Currently when i want to copy and paste some text from the web brower, the html tag and css style will also be pasted to the htmleditor.

How can i remove the html tags and the css styling if i want to paste the text from the web browser, and the css styling of the original text in the htmleditor remain unchange?

Please help! Thanks

scottmartin
16 Sep 2012, 7:34 PM
There are several options:

-override the getValue/cleanHtml functions of the editor
-clean the clipboard text
-use a plugin for a more advanced editor like tinyMCE.

There is nothing built-in that provides this.

Scott.