Răsfoiți Sursa

Docs: Updated sample.

Krzysztof Krztoń 7 ani în urmă
părinte
comite
5367b56ee0

+ 3 - 0
packages/ckeditor5-ui/docs/_snippets/examples/bootstrap-ui-inner.js

@@ -170,6 +170,9 @@ class BootstrapEditorUI extends EditorUI {
 		// Restore the original editor#element.
 		// Restore the original editor#element.
 		this._elementReplacer.restore();
 		this._elementReplacer.restore();
 
 
+		// Destroy the view.
+		this._view.destroy();
+
 		super.destroy();
 		super.destroy();
 	}
 	}
 
 

+ 3 - 0
packages/ckeditor5-ui/docs/framework/guides/external-ui.md

@@ -305,6 +305,9 @@ class BootstrapEditorUI extends EditorUI {
 		// Restore the original editor#element.
 		// Restore the original editor#element.
 		this._elementReplacer.restore();
 		this._elementReplacer.restore();
 
 
+		// Destroy the view.
+		this._view.destroy();
+
 		super.destroy();
 		super.destroy();
 	}
 	}