diff --git a/core-blocks/paragraph/index.js b/core-blocks/paragraph/index.js index be974cab9f7a0..7f24c38f90b68 100644 --- a/core-blocks/paragraph/index.js +++ b/core-blocks/paragraph/index.js @@ -210,49 +210,47 @@ class ParagraphBlock extends Component { isLargeText={ fontSize >= 18 } /> -
- { - setAttributes( { - content: nextContent, - } ); - } } - onSplit={ insertBlocksAfter ? - ( before, after, ...blocks ) => { - if ( after ) { - blocks.push( createBlock( name, { content: after } ) ); - } - - insertBlocksAfter( blocks ); - - if ( before ) { - setAttributes( { content: before } ); - } else { - onReplace( [] ); - } - } : - undefined - } - onMerge={ mergeBlocks } - onReplace={ this.onReplace } - onRemove={ () => onReplace( [] ) } - placeholder={ placeholder || __( 'Add text or type / to add content' ) } - /> -
+ { + setAttributes( { + content: nextContent, + } ); + } } + onSplit={ insertBlocksAfter ? + ( before, after, ...blocks ) => { + if ( after ) { + blocks.push( createBlock( name, { content: after } ) ); + } + + insertBlocksAfter( blocks ); + + if ( before ) { + setAttributes( { content: before } ); + } else { + onReplace( [] ); + } + } : + undefined + } + onMerge={ mergeBlocks } + onReplace={ this.onReplace } + onRemove={ () => onReplace( [] ) } + placeholder={ placeholder || __( 'Add text or type / to add content' ) } + /> ); } diff --git a/core-blocks/paragraph/test/__snapshots__/index.js.snap b/core-blocks/paragraph/test/__snapshots__/index.js.snap index 59906d22c825d..73dfd3da4df06 100644 --- a/core-blocks/paragraph/test/__snapshots__/index.js.snap +++ b/core-blocks/paragraph/test/__snapshots__/index.js.snap @@ -3,31 +3,29 @@ exports[`core/paragraph block edit matches snapshot 1`] = `
-
-
+
+
-
-
+

-

- Add text or type / to add content -

-
+ Add text or type / to add content +