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

Modify markup tag interfaces and fix some bugs #5442

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

ElectroJr
Copy link
Member

@ElectroJr ElectroJr commented Sep 16, 2024

This PR marks the IMarkupTag interface and associated methods as obsolete, and adds a new IMarkupTagHandler interface and methods in MarkupTagManager that should replace the old ones.

The main reason for this change is to try prevent confusion & bugs, due to users assuming that there are multiple tag instances per rich text tag, when in reality the tag manager only ever creates one instance per tag type. This confusion has already lead to a bug in content, where TextLinkTag assumes that it has an instance per control.

This PR also fixes another bug, where controls that were using the RichTextEntry constructor to add child controls never removed those controls once the entry was removed.

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.

1 participant