Skip to content

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

fix: broken html after pasting

thecodrr3651f91e71de
diff --git a/apps/web/src/components/editor/react-quill.js b/apps/web/src/components/editor/react-quill.js
index 9f3d6d2a8..ac7167628 100644
--- a/apps/web/src/components/editor/react-quill.js
+++ b/apps/web/src/components/editor/react-quill.js
@@ -226,17 +226,6 @@ export default class ReactQuill extends Component {
);
}
- this.quill.clipboard.addMatcher(Node.TEXT_NODE, function (_node, delta) {
- return {
- ops: delta.ops[0].insert
- .split("\n")
- .filter((p) => !!p)
- .map((para) => ({
- insert: para + "\n",
- })),
- };
- });
-
if (onQuillInitialized) onQuillInitialized();
}