cm-resize
Add a resize handle to your CodeMirror editor.
Based on an example by Rasmus Schultz (CodeMirror issue), with some extra options.
Demo
https://rawgit.com/Sphinxxxx/cm-resize/master/demo/index.html
https://codepen.io/Sphinxxxx/pen/dVPXdX
Getting Started
Installing
<script src="https://unpkg.com/cm-resize@1"></script>
Usage
var myCodeMirror = CodeMirror.fromTextArea(...);
cmResize(myCodeMirror);
Options
var handle = cmResize(myCodeMirror, {
minWidth: 200,
minHeight: 100,
resizableWidth: true,
resizableHeight: true,
cssClass: 'cm-resize-handle',
handle:
});