I am trying to develop a tool for annotating documents, I feel that the full editor would be a bit of an overkill for this project. I was considering using the
@codemirror/state libraries to keep track of the annotaions and decorations. However, I’m a bit stuck on how to create a readonly view from it. Is this possible and would you recommend it?
All I want is the mapping
(state) => html without the editing features (possibly handling selection ranges).