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:
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前端其它相关文章！