sparksuite / simplemde-markdown-editor

A simple, beautiful, and embeddable JavaScript Markdown editor. Delightful editing for beginners and experts alike. Features built-in autosaving and spell checking.
https://simplemde.com
MIT License
9.87k stars 1.13k forks source link

Uncaught ReferenceError: CodeMirror is not defined #175

Closed shinygang closed 8 years ago

shinygang commented 8 years ago

Uncaught ReferenceError: CodeMirror is not defined in spell-checker.js file at line 10.

WesCossick commented 8 years ago

You'll need to provide code examples of how you're using SimpleMDE. Maybe even setup a JSFiddle that reproduces the error.

shinygang commented 8 years ago

@WesCossick first,I use 'npm install --save-dev simplemde', second,I use 'require("simplemde")' in my XXX.vue,and there has error:

Uncaught ReferenceError: CodeMirror is not defined in spell-checker.js file at line 10.

I see the spell-checker.js's code,there has not define the 'CodeMirror' and not reuqire 'CodeMirror'.

WesCossick commented 8 years ago

I'm not very familiar with module loading as I don't use it in my workflow. Someone else may need to help answer this.

rscnt commented 8 years ago

@shinygang, @WesCossick This was already fixed by @universome :smile:

See NextStepWebs/codemirror-spell-checker#14

WebCloud commented 8 years ago

we now have a pull request for this: https://github.com/NextStepWebs/codemirror-spell-checker/pull/18