| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- /**
- * @license Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
- */
- /**
- * @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 {HTMLElement} [editableElement] The editable element. If not specified, the
- * {@link module:ui/editableui/editableuiview~EditableUIView}
- * will create it. Otherwise, the existing element will be used.
- */
- constructor( locale, editableElement ) {
- super( locale );
- /**
- * The editable UI view.
- *
- * @readonly
- * @member {module:ui/editableui/inline/inlineeditableuiview~InlineEditableUIView}
- */
- this.editable = new InlineEditableUIView( locale, editableElement );
- this.registerChild( this.editable );
- }
- /**
- * @inheritDoc
- */
- get editableElement() {
- return this.editable.element;
- }
- }
|