substance / archivist-composer

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

We need a way to query for all container annotations that match a certain container selection #37

Closed michael closed 9 years ago

michael commented 9 years ago

I'm implementing remarks as a containerannotation. Now I want on cursor movement to determine which annotation should be highlighted based on where the cursor is.

So we need something like this:

https://github.com/substance/archivist-composer/blob/master/src/writer_modules/entities/state_handlers.js#L50

michael commented 9 years ago

Something like this:

    var annos = this.annotationsIndex.get({
      container: contentContainer, // optional
      sel: sel,
      type: "remark"
    });
michael commented 9 years ago

thanks for that!