Parcourir la source

Docs: Improvements in InlineEditor#destroy.

Aleksander Nowodzinski il y a 8 ans
Parent
commit
3e94b7fe23
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      packages/ckeditor5-editor-inline/src/inline.js

+ 2 - 2
packages/ckeditor5-editor-inline/src/inline.js

@@ -43,8 +43,8 @@ export default class InlineEditor extends StandardEditor {
 	 * @returns {Promise}
 	 */
 	destroy() {
-		// Cache the data, then destroy. There's no way to tell whether model->view
-		// conversion will still work properly after StandardEditor#destroy().
+		// Cache the data, then destroy.
+		// It's safe to assume that the model->view conversion will not work after super.destroy().
 		const data = this.getData();
 
 		return this.ui.destroy()