chore: allow cursor in none-contenteditable blocks (#11366)

This commit is contained in:
Saul-Mirone
2025-04-01 13:20:08 +00:00
parent 4e1e91120f
commit 7f98420061
3 changed files with 12 additions and 4 deletions

View File

@@ -9,6 +9,7 @@ import {
stdContext,
TextSelection,
} from '@blocksuite/std';
import { RANGE_SYNC_EXCLUDE_ATTR } from '@blocksuite/std/inline';
import type { BlockModel, Store } from '@blocksuite/store';
import { Text } from '@blocksuite/store';
import { consume } from '@lit/context';
@@ -121,6 +122,8 @@ export class BlockCaptionEditor<
override connectedCallback(): void {
super.connectedCallback();
this.setAttribute(RANGE_SYNC_EXCLUDE_ATTR, 'true');
this.caption = this.model.props.caption;
this.disposables.add(