Skip to content

Commit

Permalink
iOS: Remove p tags from image caption paragraphs
Browse files Browse the repository at this point in the history
  • Loading branch information
etoledom committed May 1, 2019
1 parent d9390f3 commit bcb1ba9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/block-library/src/image/edit.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 } ) }
Expand Down

0 comments on commit bcb1ba9

Please sign in to comment.