Comments (1)
Thanks for the report. I was also able to reproduce this problem.
The unique HTML and Meta information included in VSCode might be affecting this. It works correctly when copied from the text area in a web browser.
Below is the log recorded in the browser console when pasting.
Received HTML
<div style="color: #f8f8f2;background-color: #272822;font-family: 'Ricty Diminished', Consolas, 'Courier New', monospace;font-weight: normal;font-size: 25.6px;line-height: 35px;white-space: pre;"><div><span style="color: #88846f;"><!-- wp:heading --></span></div><div><span style="color: #f8f8f2;"><</span><span style="color: #f92672;">h2</span><span style="color: #f8f8f2;"> </span><span style="color: #a6e22e;">class</span><span style="color: #f8f8f2;">=</span><span style="color: #e6db74;">"wp-block-heading"</span><span style="color: #f8f8f2;">>Heading</</span><span style="color: #f92672;">h2</span><span style="color: #f8f8f2;">></span></div><div><span style="color: #88846f;"><!-- /wp:heading --></span></div></div>
Received plain text:
<!-- wp:heading -->
<h2 class="wp-block-heading">Heading</h2>
<!-- /wp:heading -->
Processed HTML piece:
<p><!-- wp:heading --></p><p><h2 class="wp-block-heading">Heading</h2></p><p><!-- /wp:heading --></p>
The solution for now would be to switch to the code editor and then paste.
from gutenberg.
Related Issues (20)
- Invalid JSON Response and RESI API Issue HOT 2
- Components: remove Framer Motion HOT 3
- Cannot bind attributes to direct children of `data-wp-each` HOT 2
- Footnotes in sync patterns can't be edited HOT 1
- Spacer block: Can't set height when direct descendant of a Row block
- Editor: Fix 403 forbidden error for users with low capabilities
- Add page-break support to Footnotes block
- Allow customization of block preview height HOT 6
- Improve Inserter experience when blocks cannot be inserted HOT 17
- When a pattern is first saved, there is a notice that says "Site updated" instead of "Pattern saved".
- Data Views: Some notices display encoded characters HOT 2
- Group block: Add horizontal margin support when direct descendant of a row HOT 2
- Multiple Blocks: Padding setting in JSON is no longer working HOT 6
- Proposal for Enhancing the Navigation Block to Support Mega Menu Creation
- Create a new icon for widget areas
- Can't swap templates in the post editor HOT 8
- JavaScript Documentation: Improve the JS API documentation tool. HOT 5
- Inserter: Pattern tab visibility HOT 3
- Block Editor: `BlockCanvas` component is exposed on both public/private
- Only engage zoom out mode if the editor is focused on an entity HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gutenberg.