Skip to content

Commit

Permalink
fix(components): disable append paragraph in readonly mode
Browse files Browse the repository at this point in the history
  • Loading branch information
L-Sun committed Apr 3, 2024
1 parent c16654e commit ad842d0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export const BlocksuiteDocEditor = forwardRef<
specs={specs}
hasViewport={false}
/>
{docPage ? (
{docPage && !page.readonly ? (
<div
className={styles.docEditorGap}
onClick={() => {
Expand Down

0 comments on commit ad842d0

Please sign in to comment.