Skip to main content
Known Participant
June 14, 2012
Question

Hidden spans

  • June 14, 2012
  • 1 reply
  • 3461 views

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?

Thanks,

Joel

This topic has been closed for replies.

1 reply

Adobe Employee
June 15, 2012

A simple way may be you set text color of the spans you want to hide as the background color.

Known Participant
June 26, 2012

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.

Thanks