fix: broken html after pasting

This commit is contained in:
thecodrr
2021-01-27 20:32:14 +05:00
parent 65d4af316a
commit 3651f91e71

View File

@@ -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();
}