1
我有一个div标签在我的网页CKEDITOR:CKEDITOR.disableAutoInline =真不工作
<div id="editor1" name="editor1" contenteditable="true">
{!! $post->post !!}
</div>
当我点击这个div的内容,一个CKEditor Toolbar
自动出现。 我试图禁用此工具栏。我尝试了以下,但无法完成。
尝试1:
<script>
$(document).ready(function() {
CKEDITOR.disableAutoInline = true;
});
</script>
尝试2:在CKEditor的配置文件
config.disableAutoInline = true;
什么是我错了吗?我正在谷歌搜索Stakeoverflow几个小时,但没有找到任何解决方案。我可以得到任何人的帮助吗?
需要注意的是:
在我加入
<link rel="stylesheet" href="http://localhost/ewt/resources\assets
\ckeditor\plugins\codesnippet\lib\highlight\styles\magula.css">
,并在页脚我加
<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>