How do I pass in config info to CKEditor using the jQuery adapter?

后端 未结 7 744
感动是毒
感动是毒 2021-02-05 06:49

I\'m using the latest CKeditor with jQuery adapter.

I have successfully got it to work, and display.

However, as I am completely new to CKeditor, how d

7条回答
  •  迷失自我
    2021-02-05 07:46

     $(document).ready(function(){
         $('.reply').click(
         function(event){
             // Event click Off Default
             event.preventDefault();
             // CKEditor
             $(function(){
                 var config = {toolbar:[['Bold', 'Italic', '-', 'Link', 'Unlink']]};
                //
                 // DOM class = "cke"
                 $('textarea.cke').ckeditor(function(){}, config);                
             });
             return false;
         });
     });
    

提交回复
热议问题