CKEditor instance already exists

前端 未结 30 3473
刺人心
刺人心 2020-11-27 11:24

I am using jquery dialogs to present forms (fetched via AJAX). On some forms I am using a CKEditor for the textareas. The editor displays fine on the first load.

Whe

30条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-27 12:02

    This is what worked for me:

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

提交回复
热议问题