hackmdio/codimd

Allow native spell check correction of words

Open

#150 geöffnet am 5. Aug. 2016

Auf GitHub ansehen
 (13 Kommentare) (5 Reaktionen) (0 zugewiesene Personen)JavaScript (1.038 Forks)batch import
enhancementhelp wanted

Repository-Metriken

Stars
 (8.949 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

I came up with a hack that could possibly be used to enable native spell check for browsers that support it: http://codepen.io/csuwldcat/pen/mEzGmP?editors=0010

I noticed that clicks are still registered on the spans of words, so I figured I could clone the word on double click and make the clone contenteditable with spellchecking turned on. From there I mask the original, allow the user to right click the misspelled word, then reflect the change on the original text by copying the corrected text to it.

Contributor Guide