8
0
Piotrek Koszuliński 10 лет назад
Родитель
Сommit
915300835d
1 измененных файлов с 35 добавлено и 0 удалено
  1. 35 0
      packages/ckeditor5-ui/src/feature.js

+ 35 - 0
packages/ckeditor5-ui/src/feature.js

@@ -0,0 +1,35 @@
+/**
+ * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
+ * For licensing, see LICENSE.md.
+ */
+
+'use strict';
+
+/**
+ * Represents a single editor instance.
+ *
+ * @class Editor
+ * @extends Model
+ */
+
+CKEDITOR.define( [
+	'plugin'
+], function( Plugin ) {
+	class Feature extends Plugin {
+		constructor( editor ) {
+			super( editor );
+
+			this.set( 'state', false );
+			this.set( 'disabled', false );
+		}
+	}
+
+	return Feature;
+} );
+
+/**
+ * Fired when this editor instance is destroyed. The editor at this point is not usable and this event should be used to
+ * perform the clean-up in any plugin.
+ *
+ * @event destroy
+ */