mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-27 19:02:23 +08:00
@@ -2,6 +2,7 @@ import type { BaseSelection, BlockModel } from '@blocksuite/store';
|
||||
import throttle from 'lodash-es/throttle';
|
||||
|
||||
import { TextSelection } from '../../selection/index.js';
|
||||
import { EditorHost } from '../../view/index.js';
|
||||
import { isActiveInEditor } from './active.js';
|
||||
import { RANGE_SYNC_EXCLUDE_ATTR } from './consts.js';
|
||||
import type { RangeManager } from './range-manager.js';
|
||||
@@ -191,6 +192,11 @@ export class RangeBinding {
|
||||
return;
|
||||
}
|
||||
|
||||
// From legacy render lit portal
|
||||
if (range.commonAncestorContainer instanceof EditorHost) {
|
||||
return;
|
||||
}
|
||||
|
||||
// range is in a non-editable element
|
||||
// ex. placeholder
|
||||
const isRangeOutNotEditable =
|
||||
|
||||
Reference in New Issue
Block a user