简体   繁体   English

a.nativeSelection为null TinyMCE编辑器

[英]a.nativeSelection is null TinyMCE Editor

I have a tinyMCE editor embedded in my page. 我的页面中嵌入了tinyMCE编辑器。 At times it gets loaded find. 有时它被加载找到。 Other times it throws "a.nativeSelection is null". 其他时候,它抛出“ a.nativeSelection为空”。

What could be wrong? 有什么事吗

I had used multiple tinyMCE editors in same page with same id for the textarea controls over which tinyMCE is applied. 我在同一页面中使用了多个具有相同id的tinyMCE编辑器,作为对其应用tinyMCE的textarea控件的使用。 This leads to problems of editor not loading perfectly. 这导致编辑器无法完美加载的问题。 I have now modified my code to clear the existing editor off the textarea and load the new one. 现在,我已经修改了代码,以清除文本区域中的现有编辑器并加载新的编辑器。 This solved it. 这解决了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM