Explorar el Código

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 hace 5 años
padre
commit
2829994bea
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      packages/ckeditor5-ui/docs/framework/guides/external-ui.md

+ 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 }` );