CKEditor: Class or ID for editor body

后端 未结 7 1579
深忆病人
深忆病人 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条回答
  •  -上瘾入骨i
    2020-12-03 18:24

    I had the same problem today in trying to set the bodyClass like this:

    CKEDITOR.replace( 'editor1', { fullPage : true, bodyClass : 'myClass'

    });

    What I found is that in this version (3.3.1), if you set fullpage = true, setting the bodyId or bodyClass does not work, but if you set fullPage = false, it does work.

    Hope this helps.

提交回复
热议问题