• In the “classic” editor, insert hyperlink feature works as expected:
    1. start typing to search..
    2. choose a post (of ANY type!)
    3. link text is inserted using title of the post

    In block editor, insert hyperlink feature seems crippled:
    1. start typing to search…
    2. choose a post (but not custom posts, unless supported)
    3. link text is inserted as URL, so then one needs to remember title, edit link text (pain, error prone)

    I MUST be doing something wrong. Can’t imagine WP would move backwards, so please enlighten me — what am I doing wrong with that block hyperlink insert?

    P.S. I can work around this, but some of my clients will balk.

    P.P.S I understand custom post types now need to enable REST API, but this feature only inserts a link, so… why?

    thanks for any help.

Viewing 1 replies (of 1 total)
  • Plugin Author Jorge Costa

    (@jorgefilipecosta)

    Hi there!

    Thank you for reporting this issue.

    So the issue is the link control is not able to link to custom post types that don’t have the REST API enabled?

    P.P.S I understand custom post types now need to enable REST API, but this feature only inserts a link, so… why?

    The Gutenberg editor uses the REST API like any API consumer even to insert a link; we need to query that post type and have the API return it. Otherwise, it can not be a link suggestion. If the rest API is not enabled, for the editor, it is as if that post does not exist, and there is no way the editor can be aware of it.

Viewing 1 replies (of 1 total)
  • The topic ‘Insert Hyperlink in block editor inferior?’ is closed to new replies.