diff --git a/packages/blocks/src/paragraph-block/paragraph-block.ts b/packages/blocks/src/paragraph-block/paragraph-block.ts index 75db4bf6e824..65e92c88acca 100644 --- a/packages/blocks/src/paragraph-block/paragraph-block.ts +++ b/packages/blocks/src/paragraph-block/paragraph-block.ts @@ -231,6 +231,16 @@ export class ParagraphBlockComponent extends BlockElement { this.requestUpdate(); }); this.model.childrenUpdated.on(() => this.requestUpdate()); + + this.page.awarenessStore.slots.update.on(v => { + const remoteSelections = this.std.selection.remoteSelections.get(v.id); + const textSelection = remoteSelections?.find( + selection => selection.type === 'text' + ); + if (textSelection) { + this._updatePlaceholder(); + } + }); } private _updatePlaceholder = () => {