Skip to content

Commit

Permalink
Add PR Ionaru#263 that exposes CodeMirror library object
Browse files Browse the repository at this point in the history
  • Loading branch information
savvan0h committed Sep 14, 2021
1 parent 375ea80 commit 5df681b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/js/easymde.js
Original file line number Diff line number Diff line change
@@ -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');
Expand Down Expand Up @@ -2593,4 +2593,5 @@ EasyMDE.prototype.toTextArea = function () {
}
};

EasyMDE.CodeMirror = CodeMirror;
module.exports = EasyMDE;

0 comments on commit 5df681b

Please sign in to comment.