substance / substance-legacy

Towards open digital publishing
http://substance.io
928 stars 74 forks source link

Think about a highlight api for surface (implemented by text-property) #356

Open michael opened 9 years ago

michael commented 9 years ago

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.

obuchtala commented 9 years ago

Do we have this now? We are have done this getAnnotations/highlights refactor, which lets the app provide highlights.

michael commented 9 years ago

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.