We have implemented track changes in our application but now users want the ability to have a "Final without markup". This involves hiding deleted spans and just not showing the inserted decoration on inserted spans.
Character positions are very important to us so I don't think creating a new TextFlow with all the spans that are deleted is an option.
What I really need is a way to hide spans or paragraphs so that as you continue to edit none of the character positions get off.
Any ideas or suggestions?
If I do that it will still take up the space in composition.
I found the bindable property that ensures that a FlowElement isn't merged or deleted. I am going to try to set that to true then store off the content of the element into a scratch variable and set the text of the element to be nothing.
It seems to work pretty well so far. I think I will have to make some additional custimizations for paragraphs and paragraph terminators but it works exactly how I want it to for normal spans.
Europe, Middle East and Africa