Skip to content

Commit 8d628b9

Browse files
committed
Update version
1 parent 3e93bbd commit 8d628b9

4 files changed

Lines changed: 13 additions & 14 deletions

File tree

‎codex-editor.js‎

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎codex-editor.js.map‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎modules/toolbar/settings.js‎

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* Toolbar settings
33
*
4-
* @version 1.0.4
4+
* @version 1.0.5
55
*/
66

77
module.exports = (function (settings) {
@@ -22,20 +22,19 @@ module.exports = (function (settings) {
2222
* Append settings content
2323
* It's stored in tool.settings
2424
*/
25-
if (!editor.tools[toolType] || !editor.tools[toolType].makeSettings ) {
25+
if ( !editor.tools[toolType] || !editor.tools[toolType].makeSettings ) {
2626

27-
editor.core.log(`Plugin «${toolType}» has no settings`, 'warn');
27+
return;
2828

29-
} else {
29+
}
3030

31-
/**
32-
* Draw settings block
33-
*/
34-
var settingsBlock = editor.tools[toolType].makeSettings();
31+
/**
32+
* Draw settings block
33+
*/
34+
var settingsBlock = editor.tools[toolType].makeSettings();
3535

36-
editor.nodes.pluginSettings.appendChild(settingsBlock);
36+
editor.nodes.pluginSettings.appendChild(settingsBlock);
3737

38-
}
3938

4039
/** Open settings block */
4140
editor.nodes.blockSettings.classList.add('opened');

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "codex.editor",
3-
"version": "1.7.1",
3+
"version": "1.7.2",
44
"description": "Codex Editor. Native JS, based on API and Open Source",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)