substance-legacy
substance-legacy copied to clipboard
Think about a highlight api for surface (implemented by text-property)
We would need such a system when we do a workflow. E.g. when tagging an entity we want to visually preserve the selection while typing into a different search field.
Do we have this now? We are have done this getAnnotations/highlights refactor, which lets the app provide highlights.
not directly... what we have is highlighting the text fragments of a multi-annotation, which must exist as a node in the doc. however what would be also nice to have is a way to programmatically highlight some text, e.g. in our tag entity workflow where we use the current selection. Not high priority but we should talk about this some time.