pycrdt icon indicating copy to clipboard operation
pycrdt copied to clipboard

xml support

Open iliatimofeev opened this issue 6 months ago • 1 comments

Problem

I'm working on a Python agent, that needs to edit state of richtext. On js side, I can use y-prosemirror but the document schema is based on YXmlFragment which is not supported by pycrdt.

Proposed Solution

Any plans to support the full range of Yjs types?

export const YXmlElementRefID = 3
export const YXmlFragmentRefID = 4
export const YXmlHookRefID = 5
export const YXmlTextRefID = 6

Additional context

From https://github.com/jupyter-server/team-compass/issues/55 I know that the XML part is not used internally.

Unfortunately, I'm new to Yjs and have zero experience with Rust. I can give it a try under some guidance, but I'm not sure that would be the best solution for the mantainer :)

Maybe someone already did it, and I can use a fork?

iliatimofeev avatar Aug 16 '24 12:08 iliatimofeev