|
@@ -8,7 +8,14 @@
|
|
|
import Plugin from './plugin.js';
|
|
import Plugin from './plugin.js';
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
- * The base class for CKEditor feature classes.
|
|
|
|
|
|
|
+ * The base class for CKEditor feature classes. Features are main way to enhance CKEditor abilities with tools,
|
|
|
|
|
+ * utilities, services and components.
|
|
|
|
|
+ *
|
|
|
|
|
+ * The main responsibilities for Feature are:
|
|
|
|
|
+ * * setting required dependencies (see {@link core.Plugin#requires},
|
|
|
|
|
+ * * configuring, instantiating and registering commands to editor,
|
|
|
|
|
+ * * registering converters to editor (if the feature operates on Tree Model),
|
|
|
|
|
+ * * setting and registering UI components (if the feature uses it).
|
|
|
*
|
|
*
|
|
|
* @class core.Feature
|
|
* @class core.Feature
|
|
|
*/
|
|
*/
|
|
@@ -23,5 +30,8 @@ export default class Feature extends Plugin {
|
|
|
super( editor );
|
|
super( editor );
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * Initializes the feature. Should be overwritten by child classes.
|
|
|
|
|
+ */
|
|
|
init() {}
|
|
init() {}
|
|
|
}
|
|
}
|