controller.js 587 B

123456789101112131415161718192021
  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 Model from '/ckeditor5/core/ui/model.js';
  7. import Controller from '/ckeditor5/core/ui/controller.js';
  8. import ControllerCollection from '/ckeditor5/core/ui/controllercollection.js';
  9. import ChromeView from './view.js';
  10. export default class ChromeController extends Controller {
  11. constructor() {
  12. const model = new Model();
  13. super( model, new ChromeView( model ) );
  14. this.collections.add( new ControllerCollection( 'main' ) );
  15. }
  16. }