Thanks for your reply. But i had tried that, but the setData function seems not work. This is my code: CKEDITOR.replace( 'editor1' , { on:{ instanceReady : function( ev ) { insert = CKEDITOR.getTemplates('default'); this.setData(insert.templates[0].html); } } });
Re: how can load a template defaultly
See this: http://stackoverflow.com/questions/3793 ... the-editor
Documentation Manager, CKSource
See CKEditor 5 docs, CKEditor 4 docs, CKEditor 3 docs, CKFinder 3 docs, CKFinder 2 docs for help.
Visit the new CKEditor SDK for samples showcasing editor features to try out and download!
Re: how can load a template defaultly
Thanks for your reply. But i had tried that, but the setData function seems not work.
This is my code:
CKEDITOR.replace( 'editor1' , {
on:{ instanceReady : function( ev ) {
insert = CKEDITOR.getTemplates('default');
this.setData(insert.templates[0].html);
}
}
});
Re: how can load a template defaultly
Thanks for sharing useful link here its really useful for newbie like me.
Re: how can load a template defaultly
what's the problem? i think the getTemplates(name) method is defined in plugin.js