Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

feat: markdown shortcut for checklists

thecodrr5d3e2adce06d
diff --git a/apps/web/package.json b/apps/web/package.json
index 544f6c875..957527b3e 100644
--- a/apps/web/package.json
+++ b/apps/web/package.json
@@ -12,7 +12,7 @@
"@notesnook/crypto": "^1.0.0",
"@notesnook/desktop": "file:desktop",
"@rebass/forms": "^4.0.6",
- "@streetwriters/tinymce-plugins": "^1.5.9",
+ "@streetwriters/tinymce-plugins": "^1.5.10",
"@tinymce/tinymce-react": "^3.13.0",
"async-mutex": "^0.3.2",
"axios": "^0.21.4",
diff --git a/apps/web/src/components/editor/tinymce.js b/apps/web/src/components/editor/tinymce.js
index d4ee89d18..eb29642fa 100644
--- a/apps/web/src/components/editor/tinymce.js
+++ b/apps/web/src/components/editor/tinymce.js
@@ -60,6 +60,8 @@ const markdownPatterns = [
{ start: "#### ", format: "h4" },
{ start: "##### ", format: "h5" },
{ start: "###### ", format: "h6" },
+ { start: "- [x]", cmd: "insertChecklist", value: { checked: true } },
+ { start: "- []", cmd: "insertChecklist" },
{ start: "* ", cmd: "InsertUnorderedList" },
{ start: "- ", cmd: "InsertUnorderedList" },
{ start: "> ", format: "blockquote" },