Turning CKEditor 4 inline editing on and off with JavaScript

后端 未结 1 1373
谎友^
谎友^ 2021-02-15 11:19

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:13

    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)
提交回复
热议问题