Closed michael closed 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
Something like this:
var annos = this.annotationsIndex.get({ container: contentContainer, // optional sel: sel, type: "remark" });
thanks for that!
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