From dbe961780c87e4c6e0b48236ea86ef64e72f3266 Mon Sep 17 00:00:00 2001 From: Artyom Savchenko Date: Thu, 12 Feb 2026 11:13:04 +0700 Subject: [PATCH] Support browser translations for read only editor (#10501) Signed-off-by: Artem Savchenko --- .../src/components/CollaborativeTextEditor.svelte | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/text-editor-resources/src/components/CollaborativeTextEditor.svelte b/plugins/text-editor-resources/src/components/CollaborativeTextEditor.svelte index 822faa3958..2b4620ad77 100644 --- a/plugins/text-editor-resources/src/components/CollaborativeTextEditor.svelte +++ b/plugins/text-editor-resources/src/components/CollaborativeTextEditor.svelte @@ -425,7 +425,10 @@ element, editable: !readonly, editorProps: { - attributes: mergeAttributes(defaultEditorAttributes, editorAttributes, { class: 'flex-grow' }) + attributes: mergeAttributes(defaultEditorAttributes, editorAttributes, { + class: 'flex-grow', + translate: readonly ? 'yes' : 'no' + }) }, enableContentCheck: true, parseOptions: {