Support browser translations for read only editor (#10501)

Signed-off-by: Artem Savchenko <armisav@gmail.com>
This commit is contained in:
Artyom Savchenko
2026-02-12 11:13:04 +07:00
committed by GitHub
parent bf705d9bef
commit dbe961780c
@@ -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: {