• Resolved Alvin

    (@iluminancia)


    Hi there,

    I really appreciate that you added the “Page scroll to id target’ block for Gutenberg block editor”, this avoid using a Classic Editor Block or a Shortcut block.

    However, is it also needed a “Link block”?

    Maybe I misunderstood how to use the new Gutenberg block?

    Best regards,

    Alvin

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author malihu

    (@malihu)

    Hello Alvin,

    Any standard link created in the Gutenberg block editor will work with “Page scroll to id” as long as:

    1)The link’s URL has a valid hash, e.g. #your-id

    2)The “Selector(s)” option in plugin settings is set to (or includes):

    a[href*='#']:not([href='#'])

    In general, there’s no really a need for a link block if you have the proper selector set in plugin settings.

    About the missing link block in the editor:

    The Gutenberg block editor, as of right now, does not provide a standard way of creating custom inline blocks (e.g. links) inside other blocks (e.g. paragraphs), like the old classic editor used to (see issue).

    That’s why there’s no “Page scroll to id link” block at the moment. If the block editor provides a way to create custom inline blocks in the future, I’ll be happy to create one.

    Hope this helps and thanks a lot for the feedback ??

    Thread Starter Alvin

    (@iluminancia)

    Hello @malihu ,

    Thank you for a quick reply!

    Regards,

    Alvin

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Link block missing for Gutenberg?’ is closed to new replies.