From 5612108008556697bd95fb2d4fc1c4e8bd653818 Mon Sep 17 00:00:00 2001 From: Sam Bennett Date: Tue, 10 Oct 2023 10:24:38 +0100 Subject: [PATCH] Add method to allow the adding of custom bindings --- src/js/easymde.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/js/easymde.js b/src/js/easymde.js index 93b3cdee..d7eaec34 100644 --- a/src/js/easymde.js +++ b/src/js/easymde.js @@ -2875,6 +2875,9 @@ EasyMDE.prototype.value = function (val) { } }; +EasyMDE.prototype.addBinding = function(name, method) { + bindings[name] = method; +}; /** * Bind static methods for exports.