Skip to content

Hidden link remains when deleting link in markdown widget #7640

@saraderic

Description

@saraderic

Describe the bug

When a link is created in the markdown widget in rich text mode and later deleted, the link is not fully removed. The text disappears, but the hyperlink itself remains. This becomes visible when switching to markdown mode.

To Reproduce

  1. Open page with markdown widget
  2. Insert a link inside
  3. Delete the linked text - in rich text mode
  4. Switch to markdown mode to see that hyperlink is not deleted

Expected behavior

Both the text and the hyperlink should be removed when deleting a link.

Screenshots

Untitled.mov

Applicable Versions:

  • Decap CMS version: 3.8.3
  • Git provider: GitHub
  • OS: macOS 26.0.1
  • Browser version: Chrome 141

CMS configuration

{name: caption, widget: markdown, i18n: true, required: false, buttons: ["link"], editor_components: []},

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugcode to address defects in shipped code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions