CKEDITOR: CKEDITOR.disableAutoInline = true 不工作

Md.*_*hid 2 ckeditor

我的网页中有一个 div 标签

<div id="editor1" name="editor1" contenteditable="true">
     {!! $post->post !!}
</div>
Run Code Online (Sandbox Code Playgroud)

当我点击这个 div 的内容时,会CKEditor Toolbar自动出现一个。我试图禁用这个 Toolbar。我尝试了以下但无法做到。

尝试 1:

<script>
    $(document).ready(function() {
        CKEDITOR.disableAutoInline = true;
    });
</script>
Run Code Online (Sandbox Code Playgroud)

尝试 2:在 CKEditor 配置文件中

config.disableAutoInline = true;
Run Code Online (Sandbox Code Playgroud)

我有什么问题?我在 Google、Stakeoverflow 上搜索了几个小时,但没有找到任何解决方案。我可以得到任何人的帮助吗?

注意:

在我添加的页眉中

<link rel="stylesheet" href="http://localhost/ewt/resources\assets  
\ckeditor\plugins\codesnippet\lib\highlight\styles\magula.css">
Run Code Online (Sandbox Code Playgroud)

在页脚中我添加了

<script src="http://localhost/ewt/resources/assets/ckeditor/ckeditor.js">  </script>
<script src="http://localhost/ewt/resources/assets/ckeditor/adapters 
/jquery.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
Run Code Online (Sandbox Code Playgroud)

Cat*_*ash 5

我有同样的问题,对我来说,当我在 document.ready 之外设置 disableAutoInline 时它​​开始工作:

<script type="text/javascript">
    CKEDITOR.disableAutoInline = true;
    $(document).ready(function () {
       ...
    }
</script>
Run Code Online (Sandbox Code Playgroud)