fix(editor): allow copy in readonly mode (#11538)

This commit is contained in:
Saul-Mirone
2025-04-08 08:52:19 +00:00
parent b8e7ca3214
commit bda5562f90

View File

@@ -219,8 +219,8 @@ export class RangeBinding {
const closestExclude = el.closest(`[${RANGE_SYNC_EXCLUDE_ATTR}="true"]`);
if (closestExclude) return;
const closestEditable = el.closest('[contenteditable="false"]');
if (closestEditable) return;
const closestEditable = el.closest('[contenteditable]');
if (!closestEditable) return;
const startElement = getElement(range.startContainer);
const endElement = getElement(range.endContainer);