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

后端 未结 7 755
感动是毒
感动是毒 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:24

    I have accomplished this using this code. Hopefully this helps.

    Here is the html:

    
    

    and here is the javascript:

    try {
            var config =
                {
                    height: 180,
                    width: 515,
                    linkShowAdvancedTab: false,
                    scayt_autoStartup: true,
                    enterMode: Number(2),
                    toolbar_Full: [['Styles', 'Bold', 'Italic', 'Underline', 'SpellChecker', 'Scayt', '-', 'NumberedList', 'BulletedList'],
                                    ['Link', 'Unlink'], ['Undo', 'Redo', '-', 'SelectAll']]
    
                };
    
            $('textarea.editor').ckeditor(config);   }
    

提交回复
热议问题