gulf-codemirror

4.0.2 • Public • Published

gulf-codemirror

Convenient gulf wrapper for codemirror

Install

npm install gulf-codemirror

Usage

var bindEditor = require('gulf-codemirror')
 
var cm = CodeMirror(document.body)
var doc = bindEditor(cm)
 
masterStream.pipe(doc.masterLink()).pipe(masterStream)

API

bindEditor(cm:CodeMirrorInstance, [storageAdapter])

  • cm -- a codemirror instance to be wired up with gulf
  • storageAdapter -- a gulf storage adapter (optional; defaults to the in-memory Adapter)
  • returns the gulf.EditableDocument (see the gulf docs)

Legal

(c) 2015 by Marcel Klehr

GNU Lesser General Public License

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i gulf-codemirror

      Weekly Downloads

      3

      Version

      4.0.2

      License

      LGPL-3.0

      Last publish

      Collaborators

      • marcelklehr