Git Product home page Git Product logo

codemirror-spell-checker's People

Contributors

wescossick avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

codemirror-spell-checker's Issues

Problem when using CDN file

This is what I have in <head>:

<script src="https://cdn.jsdelivr.net/npm/[email protected]/src/js/spell-checker.min.js"  type="text/javascript"></script>
<script src="https://codemirror.net/addon/mode/overlay.js"  type="text/javascript"></script>

This fails with error ReferenceError: require is not defined due to an attempt to require typo-js. What I understand is that require will work within Node.js runtime but not in browser. What's the solution?

What is overlay.min.js

Be sure to load/require overlay.min.js if you haven't already.

What is this? Where do I find it?

Or alternately, is there a way I can use your simplemde editor (which I use in one part of my project) to just do the spellchecking and nothing else in another part of my project? That'd be nice, since I then only have to load the one library, and simplemde seems to have everything out of the box.

Fix Packaging

This library is declared as a dependency by 'simplemde-markdown-editor', which is CommonJS compatible, except when it isn't, because src/js/spell-checker.js assumes there is a CodeMirror global, and that breaks the package 'simplemde-markdown-editor'.

I was going to make a fork, then a pull request later, but this guy @universome , has already fixed it...

overlay

readme is missing the need to include overlay.min.js

Option to use markdown instead of gfm

Currently it is hardcoded to use gfm as the only mode option for code mirror. It would be nice to allow for markdown as well as gfm. I was able to almost get it working by using:

var simple = new SimpleMDE(options);
var cm = simple.codemirror;
cm.setOption("mode", "markdown");

but this ruins spell checking. I also tried setting the mode to "spell-checker" with "backdrop" option set to "markdown" using the same method as above, but this did not work.

Word without a "/" separator in dic file are not supported

Using the French dic and aff files from https://github.com/titoBouzout/Dictionaries/tree/master, I noticed that a lot of very common words are shown as misspelled. Example: "je".

In the dic file, this is the line defining the word:

je po:mg po:propersuj po:1pe is:epi is:sg

All the other words without a "/" character behaved the same.
A quick regexp search and replace to add "/" solved the issue, but I was wondering whether that was actually the intended behavior.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.