Skip to content

Commit

Permalink
Merge pull request #245 from westonruter/fix/plain-text-paste
Browse files Browse the repository at this point in the history
Fix ability to paste HTML markup into Code blocks (without it being converted to rich text)
  • Loading branch information
westonruter authored Dec 20, 2020
2 parents f95c78e + d570f60 commit a1e0514
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ const extendCodeBlockWithSyntaxHighlighting = (settings) => {

if (useBlockProps) {
props.preserveWhiteSpace = true;
props.__unstablePastePlainText = true; // See https://github.com/WordPress/gutenberg/pull/27236
}

return (
Expand Down

0 comments on commit a1e0514

Please sign in to comment.