Skip to content
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

[SuperEditor] Make selected text color strategy consider each colored span (Resolves #2093) #2122

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

angelosilvestre
Copy link
Collaborator

[SuperEditor] Make selected text color strategy consider each colored span. Resolves #2093

SingleColumnLayoutComponentViewModel invokes the SelectedTextColorStrategy using only the default text color for the node as the originalColor argument, ignoring any ColorAttributions. If we return the same original color, we loose the color attribution:

SCR-20240622-oxai

SCR-20240622-oxck

This PR changes SingleColumnLayoutComponentViewModel to consider each colored span and call SelectedTextColorStrategy for each of then:

SCR-20240622-oxlx

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.

[BUG] - selectedTextColorStrategy's originalTextColor ignores ColorAttributions
1 participant