mirror of
https://github.com/codex-team/editor.js
synced 2024-05-23 08:42:25 +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
|
* 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;
|
||||||
|
|
|
@ -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": {
|
||||||
|
|
Loading…
Reference in a new issue