feature.js 650 B

1234567891011121314151617181920212223242526272829303132333435
  1. /**
  2. * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md.
  4. */
  5. 'use strict';
  6. /**
  7. * Represents a single editor instance.
  8. *
  9. * @class Editor
  10. * @extends Model
  11. */
  12. CKEDITOR.define( [
  13. 'plugin'
  14. ], function( Plugin ) {
  15. class Feature extends Plugin {
  16. constructor( editor ) {
  17. super( editor );
  18. this.set( 'state', false );
  19. this.set( 'disabled', false );
  20. }
  21. }
  22. return Feature;
  23. } );
  24. /**
  25. * Fired when this editor instance is destroyed. The editor at this point is not usable and this event should be used to
  26. * perform the clean-up in any plugin.
  27. *
  28. * @event destroy
  29. */