| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- /**
- * @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
- */
- /**
- * @module editor-balloon/ballooneditoruiview
- */
- import EditorUIView from '@ckeditor/ckeditor5-ui/src/editorui/editoruiview';
- import InlineEditableUIView from '@ckeditor/ckeditor5-ui/src/editableui/inline/inlineeditableuiview';
- /**
- * Contextual editor UI view. Uses the {@link module:ui/editableui/inline/inlineeditableuiview~InlineEditableUIView}.
- *
- * @extends module:ui/editorui/editoruiview~EditorUIView
- */
- export default class BalloonEditorUIView extends EditorUIView {
- /**
- * Creates an instance of the balloon editor UI view.
- *
- * @param {module:utils/locale~Locale} locale The {@link module:core/editor/editor~Editor#locale} instance.
- * @param {module:engine/view/view~View} editingView The editing view instance this view is related to.
- * @param {HTMLElement} [editableElement] The editable element. If not specified, it will be automatically created by
- * {@link module:ui/editableui/editableuiview~EditableUIView}. Otherwise, the given element will be used.
- */
- constructor( locale, editingView, editableElement ) {
- super( locale );
- /**
- * The editable UI view.
- *
- * @readonly
- * @member {module:ui/editableui/inline/inlineeditableuiview~InlineEditableUIView}
- */
- this.editable = new InlineEditableUIView( locale, editingView, editableElement );
- }
- /**
- * @inheritDoc
- */
- render() {
- super.render();
- this.registerChild( this.editable );
- }
- }
|