Block editor won't save if there is a link in the article

  • Unknown's avatar

    Hi!
    I have just switched to the block editor, to give it a deeper try.
    It’s all fantastic, but when I try to add a link to the text, the editor won’t save the article anymore.
    I tried to narrow down the problem and it seems that is the attribute href that causes the issue.
    It simply goes like that: I edit some text as a link (I tried both with block editor and html view editor) and when I press publish, it says that has failed the update.
    I tried with just<a> tag, and it’s fine, but when I add the href=” attribute, editor won’t save anymore.
    Is that a known issue? I didn’t find anything on the internet.

    P.S.
    My wordpress version is 5.3.2, all plugins are up to date

  • Unknown's avatar

    Sorry, I got a problem with the previous message, below the right one.
    Hi!
    I have just switched to the block editor, to give it a deeper try.
    It’s all fantastic, but when I try to add a link to the text, the editor won’t save the article anymore.
    I tried to narrow down the problem and it seems that is the attribute href that causes the issue.
    It simply goes like that: I edit some text as a link (I tried both with block editor and html view editor) and when I press publish, it says that has failed the update.
    I tried with just <a></a> tag, and it’s fine, but when I add the href=” attribute, the editor won’t save anymore.
    Is that a known issue? I didn’t find anything on the internet.

    P.S.
    My wordpress version is 5.3.2, all plugins are up to date

  • Hi, did you mean to post in the WordPress forums for the free software?
    https://wordpress.org/support/forums/

    I ask because our users don’t worry about version numbers, as we take care of that for them. These forums are specific to the sites using our managed service. We take care of maintenance, security, and support for the WordPress sites hosted on our servers, so if you’re interested, we have more information here:

    WordPress.com vs. WordPress.org

    Generally speaking though, you might look at how you’re adding the links. Like if you just select a word or image and paste a link to it, does that work? It might, and if so it could just be a syntax issue. Block syntax is different from regular HTML.

  • Unknown's avatar

    Hi, yes I’m in the wrong place, sorry for the inconvenience.

    Just for you to know, I tried your method: select the text and paste the link. It didn’t work.

    I tried those: select the text and click on the chain icon and paste the link.
    Add HTML code in a HTML block
    Add HTML code in a normal block with the code view

    The tag works only if there is no href attribute. It’s actually pretty useless right now.

    However, thank you for the reply also if it’s not up to you to solve the issue.
    I will ask the community around to see if somebody had the same issue.

    Have a nice one!

  • The topic ‘Block editor won't save if there is a link in the article’ is closed to new replies.