Fix guide button not working

pull/6/head
Jeroen Akkerman 7 years ago
parent acf45c8d58
commit 68601d9d38

File diff suppressed because one or more lines are too long

@ -1787,8 +1787,10 @@ SimpleMDE.prototype.createToolbar = function (items) {
item.action(self); item.action(self);
}; };
} else if (typeof item.action === 'string') { } else if (typeof item.action === 'string') {
el.href = item.action; el.onclick = function (e) {
el.target = '_blank'; e.preventDefault();
window.open(item.action, '_blank');
};
} }
} }

Loading…
Cancel
Save