CKEditor instance already exists

前端 未结 30 3445
刺人心
刺人心 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 11:54

    You can remove any ckeditor instance by remove method of ckeditor. Instance will be id or name of the textarea.

    if (CKEDITOR.instances[instance_name]) {
        CKEDITOR.remove(CKEDITOR.instances[instance_name]);
    }
    

提交回复
热议问题