Update inline toolbar and remove underline

This commit is contained in:
Taly Guryn 2017-08-30 04:12:30 +03:00
parent 4d862967d5
commit a879e1db35
4 changed files with 16 additions and 9 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

@ -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;
})({});
})({});

View file

@ -258,11 +258,6 @@ module.exports = (function (ui) {
command : 'italic'
},
underline: {
icon : 'ce-icon-underline',
command : 'underline'
},
link: {
icon : 'ce-icon-link',
command : 'createLink'