[sourcecode language=’js’]
var myEditor = new YAHOO.widget.Editor(‘editor’, config);
myEditor.on(‘editorContentLoaded’, function() {
myEditor.setEditorHTML(‘This is my new content’);
});
myEditor.render();
[/sourcecode]
要 listening editorContentLoaded event 才行
沒在editorContentLoaded 裡下………….
myEditor.setEditorHTML(‘This is my new content’);
沒作用………