2
0
mirror of https://github.com/Ionaru/easy-markdown-editor synced 2025-09-24 16:40:55 -06:00

Pull in CodeMirror styles

I had followed the install instructions but the editor was not working for me at all in a bootstrap modal and was very buggy. Adding the CodeMirror stylesheet solved the issues for me, so adding to the README
This commit is contained in:
Luke Madhanga 2021-04-05 18:17:59 +01:00 committed by GitHub
parent 113c5b45b1
commit 5fd803a847
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,6 +54,16 @@ Via [npm](https://www.npmjs.com/package/easymde):
npm install easymde --save
```
Note, if you have issues with editor not working as expected (e.g. lines not wrapping, etc), you may have to also import CodeMirror styles into your project
```bash
npm install codemirror --save
```
```scss
@import "~codemirror/lib/codemirror.css";
```
Via the *UNPKG* CDN:
```html