Hey, we have been the toDOM exporter to export the doc when saving and fromDOM when importing into a collaborative editor. This worked well in 99% of cases, but there were always some cases that didn’t work quite right. Yesterday I was able to find at least one cause for errors: the trimming of white space at import. Calling fromDOM with the preserveWhitespace option set made that cause go away.
But now I am wondering if exporting/importing using fromDOM is meant to be lossless, or whether it may truncate other things than whitespace as well.