Skip to content

Commit e24abdd

Browse files
author
- -
committed
ptimize
1 parent e8d41e4 commit e24abdd

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

README.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,25 +20,19 @@ npm install vue-simplemde --save
2020
// import with ES6
2121
import Vue from 'vue'
2222
import VueSimplemde from 'vue-simplemde'
23-
import 'simplemde/dist/simplemde.min.css'
2423

2524
// require with Webpack/Node.js
2625
var Vue = require('vue')
2726
var VueSimplemde = require('vue-simplemde')
28-
require('simplemde/dist/simplemde.min.css')
2927

3028
// use
3129
Vue.use(VueSimplemde)
3230
```
3331

3432
``` javascript
3533
// or use with component(ES6)
36-
37-
// main.js
38-
import 'simplemde/dist/simplemde.min.css'
39-
40-
// component
4134
import { markdownEditor } from 'vue-simplemde'
35+
4236
export default {
4337
components: {
4438
markdownEditor

doc/configuration_en.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,15 +238,15 @@ The list of actions that can be bound is the same as the list of built-in action
238238
To change the minimum height (before it starts auto-growing):
239239

240240
```CSS
241-
.CodeMirror, .CodeMirror-scroll {
241+
.markdown-editor .CodeMirror, .markdown-editor .CodeMirror-scroll {
242242
min-height: 200px;
243243
}
244244
```
245245

246246
Or, you can keep the height static:
247247

248248
```CSS
249-
.CodeMirror {
249+
.markdown-editor .CodeMirror {
250250
height: 300px;
251251
}
252252
```

markdown-editor.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
<script>
88
import SimpleMDE from 'simplemde'
9+
import 'simplemde/dist/simplemde.min.css'
910
1011
export default {
1112
name: 'markdown-editor',

0 commit comments

Comments
 (0)