Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paste: Plain text disguised as HTML should come out in blocks #16216

Draft
wants to merge 1 commit into
base: trunk
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions test/integration/blocks-raw-handling.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ describe( 'Blocks raw handling', () => {
describe( 'pasteHandler', () => {
[
'plain',
'plain-like',
'classic',
'apple',
'google-docs',
Expand Down
9 changes: 8 additions & 1 deletion test/integration/fixtures/plain-in.html
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
test<br>test<br><br>test<br>
Paragraph 1

Paragraph 2
• List item 1
• List item 2
• List item 3

Paragraph 3
1 change: 1 addition & 0 deletions test/integration/fixtures/plain-like-in.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
test<br>test<br><br>test<br>
7 changes: 7 additions & 0 deletions test/integration/fixtures/plain-like-out.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<!-- wp:paragraph -->
<p>test<br>test</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>test<br></p>
<!-- /wp:paragraph -->
7 changes: 0 additions & 7 deletions test/integration/fixtures/plain-out.html
Original file line number Diff line number Diff line change
@@ -1,7 +0,0 @@
<!-- wp:paragraph -->
<p>test<br>test</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>test<br></p>
<!-- /wp:paragraph -->