Convenient gulf wrapper for codemirror
npm install gulf-codemirror
var bindEditor = require('gulf-codemirror')
var cm = CodeMirror(document.body)
var doc = bindEditor(cm)
masterStream.pipe(doc.masterLink()).pipe(masterStream)
cm
-- a codemirror instance to be wired up with gulfstorageAdapter
-- a gulf storage adapter (optional; defaults to the in-memory Adapter)- returns the
gulf.EditableDocument
(see the gulf docs)
(c) 2015 by Marcel Klehr
GNU General Public License