Skip to content

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

fix: ctrl+v not pasting text

thecodrr7081898ba05a
diff --git a/apps/web/src/components/editor/tinymce.js b/apps/web/src/components/editor/tinymce.js
index 7dbf5977d..d4ee89d18 100644
--- a/apps/web/src/components/editor/tinymce.js
+++ b/apps/web/src/components/editor/tinymce.js
@@ -288,10 +288,10 @@ function TinyMCE(props) {
async function onPaste(e) {
if (e.clipboardData?.items?.length) {
- e.preventDefault();
for (let item of e.clipboardData.items) {
const file = item.getAsFile();
if (!file) continue;
+ e.preventDefault();
await attachFile(editor, file);
}
}