mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-02-24 04:00:59 +01:00
fix: broken html after pasting
This commit is contained in:
11
apps/web/src/components/editor/react-quill.js
vendored
11
apps/web/src/components/editor/react-quill.js
vendored
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user