Gulf bindings for codemirror
(This version is compatible with gulf v5, only. For gulf v4 see the package gulf-codemirror on npm)
npm install --save gulf-editor-codemirror
const CodemirrorDocument = require('gulf-editor-codemirror')
var cm = CodeMirror(document.body)
var doc = new CodemirrorDocument({
editorInstance: cm
})
masterStream.pipe(doc.masterLink()).pipe(masterStream)editorInstance-- a codemirror instance to be wired up with gulfstorageAdapter-- (optional) a gulf storage adapter. Default isgulf.MemoryAdapterottype-- (optional) the ottype to use. Default isot-text.
(c) 2015-2016 by Marcel Klehr
GNU Lesser General Public License