Skip to content

CorvusClub/gulf-codemirror

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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 General Public License

About

A gulf wrapper for codemirror

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%