Skip to content

Commit 2d9d442

Browse files
committed
Enable spellcheck for EasyMDE
1 parent ba7750d commit 2d9d442

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

web_src/js/features/comp/EasyMDE.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ export async function createCommentEasyMDE(textarea, easyMDEOptions = {}) {
3838
indentWithTabs: false,
3939
tabSize: 4,
4040
spellChecker: false,
41+
inputStyle: 'contenteditable', // nativeSpellcheck requires contenteditable
42+
nativeSpellcheck: true,
4143
toolbar: ['bold', 'italic', 'strikethrough', '|',
4244
'heading-1', 'heading-2', 'heading-3', 'heading-bigger', 'heading-smaller', '|',
4345
'code', 'quote', '|', {

web_src/js/features/repo-wiki.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ async function initRepoWikiFormEditor() {
6767
indentWithTabs: false,
6868
tabSize: 4,
6969
spellChecker: false,
70+
inputStyle: 'contenteditable', // nativeSpellcheck requires contenteditable
71+
nativeSpellcheck: true,
7072
toolbar: ['bold', 'italic', 'strikethrough', '|',
7173
'heading-1', 'heading-2', 'heading-3', 'heading-bigger', 'heading-smaller', '|',
7274
{

0 commit comments

Comments
 (0)