繁体   English   中英

CK 编辑器实例已附加到提供的元素

[英]The CK editor instance is already attached to the provided element

我现在只是在玩 CK Editor,试图将数据保存到数据库中。 但是这个错误出现在控制台中,想确保我没有做错任何事情。

我使用以下 HTML 作为动态引导选项卡系统的一部分,不要认为这是干扰。

“未捕获编辑器实例“testEditor”已附加到提供的元素。”

JS:

$(document).ready(function(){
  CKEDITOR.disableAutoInline = true;
  CKEDITOR.inline("testEditor");
});

HTML:

<div id="testEditor" name="testEditor" class="tab-pane fade" contenteditable="true">
        <h3 id="test1">
          Test
        </h3>
        <p style="font-size: 15px;" id="test2">
          This is a test. Line 1<br>
          Line 2<br>
          Line 3
        </p>
        <h4 style="font-weight: bold;" id="test3">
          Test
        </h4>
</div>

你应该把CKEDITOR.disableAutoInline = true; $(document).ready

暂无
暂无

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

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