Skip to content

Add linked image support for richtext widget#7779

Merged
martinjagodic merged 6 commits intomainfrom
richtext-linked-image
Apr 14, 2026
Merged

Add linked image support for richtext widget#7779
martinjagodic merged 6 commits intomainfrom
richtext-linked-image

Conversation

@martinjagodic
Copy link
Copy Markdown
Member

Linked images are possible in markdown, but not well-supported in Decap. We're lacking an editor component that would do this, bu the old markdown widget at least rendered these images it added in markdown mode. The new widget did not have that, so this PR adds it. It also improves the image editor component pattern.

To consider: should we also extend the image editor component to allow a link? Or maybe add another option for linked images. I'm open to suggestions

@martinjagodic martinjagodic requested a review from a team as a code owner April 13, 2026 15:46
@martinjagodic martinjagodic requested review from yanthomasdev and removed request for a team April 13, 2026 15:47
Copy link
Copy Markdown
Contributor

@yanthomasdev yanthomasdev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good work @martinjagodic, two small comments from me but overall its looking good.

should we also extend the image editor component to allow a link? Or maybe add another option for linked images. I'm open to suggestions

yeah, I think extending to allow a link would be the best option here. Can be a follow-up.

Comment thread dev-test/config.yml
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure you meant to have committed this?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops, I always forget this

martinjagodic and others added 2 commits April 14, 2026 10:40
Co-authored-by: Yan <61414485+yanthomasdev@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

@yanthomasdev yanthomasdev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@martinjagodic martinjagodic merged commit ada6ca0 into main Apr 14, 2026
6 checks passed
@martinjagodic martinjagodic deleted the richtext-linked-image branch April 14, 2026 11:49
martinjagodic added a commit to poslovnimediji/decap-cms that referenced this pull request Apr 14, 2026
* feat: add linked image support for richtext widget

* chore: revert config.yml

* Apply suggestion from @yanthomasdev

Co-authored-by: Yan <61414485+yanthomasdev@users.noreply.github.com>

* chore: format

* chore: remove useElement

* fix: formatting

---------

Co-authored-by: Yan <61414485+yanthomasdev@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants