CKEditor: Class or ID for editor body

后端 未结 7 1576
深忆病人
深忆病人 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:27

    Although that part of the API wasn't ported from 2.x at the time that this question was placed, now it's easier to use the bodyId and bodyClass config options.

    Of course, the explanation by nemisj is good and can be useful for other things, but you must remember that each time that you switch away from design (to source view), the iframe is destroyed, so you'll need to reassign your attributes if you do it manually.

    0 讨论(0)
提交回复
热议问题