mirror of
https://github.com/codex-team/editor.js
synced 2024-05-11 10:57:30 +02:00
Update version
This commit is contained in:
parent
3e93bbde3c
commit
8d628b9dc3
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -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;
|
||||
|
|
|
@ -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": {
|
||||
|
|
Loading…
Reference in a new issue