2009
02.07
02.07
While working with YUI Editor, We were trying to set the intial value and we wanted to use the setEditorHTML function. Did not work.
We then figured out you need to wait for the event editorContedLoaded event before trying to set the value – SOLVED!!
my_editor = new YAHOO.widget.Editor(”editor_container”, myconfig);
my_editor.render();
my_editor.on(”editorContentLoaded”, function(){
my_editor.setEditorHTML(”My initial value”);
});
No Comment.
Add Your Comment