2
0
mirror of https://github.com/Ionaru/easy-markdown-editor synced 2025-07-16 06:24:28 -06:00

Fix guide button not working

This commit is contained in:
Jeroen Akkerman 2017-12-05 13:51:32 +01:00
parent acf45c8d58
commit 68601d9d38
2 changed files with 5 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

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