YUI RTE setEditorHTML….

var myEditor = new YAHOO.widget.Editor('editor', config);
myEditor.on('editorContentLoaded', function() {
myEditor.setEditorHTML('This is my new content');
});
myEditor.render();

要 listening editorContentLoaded event 才行
沒在editorContentLoaded 裡下………….
myEditor.setEditorHTML(‘This is my new content’);
沒作用………

About johnpupu

..........
This entry was posted in program and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word