fix(editor): allow copy in readonly mode (#11538)
This commit is contained in:
@@ -219,8 +219,8 @@ export class RangeBinding {
|
|||||||
const closestExclude = el.closest(`[${RANGE_SYNC_EXCLUDE_ATTR}="true"]`);
|
const closestExclude = el.closest(`[${RANGE_SYNC_EXCLUDE_ATTR}="true"]`);
|
||||||
if (closestExclude) return;
|
if (closestExclude) return;
|
||||||
|
|
||||||
const closestEditable = el.closest('[contenteditable="false"]');
|
const closestEditable = el.closest('[contenteditable]');
|
||||||
if (closestEditable) return;
|
if (!closestEditable) return;
|
||||||
|
|
||||||
const startElement = getElement(range.startContainer);
|
const startElement = getElement(range.startContainer);
|
||||||
const endElement = getElement(range.endContainer);
|
const endElement = getElement(range.endContainer);
|
||||||
|
|||||||
Reference in New Issue
Block a user