y-prosemirror icon indicating copy to clipboard operation
y-prosemirror copied to clipboard

Get mapping without sync-plugin

Open DanSnow opened this issue 4 years ago • 2 comments

Checklist

[ ] Are you reporting a bug? Use github issues for bug reports and feature requests. For general questions, please use https://discuss.yjs.dev/ [ ] Try to report your issue in the correct repository. Yjs consists of many modules. When in doubt, report it to https://github.com/yjs/yjs/issues/

Is your feature request related to a problem? Please describe. I want to use relativePositionToAbsoultePosition and absolutePositionToRelativePosition at the websocket server side. These helper functions require a mapping parameter. Currently, I just copy and paste createNodeFromYElement and its related functions from sync-plugin.js but since it's private API. I want to ask is it possible to expose a public API to do get the mapping from Y.js document?

Describe the solution you'd like Expose a helper function to get the mapping

Describe alternatives you've considered

Additional context

DanSnow avatar Jun 28 '21 02:06 DanSnow

This would be useful for us as well to work with relative positions on the server side.

jamesopti avatar Jan 19 '22 04:01 jamesopti

Any plans with this in 2023?

jjgmckenzie avatar May 29 '23 02:05 jjgmckenzie