Adding a dijit.Editor after page load
Hey Experts, please help me out with a dijit.Editor doubt.
I want to add a dijit.Editor dynamically to my Page using jQuery.
my code is:
jQuery(#foo).before("<textarea width='500px' name='page_text2[]' dojoType='dijit.Editor' ></textarea>");
The textarea gets created, but dijit.Editor does not show.
It seems dojo only parses elements onLoad.
Is it possibl开发者_StackOverflow中文版e to insert dojo elements on the fly, after the page is loaded completely?
i'm missing something?
thanks.
var editor= new dijit.Editor({
name : 'editor_name',
}, dojo.byId('id_editor'));
精彩评论