Skip to content

Commit

Permalink
Update inline toolbar and remove underline
Browse files Browse the repository at this point in the history
  • Loading branch information
talyguryn committed Aug 30, 2017
1 parent 4d86296 commit a879e1d
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 9 deletions.
4 changes: 2 additions & 2 deletions codex-editor.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion codex-editor.js.map

Large diffs are not rendered by default.

14 changes: 13 additions & 1 deletion modules/toolbar/toolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -118,4 +130,4 @@ module.exports = (function (toolbar) {

return toolbar;

})({});
})({});
5 changes: 0 additions & 5 deletions modules/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -258,11 +258,6 @@ module.exports = (function (ui) {
command : 'italic'
},

underline: {
icon : 'ce-icon-underline',
command : 'underline'
},

link: {
icon : 'ce-icon-link',
command : 'createLink'
Expand Down

0 comments on commit a879e1d

Please sign in to comment.