Skip to content

Commit

Permalink
Adjust comment
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin940726 committed Sep 16, 2024
1 parent 91dcb16 commit adfc777
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/block-editor/src/components/block-list/block.js
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ const applyWithDispatch = withDispatch( ( dispatch, ownProps, registry ) => {
)
);

// Step 2: Else, attempt to convert to the default block type.
// Step 2: Else, attempt to lift and convert to the default block type.
if ( canTransformToDefaultBlock ) {
insertBlocks(
replacement,
Expand All @@ -433,7 +433,7 @@ const applyWithDispatch = withDispatch( ( dispatch, ownProps, registry ) => {
removeBlock( firstClientId, false );
}
// Step 3: If the block is a default block but modified and "empty",
// transform it into an unmodified block.
// transform it into an unmodified block (remove formatting).
else if (
firstBlock.name === defaultBlockName &&
! isUnmodifiedDefaultBlock( firstBlock ) &&
Expand Down

0 comments on commit adfc777

Please sign in to comment.