I’ve been trying to take a slice from the current document and insert it in a new EditorState but the ways I tried failed. If I run the transaction against the current view it works so my guess there is something that is incompatible between the selection and the new state or something missing in the new state that doesn’t allow the replaceRange.
Since Vue attaches proxies to the data objects, those proxies may be causing some issue. I moved the view outside of the component and it works fine. This is the code.