codemirror-persist

Codemirror plugin for persisting buffers in a local storage

npm install codemirror-persist
2 downloads in the last week
5 downloads in the last month

codemirror-persist

Codemirror plugin for persisting buffers in a local storage

Usage

// require plugin
var persist = require("codemirror-persist")

// Install plugin
persist(CodeMirror)

var myCodeMirror = CodeMirror(document.body, {
  // ...
  persist: true // enable buffer persistence
})

Install

npm install codemirror-persist
npm loves you