实例化tinymce
好的,我看到大多数 tinymce 的例子都是这样实例化的:
tinyMCE.init({.....
但是,我是这样做的:
editors[docs_id] = new tinymce.Editor('msgpost'+[docs_id], {
.......
});
editors[docs_id].render();
每个编辑器实例都分配给数组 editors[docs_id],
并且所有工作都很好(我认为)这边走。我的方式与其他方式有什么重大区别吗?有什么我应该关注的性能问题吗?
Ok, I see most examples of tinymce being instantiated like this:
tinyMCE.init({.....
However, I do it like this:
editors[docs_id] = new tinymce.Editor('msgpost'+[docs_id], {
.......
});
editors[docs_id].render();
Each editor instance is assigned to the array editors[docs_id],
and all works very well (I think) this way. Is there any major difference in my way versus the other. Is there any performance issues that I should be concerned with?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不,我认为性能不会有任何差异。你做得很好。
No, i don't think there will be anydifference in performance. You have done it very well.