hackmdio / hackmdio/codimd

Allow native spell check correction of words

オープン
#150 コメント 13 件 リアクション 5 件 担当者 0 名 GitHub で見る
enhancement help wanted
主要言語
JavaScript
スター
10.1k
フォーク
1.1k
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.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず、リンクされたCodePenと、単語のspan、ダブルクリック、contenteditableのネイティブなスペルチェックに関するエディターの動作を確認してください。ネイティブなスペルチェックをサポートするブラウザーで、スペルミスのある単語に対して修正候補を提示でき、修正されたテキストが既存のクリックを妨げることなく元のコンテンツに反映されれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
javascript
領域
frontend
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
30/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。