CKEditor instance already exists

前端 未结 30 3449
刺人心
刺人心 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:08

    I hade the same problem with a jQuery Dialog.

    Why destroy the instance if you just want to remove previous data ?

    function clearEditor(id)
    {
      var instance = CKEDITOR.instances[id];
      if(instance)
      {
        instance.setData( '' );
      }
    }
    

提交回复
热议问题