2016-12-15 4 views
1

を働いていない私はCKEditorバージョン:私はこのdiv要素のコンテンツをクリックするとCKEDITOR.disableAutoInline = trueの

<div id="editor1" name="editor1" contenteditable="true"> 
    {!! $post->post !!} 
</div> 

私のWebページにdivタグを持っている、CKEditor Toolbarが自動的に表示されます。 このツールバーを無効にしようとしました。私は以下を試みたができなかった。

は1をお試しください:

<script> 
    $(document).ready(function() { 
     CKEDITOR.disableAutoInline = true; 
    }); 
</script> 

2を試してみてください:CKEditorバージョンの設定ファイル

config.disableAutoInline = true; 

私の何が問題になっていて?私はGoogle、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> 

答えて

2

を追加フッターに私は私のためにそれが仕事を始め、同じ問題を抱えていたページヘッダーで

に留意されたいです。私がdocument.readyの外でdisableAutoInlineを設定したとき:

<script type="text/javascript"> 
    CKEDITOR.disableAutoInline = true; 
    $(document).ready(function() { 
     ... 
    } 
</script> 
関連する問題