Skip to content

Commit

Permalink
Add method to allow the adding of custom bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
sambenne committed Oct 10, 2023
1 parent 35587a9 commit 5612108
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/js/easymde.js
Original file line number Diff line number Diff line change
Expand Up @@ -2875,6 +2875,9 @@ EasyMDE.prototype.value = function (val) {
}
};

EasyMDE.prototype.addBinding = function(name, method) {
bindings[name] = method;
};

/**
* Bind static methods for exports.
Expand Down

0 comments on commit 5612108

Please sign in to comment.