How to properly destroy CKEditor instance?

前端 未结 7 2148
无人及你
无人及你 2020-12-09 02:41

I am running CKeditor 3.4 on a pretty simple page. I am having a problem (sometimes) where when I call document.main_form.submit(), it will not send along the contents of th

7条回答
  •  庸人自扰
    2020-12-09 03:16

    I once used angularjs ui-router with one CKEDITOR instance for each sub-view. I used the following solution to clear the instances every time I load the ui-view

    for(name in CKEDITOR.instances)
    {
        CKEDITOR.instances[name].destroy()
    }
    

提交回复
热议问题