diff --git a/src/js/easymde.js b/src/js/easymde.js index 4690cd96..7dc36d8c 100644 --- a/src/js/easymde.js +++ b/src/js/easymde.js @@ -1,5 +1,5 @@ 'use strict'; -var CodeMirror = require('codemirror'); +var CodeMirror = window.CodeMirror || require('codemirror'); require('codemirror/addon/edit/continuelist.js'); require('./codemirror/tablist'); require('codemirror/addon/display/fullscreen.js'); @@ -2863,4 +2863,6 @@ EasyMDE.prototype.toTextArea = function () { } }; +EasyMDE.CodeMirror = CodeMirror; + module.exports = EasyMDE;