Click on Bookmark should set the Cursor

On my website, I use doc.setBookmark() to create a bookmark to show an error to the user.

When the user clicks on it, I’d expect the cursor to be set left or right of it (since it is basically an element of the text), but it isn’t. Is this intended behaviour?

I’ve just pushed a patch that add support for a handleMouseEvent option (which already existed in markText) to addBookmark. If you set it to true, you should get the behavior you want (but note that there does not exist a separate cursor position on both sides of a bookmark, since they do not take up space in the document).

Cool - this is exactly what I want. Thanks a lot!