2016-11-15 7 views
0

特定のCKEditorのプラグインを無効にする方法を教えてください。私はあなたがその投稿にコメントするための投稿と別のものを作るCKeditorを持っています。私が助けたいのは、コメントのエディタでプラグインを無効にすることです。例えば特定のCKEditorのプラグインを無効にする

コメントエディタがID CKEditor_30のみこのエディタ用のプラグインを無効にする方法があります持っていますか?

答えて

0

は解決:

私がしなければならなかったすべてがconfig.jsからカスタム設定ファイルcustom_config.jsとコピーした内容を作成することでした。その後

CKEDITOR.editorConfig = function(config) { 

    config.mathJaxLib = '//cdn.mathjax.org/mathjax/2.6-latest/MathJax.js?config=TeX-AMS_HTML'; 
    config.extraPlugins = 'lineutils,mathjax,widget'; 
    config.toolbar = [ 
     ['Styles'],['Bold','Italic','Underline'], 
     ['NumberedList','BulletedList'], 
     ['Image','Table','-','Link','Flash','Smiley','TextColor','BGColor'] 
    ]; 
}; 

私はその設定ファイルにエディタをリンク:未来から

<textarea name="new_comment" id="CKEditor_<?=$getpost['post_id']?>" placeholder="Write something ..."></textarea> 
<script> 
    CKEDITOR.replace('CKEditor_<?=$getpost['post_id']?>',{ 
     customConfig : '/website/ckeditor/custom_config.js', 
    }); 
</script> 
+0

注:cdn.mathjax.orgはその終末期に近づいている、HTTPSを確認してください。//www.mathjax .org/cdn-shutting-down /移行のヒント。 –

関連する問題