floatingtoolbar.js 399 B

12345678910111213141516
  1. /**
  2. * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md.
  4. */
  5. 'use strict';
  6. import Toolbar from '/ckeditor5/ui/bindings/toolbar.js';
  7. export default class FloatingToolbar extends Toolbar {
  8. constructor( model, view, editor ) {
  9. super( model, view, editor );
  10. model.bind( 'isVisible' ).to( editor.editable, 'isFocused' );
  11. }
  12. }