7 Ocak 2009 Çarşamba

Getting HTML contents of YUI Rich Editors

//Put the HTML back into the text area 
myEditor.saveHTML(); 

//The var html will now have the contents of the textarea
var html = myEditor.get('element').value;

//We got the contents, if we want format for alert() func:
html = html.replace(/<br>/gi, "<br>\n"); 
alert(html);

Hiç yorum yok: