-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Copy plain text variant of blocks (#41366)
* copy plain text into the clipboard by stripping HTML from serialized block data * rename the copy block data menu item to hopefully stress that the block markup is copied as well * edit block tool copy and more tools copy to refer to block * mend * mend * mend * Handle BR tags and trim whitespace when producing plain text * use `_n` for plural of block Co-authored-by: Miguel Fonseca <[email protected]> * import _n * update snapshot with lesst newlines Co-authored-by: Miguel Fonseca <[email protected]>
- Loading branch information
1 parent
a8c8b14
commit 6f3bb8c
Showing
8 changed files
with
80 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
...aste-plain-text-in-plain-text-context-when-cross-block-selection-is-copied-1-chromium.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<!-- wp:heading --> | ||
<h2>Heading</h2> | ||
<!-- /wp:heading --> | ||
|
||
<!-- wp:paragraph --> | ||
<p>Paragraph</p> | ||
<!-- /wp:paragraph --> |
13 changes: 13 additions & 0 deletions
13
...aste-plain-text-in-plain-text-context-when-cross-block-selection-is-copied-2-chromium.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- wp:heading --> | ||
<h2>Heading</h2> | ||
<!-- /wp:heading --> | ||
|
||
<!-- wp:paragraph --> | ||
<p>Paragraph</p> | ||
<!-- /wp:paragraph --> | ||
|
||
<!-- wp:code --> | ||
<pre class="wp-block-code"><code>ading | ||
|
||
Paragra</code></pre> | ||
<!-- /wp:code --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters