[Support request] The editor has encountered an unexpected error

Home Forums Support [Support request] The editor has encountered an unexpected error

Home Forums Support The editor has encountered an unexpected error

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #1475625
    Preetam

    Hi
    try to add <H2> to tag on Subheading by edit HTML. see this message:
    “The editor has encountered an unexpected error.”
    and 3 buttons:
    Attempt Recovery
    Copy Post Text
    Copy Error

    I installed Health Check & Troubleshooting plugin.tried again – still the same problem: The editor has encountered an unexpected error.

    Any help will be appreciated.

    #1476041
    David
    Staff
    Customer Support

    Hi there,

    how are you adding the Subheading – Is this a plugin adding that feature ?

    #1476058
    Preetam

    Hi David. I am adding a H2 Tags on subheading through edit as HTML option and no plugins. i tried to disable all plugins and still the problem persist.

    #1476209
    David
    Staff
    Customer Support

    Are you using the Block Editor ?

    #1477723
    Preetam

    Yes David.I am using block editor.

    #1477973
    David
    Staff
    Customer Support

    Any reason why you’re editing the HTML to add the H2 ?

    #1479078
    Preetam

    when i am adding the content onto the editor i cant see the the option to add HTMl tags naturally so i use the option Edit as HTML. is there any way i can share the screenshot or screen recording with you the prolem?

    #1479217
    Elvin
    Staff
    Customer Support

    Hi,

    You can try sharing your screenshot to us by uploading it here( https://imgbb.com/ ) and giving us the link.

    There’s a specific block that allows you to do that. You should use Custom HTML block rather than editing a block through edit HTML or code editor.

    You should be able to find it there. It’s a default block readily available in Gutenberg Editor.

    Read more here: https://wordpress.com/support/wordpress-editor/blocks/custom-html-block/

    Alternatively, if you just want to add an h2, you can just use the heading block.

    #1479412
    Preetam

    Hi Elvin. Thanks for your reply. here is the link with issue. https://streamable.com/ia9osu

    #1479421
    Elvin
    Staff
    Customer Support

    Thank you.

    As David asked, Can you tell us why you have to place an H2 inside a paragraph?

    Perhaps we can offer a better solution to what you’re trying to do.

    By the way, your HTML syntax is wrong. the correct syntax is <h2>This is The Issue</h2> not </h2>This is The Issue</h2>. Mind the / syntax. It’s only used for closing the tag.

    #1479453
    Preetam

    Hi Elvin. Yes that was a mistake. Thanks for pointing out. I am not exactly using the H2 inside the paragraph but to highlight the sub headings in different HTML tags like H2 to H4.

    #1479456
    Elvin
    Staff
    Customer Support

    Oh if that’s the case, you’ll be better served if you use the Heading Blocks instead.

    This block will allow you to choose the subheading you want.

    Read more here – https://wordpress.com/support/wordpress-editor/blocks/heading-block/

    It should be readily available as it is one of Gutenberg editor default blocks.

    #1479460
    Preetam

    Okay Thanks Elvin. Any idea why this issue is happening?

    #1479472
    Elvin
    Staff
    Customer Support

    It happens on purpose. It works that way by design.

    This will be a good read if you want to dig deeper. https://github.com/WordPress/gutenberg/issues/7604

    This in-depth explanation comes directly from one of Gutenberg contributors/developers.

Viewing 14 posts - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.