• Resolved Leroy12

    (@leroy12)


    Hello WordPress community,

    I have snippets of HTML that I frequently use on my blog post (such as “From Book reference“). I’m trying to find a way to easily input them into Gutenberg.

    For that purpose, I’m testing HotAutoKey, to paste such snippets when type of combination of keys.

    However, when doing that, Gutenberg is converting the HTML into text. It does work when I switch to Code Editor, but doing so, would slow down those repetitive task.

    Any way to paste HTML code directly into the Visual Editor ?

    Thanks for your help

Viewing 3 replies - 1 through 3 (of 3 total)
  • How to paste HTML into Gutenberg editor?

    Use the aptly-named CUSTOM HTML block, not the default paragraph/text block.

    Thread Starter Leroy12

    (@leroy12)

    Thanks George. That does work, but I want to embed those HTML snippets into some text I’m writing in Paragraph or Quote blocks. Thanks.

    Thread Starter Leroy12

    (@leroy12)

    Found my solution:

    • I created a HTML page, with my HTML snippets.
    • On Windows: Viewing the page on a browser, I copied each snippet independantly.
    • Windows Key + V to open the Windows Clipboard Manager – and for each snippet, I pinned it.
    • From WordPress, when I need to paste a HTML snippet, Windows Key + V to trigger the Clipboard, click on the snippet and it is directly embedded into WordPress.

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to paste HTML into Gutenberg editor?’ is closed to new replies.