Turning CKEditor 4 inline editing on and off with JavaScript

后端 未结 1 845
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-15 11:25

I need to be able to toggle inline editing on/off with a button. See here for example of inline editing: http://nightly-v4.ckeditor.com/3559/samples/inlineall.html

My ma

相关标签:
1条回答
  • 2021-02-15 12:03

    jQuery won't help you. Use CKEditor's API. E.g. you can destroy editor each time you want to turn it off (see http://nightly-v4.ckeditor.com/ckeditor_api/#!/api/CKEDITOR.editor-method-destroy) and initialize again to turn it on. There may be other ways to "turn editor off", but you'd have to be more precise what does it mean for you.

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