mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
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"]`);
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user