Update version

This commit is contained in:
Taly Guryn 2017-08-30 04:19:02 +03:00
commit 8d628b9dc3
4 changed files with 13 additions and 14 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
*
* @version 1.0.4
* @version 1.0.5
*/
module.exports = (function (settings) {
@ -22,21 +22,20 @@ module.exports = (function (settings) {
* Append settings content
* 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');
} else {
/**
* Draw settings block
*/
var settingsBlock = editor.tools[toolType].makeSettings();
editor.nodes.pluginSettings.appendChild(settingsBlock);
return;
}
/**
* Draw settings block
*/
var settingsBlock = editor.tools[toolType].makeSettings();
editor.nodes.pluginSettings.appendChild(settingsBlock);
/** Open settings block */
editor.nodes.blockSettings.classList.add('opened');
this.opened = true;

View file

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