Skip to content

Details Block: does not have word editing toolbar on title(for changing linked text) #69866

Closed as not planned

Description

@Robertght

Description

In the case where someone pasts or manually ads a link on the title of the Details block, that doesn't offer the option to change that link in any way.

This was raised here: Automattic/wp-calypso#102490

Step-by-step reproduction instructions

  1. Add a new page
  2. Add a Details block
  3. Copy a linked text from anywhere you prefer
  4. Paste it within the title of the Details block
  5. Try to edit it.

Screenshots, screen recording, code snippet

We'll only see the alignment option:

Image

Environment info

Tested on GB 20.0.6 and 20.0.2
WP 6.7.2

Please confirm that you have searched existing issues in the repo.

  • Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

  • Yes

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure

Activity

  1. added
    [Type] BugAn existing feature does not function as intended
    on Apr 9, 2025
  2. SainathPoojary commented on Apr 9, 2025

    @SainathPoojary
    Member

    Thank you for raising the issue @Robertght. I was able to reproduce the issue and would like to further explore the possible root cause.

  3. SainathPoojary commented on Apr 9, 2025

    @SainathPoojary
    Member

    Hey @Robertght, I looked into the root cause and found that the issue is caused by this prop. I tested it by removing the prop, and that enabled the link editing interface to appear.

    I also tried tracing which PR introduced this prop and the reasoning behind it, but I wasn’t able to find a clear explanation.

    This is the 2 PRs where we this prop was added
    #45055
    #49808

    I believe @t-hamano may have more insights on this. I would love to hear from you.

  4. t-hamano commented on Apr 9, 2025

    @t-hamano
    Contributor

    If you are using Gutenberg 20.7 or later, you should be able to use non-interactive formats. See #68741

    However, because the summary element itself is interactive, it is not possible to allow interactive elements such as the a element.

  5. added
    [Block] DetailsAffects the Details Block - used to display content which can be shown/hidden
    on Apr 9, 2025
  6. t-hamano commented on Apr 9, 2025

    @t-hamano
    Contributor

    I don't think there is a bug in the latest Details block, so I'm closing this issue. Feel free to comment if I've missed something.

    If you are using Gutenberg 20.7 or later, you should be able to use non-interactive formats.

    Note that this means we still can't use non-interactive elements in WordPress 6.8 because Gutenberg 20.7 will not be bundled with 6.8.

  7. removed
    [Type] BugAn existing feature does not function as intended
    on Apr 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Block] DetailsAffects the Details Block - used to display content which can be shown/hidden

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions