Skip to content

Commit

Permalink
fix: Copy/pasting
Browse files Browse the repository at this point in the history
  • Loading branch information
areknawo committed Jul 13, 2024
1 parent 2081ca3 commit a55aefb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/web/src/lib/editor/editing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ const createClipboardSerializer = (
const base = DOMSerializer.fromSchema(editor.schema);
const nodes: Record<string, (node: Node) => DOMOutputSpec> = {
paragraph: base.nodes.paragraph,
text: base.nodes.text
text: base.nodes.text,
hardBreak: base.nodes.hardBreak
};
const marks: Record<string, (mark: Mark, inline: boolean) => DOMOutputSpec> = {
comment: base.marks.comment
Expand Down

0 comments on commit a55aefb

Please sign in to comment.