Update version

This commit is contained in:
Taly Guryn 2017-08-30 04:19:02 +03:00
parent 3e93bbde3c
commit 8d628b9dc3
4 changed files with 15 additions and 16 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1,7 +1,7 @@
/** /**
* Toolbar settings * Toolbar settings
* *
* @version 1.0.4 * @version 1.0.5
*/ */
module.exports = (function (settings) { module.exports = (function (settings) {
@ -22,21 +22,20 @@ module.exports = (function (settings) {
* Append settings content * Append settings content
* It's stored in tool.settings * It's stored in tool.settings
*/ */
if (!editor.tools[toolType] || !editor.tools[toolType].makeSettings ) { if ( !editor.tools[toolType] || !editor.tools[toolType].makeSettings ) {
editor.core.log(`Plugin «${toolType}» has no settings`, 'warn'); return;
} else {
/**
* Draw settings block
*/
var settingsBlock = editor.tools[toolType].makeSettings();
editor.nodes.pluginSettings.appendChild(settingsBlock);
} }
/**
* Draw settings block
*/
var settingsBlock = editor.tools[toolType].makeSettings();
editor.nodes.pluginSettings.appendChild(settingsBlock);
/** Open settings block */ /** Open settings block */
editor.nodes.blockSettings.classList.add('opened'); editor.nodes.blockSettings.classList.add('opened');
this.opened = true; this.opened = true;

View file

@ -1,6 +1,6 @@
{ {
"name": "codex.editor", "name": "codex.editor",
"version": "1.7.1", "version": "1.7.2",
"description": "Codex Editor. Native JS, based on API and Open Source", "description": "Codex Editor. Native JS, based on API and Open Source",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {