Skip to content

Commit

Permalink
Fix undefined tools
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuell1 committed Aug 30, 2019
1 parent 4726184 commit 103a569
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/contenteditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ ContentEdit.Root.get().bind('focus', function(element) {
tools = ContentTools.DEFAULT_TOOLS;
break;
default:
tools = [element._parent._domElement.dataset.tools.split(',')];
tools = [dataTools ? dataTools.split(',') : ''];
}
if (element.isFixed()) tools = dataTools !== '*' ? tools : [['undo', 'redo', 'remove']];
if (editor.toolbox().tools() !== tools) editor.toolbox().tools(tools);
Expand Down

0 comments on commit 103a569

Please sign in to comment.