页面加载后添加 dijit.Editor

发布于 2024-09-01 01:36:50 字数 344 浏览 2 评论 0原文

各位专家,请帮我解答一下dijit.editor的疑问。

我想使用 jQuery 将 dijit.Editor 动态添加到我的页面。

我的代码是:
jQuery(#foo).before(""); 文本

区域已创建,但 dijit.Editor 不显示。

看来dojo只解析onLoad中的元素。

页面完全加载后是否可以动态插入 dojo 元素?

我错过了什么?

谢谢。

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

墨落画卷 2024-09-08 01:36:50
                 var editor= new dijit.Editor({
                    name : 'editor_name',
                 }, dojo.byId('id_editor'));    
                 var editor= new dijit.Editor({
                    name : 'editor_name',
                 }, dojo.byId('id_editor'));    
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文