Update description

This commit is contained in:
Murod Khaydarov 2017-11-25 18:46:27 +03:00
commit b982e34d96
3 changed files with 38 additions and 5 deletions

View file

@ -26,11 +26,14 @@
* }
* });
*
* - tools constist of object with key that is type/name of class constructor
* - tools is an object: {
* pluginName: PluginClass,
* .....
* }
* - toolsConfig is an additional configuration that uses Codex Editor API
* iconClassname - the name of icon class. Icon will be shown in toolbox
* iconClassname - CSS classname of toobox icon
* displayInToolbox - if you want to see your Tool in toolbox hided in "plus" button, than set "True". By default : "False"
* enableLineBreaks - by default enter pastes new block that set as initialblock, but if you set this property "True", you break the lines
* enableLineBreaks - by default enter creates new block that set as initialblock, but if you set this property "True", enter will break the lines in current block
*
* @author CodeX-Team <https://ifmo.su>
*
@ -115,7 +118,7 @@ module.exports = class CodexEditor {
/**
* Setting for configuration
* @param {object} config
* @param {Object} config
*/
set configuration(config = {}) {

View file

@ -2,7 +2,7 @@
* Codex Editor Core
*
* @author Codex Team
* @version 1.1.3
* @version 2.0.0
*/
module.exports = class Core {

View file

@ -5,9 +5,29 @@
* - {Function} on - appends subscriber to the event. If event doesn't exist - creates new one
* - {Function} emit - fires all subscribers with data
*
* @version 1.0.0
*/
module.exports = class Events {
/**
* Module key name
* @returns {string}
*/
static get name() {
return 'Events';
}
/**
* @param Editor
* @param Editor.modules {@link CodexEditor#moduleInstances}
* @param Editor.config {@link CodexEditor#configuration}
*/
set state(Editor) {
this.Editor = Editor;
}
/**
* @constructor
*
@ -16,6 +36,7 @@ module.exports = class Events {
constructor() {
this.subscribers = {};
this.Editor = null;
}
@ -52,4 +73,13 @@ module.exports = class Events {
}
/**
* Destroyer
*/
destroy() {
this.Editor = null;
this.subscribers = null;
}
};