Tinymce and j is null using tinyMCE.execCommand('mceRemoveControl', false, "textarea_id");

I am using `TinyMCE` on my website, and keep running into the error: j is null I am loading a file via ajax, which contains a `textarea`. I then perform: tinyMCE.execCommand('mceAddControl', false, 'id'); Before I call `TinyMCE` again, I use: tinyMCE.execCommand('mceRemoveControl', false, 'id'); However, this results in the `j is null` error. I have broken down `tinymce.js` into lines, and `j` is within the class selection. More specifically, inside the `getRng` function, as documented here: http://tinymce.moxiecode.com/js/tinymce/docs/api/index.html#class_tinymce.dom.Selection.html My guess is that there is still something in the browser memory stack after the control is removed? Either way, I could really use a solution to the problem.
i recommend using the not minified tinymce-js code (tinymce_dev.js). this way it is far easier to track down problems.

以上就是Tinymce and j is null using tinyMCE.execCommand('mceRemoveControl', false, "textarea_id");的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » jQuery 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏