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:
parent
acf45c8d58
commit
68601d9d38
2
dist/simplemde.min.js
vendored
2
dist/simplemde.min.js
vendored
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…
x
Reference in New Issue
Block a user