Remove few HTML Tags while pasting the data from the clipboard in Tinymce -


i'm using tinymce 2.2 , need remove few html tags while pasting data in tinymce textarea.

i have data in format:

<div id="testid"> abcd </div> 

on paste event, when use window.clipboarddata.getdata("text")to data, "abcd" , need whole data <div id="testid"> abcd </div>

where , how can whole htmldata in tinymce?

use

tinymce.get('your_textarea_id').getcontent(); 

ref : http://www.tinymce.com/wiki.php/api3:method.tinymce.editor.getcontent


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -