hey all !, i run into a problem washing data on the server side.
in my scene, server encodeStateAsUpdate as snapshot after user click “publish” button, at the same time server should replace/wash some keyword according to the RPC result.
what borthers me is that:
The editor is based on Prosemirror, i can serialize the doc back to prosemirror’state or htmlstring then wash the content, but if i do like that, the doc is less of a collaborative state but more of a initial state, cus i cannot parse the washed state or htmlstring back to snapshot and show version diff, right ? the washed state or htmlstring can only be applied to init the doc and loss all updates once applied on that doc.
i my opinion, i should do something like “y.method()” on the server side to modify doc by update。but i don not have a clue how extract and modify on the server side…
any suggestion ?