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

后端 未结 7 741
感动是毒
感动是毒 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']]};
                //<?php /*echo"var config = {toolbar:[['Bold', 'Italic', '-', 'Link', 'Unlink']]};" ;*/ ?>
                 // DOM class = "cke"
                 $('textarea.cke').ckeditor(function(){}, config);                
             });
             return false;
         });
     });
    
    0 讨论(0)
提交回复
热议问题