Jelajahi Sumber

update external ui doc

When I tried to render a `ContextualBalloon` for the `Mention` plugin, it was not rendering because the custom editor couldn't find the view in the document to attach to. 

I'm not sure whether this is the correct way, the purpose of this PR is to confirm whether this was a bug, or is there a better way so that `ContextualBalloon` itself will call the `attachToDom` function.
Asim Kattum Thazha 5 tahun lalu
induk
melakukan
2829994bea

+ 2 - 1
packages/ckeditor5-ui/docs/framework/guides/external-ui.md

@@ -255,7 +255,8 @@ class BootstrapEditorUI extends EditorUI {
 
 		// References to the toolbar buttons for further usage. See #_setupBootstrapToolbarButtons.
 		view.toolbarButtons = {};
-
+		// Render the view to the body.
+		this._view.render();
 		[ 'bold', 'italic', 'underline', 'undo', 'redo' ].forEach( name => {
 			// Retrieve the jQuery object corresponding with the button in the DOM.
 			view.toolbarButtons[ name ] = view.element.find( `#${ name }` );