Skip to content

Commit 62c43a2

Browse files
committed
Fix for the https://surveyjs.answerdesk.io/internal/ticket/details/T2101 - correct editor instance removal
1 parent 67dbcb4 commit 62c43a2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/ck-editor.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,9 @@ function init(Survey) {
5656
};
5757
updateValueHandler();
5858
},
59-
willUnmount: function(question, el) {
59+
willUnmount: function (question, el) {
6060
question.readOnlyChangedCallback = null;
61-
CKEDITOR.instances[name].removeAllListeners();
62-
CKEDITOR.remove(CKEDITOR.instances[name]);
61+
CKEDITOR.instances[question.id].destroy(false);
6362
}
6463
};
6564

0 commit comments

Comments
 (0)