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

Incorrect marker conversion (highlights) on some view elements #10425

Closed
scofalik opened this issue Aug 25, 2021 · 0 comments · Fixed by #10426
Closed

Incorrect marker conversion (highlights) on some view elements #10425

scofalik opened this issue Aug 25, 2021 · 0 comments · Fixed by #10426
Assignees
Labels
package:engine package:image package:table type:bug This issue reports a buggy (incorrect) behavior.

Comments

@scofalik
Copy link
Contributor

📝 Provide detailed reproduction steps (if any)

Image captions and table cells do not receive attributes when marker on them is converted. It turns out that features providing those view elements use setHighlightHandling() but those features have outdated addHighlight and removeHighlight functions. We already fixed (improved) those methods for the default widget util toWidget(). However, since those features do not use toWidget() they have incorrect highlighting.

@scofalik scofalik added type:bug This issue reports a buggy (incorrect) behavior. package:engine package:image package:table labels Aug 25, 2021
@scofalik scofalik self-assigned this Aug 25, 2021
@scofalik scofalik added this to the iteration 47 milestone Sep 6, 2021
scofalik added a commit that referenced this issue Sep 7, 2021
Fix (table, image): Attributes from a marker conversion descriptor will be correctly added on view elements during marker downcast. Closes #10425.

Other (widget): `toWidgetEditable()` will now set the default highlight handling for the editable element.

Other (widget): `setHighlightHandling()` received default parameters for highlight add and remove functions which handles classes and attributes.

MINOR BREAKING CHANGE: `toWidgetEditable()` will now set highlight handling for the editable element. If you used this method in conversion in your custom plugin, it may affect your element styling when there is a marker on that element (e.g. a comment or a suggestion).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package:engine package:image package:table type:bug This issue reports a buggy (incorrect) behavior.
Projects
None yet
1 participant