Skip to content
This repository has been archived by the owner on Aug 29, 2021. It is now read-only.

Commit

Permalink
whoops wrong element for spellcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
r2dev2 committed Aug 14, 2021
1 parent 3ebba5f commit 86c4450
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,7 @@ const loadMarkdownHelperToolbar = () => {
editor.prepend(toolbar);
};

const enableSpellcheck = () =>
document.querySelector('textarea').spellcheck = true;
const enableSpellcheck = () => code().spellcheck = true;

const runEditor = () => {
if (newFile) {
Expand Down

0 comments on commit 86c4450

Please sign in to comment.