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

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

    var config = {
        toolbar:
        [
            ['Source','-','Save','NewPage','Preview','-','Templates'],
            ['Maximize', 'ShowBlocks','-','About']
        ],
        coreStyles_bold: { element : 'b', overrides : 'strong' }
    };
    

    Simply add the respective config object, above I added coreStyles_bold, All I did is change the "=" from the CK API documentation to a ":"

提交回复
热议问题