Skip to content

Commit

Permalink
fix(inline): event source should not contenteditable when in readonly (
Browse files Browse the repository at this point in the history
  • Loading branch information
Flrande authored Jan 26, 2024
1 parent dae4404 commit 48209e8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/inline/src/inline-editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ export class InlineEditor<

setReadonly(isReadonly: boolean): void {
this.rootElement.contentEditable = isReadonly ? 'false' : 'true';
this.eventSource.contentEditable = isReadonly ? 'false' : 'true';
this._isReadonly = isReadonly;
}

Expand Down

1 comment on commit 48209e8

@vercel
Copy link

@vercel vercel bot commented on 48209e8 Jan 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

blocksuite – ./packages/playground

blocksuite-git-master-toeverything.vercel.app
try-blocksuite.vercel.app
blocksuite-toeverything.vercel.app

Please sign in to comment.