boxededitoruiview.js 707 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 EditorUIView from '/ckeditor5/ui/editorui/editoruiview.js';
  7. export default class BoxedEditorUIView extends EditorUIView {
  8. constructor( model, locale ) {
  9. super( model, locale );
  10. this.template = {
  11. tag: 'div',
  12. attributes: {
  13. class: 'ck-box'
  14. },
  15. children: [
  16. {
  17. tag: 'div',
  18. attributes: {
  19. class: 'ck-box-region ck-top'
  20. }
  21. },
  22. {
  23. tag: 'div',
  24. attributes: {
  25. class: 'ck-box-region ck-main'
  26. }
  27. }
  28. ]
  29. };
  30. this.register( 'top', '.ck-top' );
  31. this.register( 'main', '.ck-main' );
  32. }
  33. }