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.
2 parents b6b1f7c + 7187fb2 commit 97154e2Copy full SHA for 97154e2
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