From 6cc0cde1242ea372026b48590ce15a585e4bc9d9 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Tue, 14 May 2024 20:45:47 -0400 Subject: [PATCH] fix: Allow mixed ltr/rtl content in a document, closes #6836 --- shared/editor/nodes/Paragraph.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/editor/nodes/Paragraph.ts b/shared/editor/nodes/Paragraph.ts index a0b2b22ef..31a5c2b9b 100644 --- a/shared/editor/nodes/Paragraph.ts +++ b/shared/editor/nodes/Paragraph.ts @@ -14,7 +14,7 @@ export default class Paragraph extends Node { content: "inline*", group: "block", parseDOM: [{ tag: "p" }], - toDOM: () => ["p", 0], + toDOM: () => ["p", { dir: "auto" }, 0], }; }