Skip to content

fix: show Link sublayer in rich text layers tree#79

Merged
liamwalder merged 2 commits intodevelopfrom
fix/rich-text-link-style-sublayer
Mar 24, 2026
Merged

fix: show Link sublayer in rich text layers tree#79
liamwalder merged 2 commits intodevelopfrom
fix/rich-text-link-style-sublayer

Conversation

@lunenas
Copy link
Copy Markdown
Collaborator

@lunenas lunenas commented Mar 23, 2026

Summary

Fix the Link sublayer not appearing in the layers tree for rich text layers,
preventing users from editing link styling on the canvas.

Screenshot 2026-03-23 at 16 46 27

Changes

  • Normalize TipTap mark name richTextLink to style key link in extractInlineMarks
  • Add MARK_NAME_MAP for consistent mark-to-style-key mapping

Test plan

  • Add a rich text layer with a link in the content
  • Verify the "Link" sublayer appears in the layers tree under the paragraph
  • Select the Link sublayer and confirm typography/backgrounds design panels are shown
  • Change link color or text decoration and verify it applies on the canvas

Made with Cursor

The TipTap mark name (richTextLink) was not mapped to the
style key (link), so the Link sublayer never appeared in the
layers tree and its classes could not be edited on the canvas.

Made-with: Cursor
@lunenas lunenas self-assigned this Mar 23, 2026
@liamwalder liamwalder merged commit ce12a85 into develop Mar 24, 2026
2 checks passed
@liamwalder liamwalder deleted the fix/rich-text-link-style-sublayer branch March 24, 2026 08:08
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