Package Exports
- vue-codemirror
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (vue-codemirror) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
vue-codemirror
Codemirror components for Vue.js
Build Setup
# install vue-codemirror
npm install vue-codemirror
# app use
import Vue from 'vue'
...
import CodeMirror from 'vue-codemirror'
Vue.use(CodeMirror)
# use in components
<codemirror></codemirror>
# component data bind
<codemirror :code.sync="code"></codemirror>
# component config
<codemirror :code.sync="code" :options="editorOption"></codemirror>
editorOption = {
tabSize: 2,
mode: 'application/json', // htmlmixed || javascript || css ... (default: javascript)
theme: 'base16-dark' // (default: default)
lineNumbers: true, // (default: javascript)
styleActiveLine: true
line: true,
...
}More codemirror options
example
see dir example