From 5fd803a847ff68963fe35d9ad1f7ab64e8b7039d Mon Sep 17 00:00:00 2001 From: Luke Madhanga Date: Mon, 5 Apr 2021 18:17:59 +0100 Subject: [PATCH] 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 --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 12d8102..d8d2852 100644 --- a/README.md +++ b/README.md @@ -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