Program is a collab editor using tracked changes.
The goal is to introduce slightly different formatting on some clients (tracked changes are displayed differently).
My thought was that we could utilize slightly differing schemas to accomplish this (same mark/node types, just rendering them to the DOM with different classes and attributes). This works if I re-render the whole document, but trying to apply transactions when there is a slightly different schema is yielding Transform Errors: Invalid content…
I can take a different approach and alter the schema based on passed attributes, but I was hoping to just dynamically trigger different schemas to render the document slightly differently. I thought it would work as long as the node/mark types remain the same, even if the spec differs slightly. Was this an erroneous assumption?