Skip to content

UX: keep marks when using emoji input rules on rich editor #33058

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 4, 2025

Conversation

renato
Copy link
Contributor

@renato renato commented Jun 3, 2025

When typing :emoji: or :) to create emoji nodes through ProseMirror inputrules, this PR changes the handler to enforce the use of the existing marks in the current caret position (if it's a link, bold, etc) so the newly created emoji is marked with the same marks(s).

Copy link
Contributor

@jjaffeux jjaffeux left a comment

Choose a reason for hiding this comment

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

Looks good, I think commit description could be made clearer. It's a little bit cryptic atm.

@renato renato merged commit 1633d77 into main Jun 4, 2025
19 checks passed
@renato renato deleted the ux_emoji_rich_editor_marks branch June 4, 2025 10:18
martin-brennan pushed a commit that referenced this pull request Jun 10, 2025
When typing `:emoji:` or `:)` to create emoji nodes through ProseMirror
inputrules, this PR changes the handler to enforce the use of the
existing marks in the current caret position (if it's a link, bold, etc)
so the newly created emoji is marked with the same marks(s).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants