• Resolved D

    (@clocksaysnow)


    First off, I hate Gutenberg. I just wanted to get that on the record.

    But assuming I’m eventually forced to use it, I’ve got a question about it. Let’s say I’ve created a post using Gutenberg on my test site. Once I’ve finished creating the post on my test site, I now want to take a copy of that newly created post and paste it to my real online website. In the past, using the “classic” version of WordPress, I’d simply copy the html for that post from the post’s text editor and paste it into a newly created post on my actual website. Done deal. Very easy.

    But with Gutenberg’s block approach, how would I “copy and paste” a post or page from my test site onto my real website?

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • two methods that I know of:
    1) in gutenberg, use the Code Editor, copy and paste code displayed, or
    2) in “Classic Editor”, copy and paste code displayed

    reversing this, there are examples of dummy content generators, one example is Rich Tabor’s Block Unit Test. This plugin generates code formatted in the Gutenberg standard and creates a page on your site.

    Al

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    In Gutenberg, look at the upper right corner of the editor screen to find a three-vertical-dot dropdown menu. Click it and select Code Editor to switch to the raw view of the code. Copy, paste as usual.

    Moderator Marius L. J.

    (@clorith)

    I’d like to add that you can just mark-all in the editor and copy-paste that way as well. If you paste it into another Gutenberg instance it should all look the same as long as they both have the same blocks available to them, and the copied content should be equivalent to what you would get if you opened the code view.

    If you wish to copy it to a site that’s not Running Gutenberg or similar, and you wanted the actual HTML output, you would need to preview the page and copy it from the front-end where things are converted into proper markup.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to generate html from Gutenberg?’ is closed to new replies.