Parcourir la source

Docs: Aligned Bootstrap UI example to the View#render API.

Aleksander Nowodzinski il y a 8 ans
Parent
commit
6532a4bad3

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

@@ -60,7 +60,7 @@ export default class BootstrapEditor extends StandardEditor {
 			resolve(
 			resolve(
 				editor.initPlugins()
 				editor.initPlugins()
 					// Initialize the editable view in DOM first.
 					// Initialize the editable view in DOM first.
-					.then( () => editable.init() )
+					.then( () => editable.render() )
 					// Replace the editor#element with editor.editable#element.
 					// Replace the editor#element with editor.editable#element.
 					.then( () => editor._elementReplacer.replace( element, editable.element ) )
 					.then( () => editor._elementReplacer.replace( element, editable.element ) )
 					// Handle the UI of the editor.
 					// Handle the UI of the editor.