Skip to content

Commit

Permalink
__unstablePastePlainText added to Preformatted and Verse so that it w…
Browse files Browse the repository at this point in the history
…ill keep the original formatting (#27781)

Co-authored-by: grzegorz_marzencki <[email protected]>
  • Loading branch information
grzim and grzegorz_marzencki authored Feb 19, 2021
1 parent 88c6895 commit 70b1cde
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/block-library/src/preformatted/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export default function PreformattedEdit( {
placeholder={ __( 'Write preformatted text…' ) }
onMerge={ mergeBlocks }
{ ...blockProps }
__unstablePastePlainText
/>
);
}
1 change: 1 addition & 0 deletions packages/block-library/src/verse/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export default function VerseEdit( {
onMerge={ mergeBlocks }
textAlign={ textAlign }
{ ...blockProps }
__unstablePastePlainText
/>
</>
);
Expand Down

0 comments on commit 70b1cde

Please sign in to comment.