diff --git a/public/js/jsbin.js b/public/js/jsbin.js
index <HASH>..<HASH> 100644
--- a/public/js/jsbin.js
+++ b/public/js/jsbin.js
@@ -96,6 +96,13 @@ function dedupe(array) {
 function exposeSettings() {
   'use strict';
 
+  function mockEditor (editor, methods) {
+    return methods.reduce(function (mockEditor, method) {
+      mockEditor[method] = editor[method].bind(editor);
+      return mockEditor;
+    }, {});
+  }
+
   function mockPanels() {
     var results = {};
     var panels = jsbin.panels.panels;
mockEditor function, to ease future method additions