hackmdio/codimd

Allow native spell check correction of words

Open

#150 建立於 2016年8月5日

在 GitHub 查看
 (13 留言) (5 反應) (0 負責人)JavaScript (1,038 fork)batch import
enhancementhelp wanted

倉庫指標

Star
 (8,949 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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.

貢獻者指南