CKEditor: Class or ID for editor body

后端 未结 7 1598
深忆病人
深忆病人 2020-12-03 18:10

I have an instance of CKEditor on a page. I am trying to give the CKEditor\'s body a class or ID so it matches some styles I have defined in a stylesheet.

There is a

7条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-03 18:11

    From the Manual:

    {String|Array} CKEDITOR.config.contentsCss

    The CSS file(s) to be used to apply style to the contents. It should reflect the CSS used in the final pages where the contents are to be used.

    config.contentsCss = '/css/mysitestyles.css';
    config.contentsCss = ['/css/mysitestyles.css', '/css/anotherfile.css'];
    

    Default Value:

    /contents.css

提交回复
热议问题