Skip to content

Commit

Permalink
Fix bug with relative path
Browse files Browse the repository at this point in the history
  • Loading branch information
Wes Cossick committed Jul 16, 2015
1 parent 534b491 commit 98a057a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ CodeMirror spell checker is available on [jsDelivr](http://www.jsdelivr.com/#!co
Now load CodeMirror like normal. Set the mode to `"spell-checker"` and the backdrop mode to the appropriate mode. Be sure to load `overlay.min.js` if you don't already use it.

```HTML
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.4.0/codemirror.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.4.0/mode/markdown/markdown.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.4.0/addon/mode/overlay.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.4.0/mode/gfm/gfm.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.4.0/codemirror.min.css">
<script src="//cdnjs.cloudflare.com/ajax/libs/codemirror/5.4.0/codemirror.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/codemirror/5.4.0/mode/markdown/markdown.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/codemirror/5.4.0/addon/mode/overlay.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/codemirror/5.4.0/mode/gfm/gfm.min.js"></script>
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/codemirror/5.4.0/codemirror.min.css">

<script>
CodeMirror.fromTextArea(document.getElementById("textarea"), {
Expand Down
2 changes: 1 addition & 1 deletion source files/spell-checker.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ CodeMirror.defineMode("spell-checker", function(config, parserConfig) {
return req.responseText;
}

var typo = new Typo("en_US", _readFile("en_US.aff"), _readFile("en_US.dic"), {
var typo = new Typo("en_US", _readFile("//cdn.jsdelivr.net/codemirror.spell-checker/latest/en_US.aff"), _readFile("//cdn.jsdelivr.net/codemirror.spell-checker/latest/en_US.dic"), {
platform: 'any'
});

Expand Down
2 changes: 1 addition & 1 deletion spell-checker.min.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* SimpleMDE v1.0.0 (https://github.com/NextStepWebs/codemirror-spell-checker)
* SimpleMDE v1.0.1 (https://github.com/NextStepWebs/codemirror-spell-checker)
* Copyright Next Step Webs, Inc.
* Licensed under the MIT license
*/
Expand Down
4 changes: 2 additions & 2 deletions spell-checker.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 98a057a

Please # to comment.