8
0

boxededitoruiview.js 743 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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-reset ck-editor'
  14. },
  15. children: [
  16. {
  17. tag: 'div',
  18. attributes: {
  19. class: 'ck-editor-top ck-reset-all'
  20. }
  21. },
  22. {
  23. tag: 'div',
  24. attributes: {
  25. class: 'ck-editor-editable'
  26. }
  27. }
  28. ]
  29. };
  30. this.register( 'top', '.ck-editor-top' );
  31. this.register( 'editable', '.ck-editor-editable' );
  32. }
  33. }