Removing highlight from element should only require highlight id #4197
Labels
package:engine
status:discussion
type:improvement
This issue reports a possible enhancement of an existing feature.
Milestone
Elements can provide custom properties
setHighlight
andremoveHighlight
to handle highlighting by themselves. Currently, converters passHighlightDescriptor
object to both functions. This works well when converters are adding and removing highlights. When there is a separate logic to remove the highlight it must provide whole descriptor toremoveHighlight
method which is not so convenient. Maybe it would be better if:setHighlight
will accept full descriptor to set the highlight (as it is now),removeHighlight
accepts only the descriptor id to be removed.The text was updated successfully, but these errors were encountered: