8
0

editorui.js 835 B

123456789101112131415161718192021222324252627282930313233343536373839
  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 Controller from './ui/controller.js';
  7. import utils from './utils.js';
  8. import ObservableMixin from './observablemixin.js';
  9. import ComponentFactory from './ui/componentfactory.js';
  10. /**
  11. * Base class for the editor main view controllers.
  12. *
  13. * @memberOf core
  14. * @extends core.ui.Controller
  15. * @mixes core.ObservableMixin
  16. */
  17. export default class EditorUI extends Controller {
  18. constructor( editor ) {
  19. super();
  20. /**
  21. * @readonly
  22. * @member {core.Editor} core.EditorUI.editor
  23. */
  24. this.editor = editor;
  25. /**
  26. * @readonly
  27. * @type {core.ui.ComponentFactory}
  28. */
  29. this.featureComponents = new ComponentFactory( editor );
  30. }
  31. }
  32. utils.mix( EditorUI, ObservableMixin );