From bcb1ba92f01175d95c08c06e97202e9dff7f74e0 Mon Sep 17 00:00:00 2001 From: etoledom Date: Wed, 1 May 2019 10:34:03 +0200 Subject: [PATCH] iOS: Remove p tags from image caption paragraphs --- packages/block-library/src/image/edit.native.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/block-library/src/image/edit.native.js b/packages/block-library/src/image/edit.native.js index df928eebb3aa76..7480b3e4fde11f 100644 --- a/packages/block-library/src/image/edit.native.js +++ b/packages/block-library/src/image/edit.native.js @@ -444,6 +444,7 @@ class ImageEdit extends React.Component { setRef={ ( ref ) => { this._caption = ref; } } + rootTagsToEliminate={ [ 'p' ] } placeholder={ __( 'Write caption…' ) } value={ caption } onChange={ ( newCaption ) => setAttributes( { caption: newCaption } ) }