2
0
mirror of https://github.com/Ionaru/easy-markdown-editor synced 2025-07-16 14:34: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); 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');
};
} }
} }