Explorar o código

Aligned code to the new BoxedEditorUI region name.

Aleksander Nowodzinski %!s(int64=9) %!d(string=hai) anos
pai
achega
b93c588707
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      packages/ckeditor5-editor-classic/src/classiccreator.js

+ 3 - 1
packages/ckeditor5-editor-classic/src/classiccreator.js

@@ -49,7 +49,7 @@ export default class ClassicCreator extends StandardCreator {
 		// UI.
 		this._replaceElement( editor.firstElement, editor.ui.view.element );
 		this._createToolbar();
-		editor.ui.add( 'editable', createEditableUI( editor, editable, EditableUI, InlineEditableUIView ) );
+		editor.ui.add( 'main', createEditableUI( editor, editable, EditableUI, InlineEditableUIView ) );
 
 		// Init.
 		return super.create()
@@ -71,6 +71,8 @@ export default class ClassicCreator extends StandardCreator {
 
 	_createToolbar() {
 		const editor = this.editor;
+
+		// Note: Toolbar and StickyToolbarView share the same model. It may change in the future.
 		const toolbarModel = new Model();
 		const toolbar = new Toolbar( toolbarModel, new StickyToolbarView( toolbarModel, editor.locale ), editor );