Skip to content

Commit 853243d

Browse files
author
surmon
committed
update
1 parent 6617eff commit 853243d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
[Demo Page](https://surmon-china.github.io/vue-codemirror)
2121

22-
[CDN Example](https://jsfiddle.net/tng9r8j3/)
22+
[CDN Example](https://jsfiddle.net/u1f16q85/)
2323

2424
[Nuxt.js/SSR example code](https://github.com/surmon-china/vue-codemirror/blob/master/examples/nuxt-ssr-example)
2525

@@ -63,7 +63,7 @@ To make it easier to handle events, the component converts some codemirror built
6363
<script type="text/javascript" src="path/to/dist/vue-codemirror.js"></script>
6464
<script type="text/javascript" src="path/to/codemirror/some-resources.js"></script>
6565
<script type="text/javascript">
66-
Vue.use(window.VueCodeMirror)
66+
Vue.use(window.VueCodemirror)
6767
</script>
6868
```
6969

@@ -80,15 +80,15 @@ npm install vue-codemirror --save
8080
``` javascript
8181
// require lib
8282
import Vue from 'vue'
83-
import VueCodeMirror from 'vue-codemirror'
83+
import VueCodemirror from 'vue-codemirror'
8484

8585
// require styles
8686
import 'codemirror/lib/codemirror.css'
8787

8888
// require more codemirror resource...
8989

9090
// you can set default global options and events when use
91-
Vue.use(VueCodeMirror, /* {
91+
Vue.use(VueCodemirror, /* {
9292
options: { theme: 'base16-dark', ... },
9393
events: ['scroll', ...]
9494
} */)
@@ -118,8 +118,8 @@ export default {
118118
```javascript
119119
// If used in nuxt.js/ssr, you should keep it only in browser build environment
120120
if (process.browser) {
121-
const VueCodeMirror = require('vue-codemirror')
122-
Vue.use(VueCodeMirror)
121+
const VueCodemirror = require('vue-codemirror')
122+
Vue.use(VueCodemirror)
123123
}
124124
```
125125

0 commit comments

Comments
 (0)