1

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 possible to insert dojo elements on the fly, after the page is loaded completely?

i'm missing something?

thanks.

2
  • it seems it needs to use dojo.parser.parse - but it is not working :(
    – Fernando
    May 9, 2010 at 20:45
  • 1
    solved (ALONE) .. hehe used dojo.parser.parse to the div and not to the widget. :)
    – Fernando
    May 9, 2010 at 21:59

1 Answer 1

1
                 var editor= new dijit.Editor({
                    name : 'editor_name',
                 }, dojo.byId('id_editor'));    

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.