GithubHelp home page GithubHelp logo

Comments (1)

t-hamano avatar t-hamano commented on June 1, 2024

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;">&lt;!-- wp:heading --&gt;</span></div><div><span style="color: #f8f8f2;">&lt;</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;">&gt;Heading&lt;/</span><span style="color: #f92672;">h2</span><span style="color: #f8f8f2;">&gt;</span></div><div><span style="color: #88846f;">&lt;!-- /wp:heading --&gt;</span></div></div>

Received plain text:

 <!-- wp:heading -->
<h2 class="wp-block-heading">Heading</h2>
<!-- /wp:heading -->

Processed HTML piece:

 <p>&lt;!-- wp:heading --&gt;</p><p>&lt;h2 class="wp-block-heading"&gt;Heading&lt;/h2&gt;</p><p>&lt;!-- /wp:heading --&gt;</p>

The solution for now would be to switch to the code editor and then paste.

from gutenberg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.