8
0

framededitableuiiframe.js 818 B

12345678910111213141516171819202122232425262728
  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 EditableUI from '/ckeditor5/ui/editableui/editableui.js';
  7. /**
  8. * The basic implementation of an iframe-based {@link ui.editableUI.EditableUI}.
  9. *
  10. * @memberOf ui.editableUI.iframe
  11. * @extends ui.editableUI.EditableUI
  12. */
  13. export default class FramedEditableUIIframe extends EditableUI {
  14. /**
  15. * Creates a new instance of the iframe–based {@link ui.editableUI.EditableUI EditableUI}.
  16. *
  17. * @param {ckeditor5.Editor} editor The editor instance.
  18. * @param {utils.Observable} editableModel The model for the editable.
  19. */
  20. constructor( editor, editableModel ) {
  21. super( editor, editableModel );
  22. this.viewModel.bind( 'width', 'height' ).to( editor.ui );
  23. }
  24. }