Hi,
i’m trying to figure how i can set up this:
- user clicks on a document
- a node (determined by the attribute of some ancestor node) is made editable and replaced by a pm instance with same content
- selection is restored in the pm instance, so the user gets the expected caret in the right place
I have two approaches:
- insert a span before pm instance and posFromDOM it after to do manipulations
- calculate pos myself
Each of which requires a lot of work Is there anything easier ?