mirror of
https://github.com/codex-team/editor.js
synced 2024-05-10 10:26:46 +02:00
Update inline toolbar and remove underline
This commit is contained in:
parent
4d862967d5
commit
a879e1db35
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -40,6 +40,18 @@ module.exports = (function (toolbar) {
|
|||
|
||||
}
|
||||
|
||||
let toolType = editor.content.currentNode.dataset.tool;
|
||||
|
||||
if (!editor.tools[toolType] || !editor.tools[toolType].makeSettings ) {
|
||||
|
||||
editor.nodes.showSettingsButton.classList.add('hide');
|
||||
|
||||
} else {
|
||||
|
||||
editor.nodes.showSettingsButton.classList.remove('hide');
|
||||
|
||||
}
|
||||
|
||||
editor.nodes.toolbar.classList.add('opened');
|
||||
this.opened = true;
|
||||
|
||||
|
@ -118,4 +130,4 @@ module.exports = (function (toolbar) {
|
|||
|
||||
return toolbar;
|
||||
|
||||
})({});
|
||||
})({});
|
||||
|
|
|
@ -258,11 +258,6 @@ module.exports = (function (ui) {
|
|||
command : 'italic'
|
||||
},
|
||||
|
||||
underline: {
|
||||
icon : 'ce-icon-underline',
|
||||
command : 'underline'
|
||||
},
|
||||
|
||||
link: {
|
||||
icon : 'ce-icon-link',
|
||||
command : 'createLink'
|
||||
|
|
Loading…
Reference in a new issue