I have an interest in creating a rich text editing library for the Rust GUI ecosystem. I had previously been looking at porting ProseMirror where it looked like the core of the library was relatively abstracted from the DOM.
Is the same true here?
And more generally, do you think this project would be suitable for porting to a non-browser environment (assuming one is willing to implement the details of things like text layout and selection)?
Yes, this is also something I kept in mind in the design of Wordgard (even more so than ProseMirror). But ideas like that tend to only really work when they are actually used in practice, so I’d be very interested in working people who want to do something like this, to improve the separation and see if more things need to be moved away from depending on the editor component. (One idea would be to provide a generic interface that provides some subset of the Wordgard interface, the part that other implementations would also want to provide somehow, so that the majority of commands can work with any editor that implements it.)