Skip to content
This repository has been archived by the owner on Jun 15, 2022. It is now read-only.

Commit

Permalink
Merge pull request #62 from standardnotes/feat/spellcheck-control
Browse files Browse the repository at this point in the history
feat: spellcheck control
  • Loading branch information
moughxyz authored Jan 14, 2022
2 parents 43aabb8 + f172427 commit 28e4227
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/dist.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "sn-plus-editor",
"version": "1.5.0",
"version": "1.6.0",
"description": "A rich text editor for Standard Notes",
"main": "dist/dist.js",
"author": "Standard Notes <hello@standardnotes.org>",
"author": "Standard Notes <hello@standardnotes.com>",
"scripts": {
"lint": "eslint --ext .js .",
"build": "webpack --config webpack.prod.js",
Expand Down
2 changes: 2 additions & 0 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ document.addEventListener('DOMContentLoaded', function () {
clientData = note.clientData;
let newText = note.content.text;

$('.note-editable').attr('spellcheck', JSON.stringify(note.content.spellcheck));

if (newText == lastValue) {
return;
}
Expand Down

0 comments on commit 28e4227

Please sign in to comment.