diff --git a/packages/block-library/src/paragraph/edit.js b/packages/block-library/src/paragraph/edit.js index d32b4e8d5eca02..3af1667564f3d9 100644 --- a/packages/block-library/src/paragraph/edit.js +++ b/packages/block-library/src/paragraph/edit.js @@ -146,9 +146,14 @@ function ParagraphBlock( { tagName="p" { ...blockProps } value={ content } - onChange={ ( newContent ) => - setAttributes( { content: newContent } ) - } + onChange={ ( newContent ) => { + // Capitalize the first letter only if the content is empty + const updatedContent = RichText.isEmpty( content ) + ? newContent.charAt( 0 ).toUpperCase() + + newContent.slice( 1 ) + : newContent; + setAttributes( { content: updatedContent } ); + } } onMerge={ mergeBlocks } onReplace={ onReplace } onRemove={ onRemove }