Skip to content

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

feat: add picker plugin in tinymce

thecodrr214931ded9cf
diff --git a/apps/web/src/components/editor/plugins/picker.js b/apps/web/src/components/editor/plugins/picker.js
index 817df028e..4fe8eae2c 100644
--- a/apps/web/src/components/editor/plugins/picker.js
+++ b/apps/web/src/components/editor/plugins/picker.js
@@ -109,7 +109,6 @@ async function pickImage() {
}
async function getEncryptionKey() {
- return { password: "helloworld" };
const key = await db.user.getEncryptionKey();
if (!key) throw new Error("No encryption key found. Are you logged in?");
return key; // { password: "helloworld" };
diff --git a/apps/web/src/components/editor/tinymce.js b/apps/web/src/components/editor/tinymce.js
index 695ef1145..d90f9aa9d 100644
--- a/apps/web/src/components/editor/tinymce.js
+++ b/apps/web/src/components/editor/tinymce.js
@@ -114,7 +114,7 @@ const plugins = {
default:
"importcss searchreplace autolink directionality media table hr advlist lists imagetools noneditable autoresize",
custom:
- "icons blockescape keyboardquirks collapsibleheaders attachmentshandler shortlink quickimage paste codeblock inlinecode checklist",
+ "icons picker blockescape keyboardquirks collapsibleheaders attachmentshandler shortlink paste codeblock inlinecode checklist",
pro: "textpattern",
};