Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
 - correct editor instance removal
  • Loading branch information
tsv2013 committed May 31, 2019
1 parent 67dbcb4 commit 62c43a2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/ck-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,9 @@ function init(Survey) {
};
updateValueHandler();
},
willUnmount: function(question, el) {
willUnmount: function (question, el) {
question.readOnlyChangedCallback = null;
CKEDITOR.instances[name].removeAllListeners();
CKEDITOR.remove(CKEDITOR.instances[name]);
CKEDITOR.instances[question.id].destroy(false);
}
};

Expand Down

0 comments on commit 62c43a2

Please sign in to comment.