We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6b1f7c commit f21cca3Copy full SHA for f21cca3
src/js/simplemde.js
@@ -1696,7 +1696,8 @@ SimpleMDE.prototype.createToolbar = function(items) {
1696
// bind events, special for info
1697
if(item.action) {
1698
if(typeof item.action === "function") {
1699
- el.onclick = function() {
+ el.onclick = function(e) {
1700
+ e.preventDefault();
1701
item.action(self);
1702
};
1703
} else if(typeof item.action === "string") {
0 commit comments