substance / archivist-composer

A composer for interviews, used by the archivist project
MIT License
2 stars 0 forks source link

Tool doesn't get updating accordingly after toggling annotation #12

Closed michael closed 9 years ago

michael commented 9 years ago

Now selections are preserved after toggling / untoggling an annotation (e.g. bold). However the tool only listens to selection changes to verify it's active state.

When reapplying of the prev. selection after transaction save, no selection:changed event get fired.

tx.save({ selection: Selection.create(path, range[0], range[1]) });

Maybe it should fire? Or we need another way of triggering the tools update.

obuchtala commented 9 years ago

It should fire... but from within the surface... there is a onDocumentChange handler which should do that. Will fix later.