开发者

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'));    
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜