Page 1 of 1

Track changes state reset after text mode.

Posted: Thu Mar 31, 2016 2:37 am
by sanGeoff
Track changes state reset after text mode.

Is there a way to preserve the track changes state after using text mode?

Example of the problem
1. Set Options > Review > Track changes always off.
2. Open document in Authoring mode.
3. Enable track changes.
4. switch to text mode and make a small change.
5. Switch back to Authoring mode

Track changes are now off in the file, even though you turned them on before going into text mode. (I don't think any of my other plug-in code is causing this, let me know if you cant reproduce the issue)

Could I implement something in a WSEditorChangeListener maybe? I trued to save and store the tracking state in editorDeactivated but by then the Author page is already gone.

Thanks.

Windows 32-bit - oXygen XML Author - 17.1 - 2016020417

Re: Track changes state reset after text mode.

Posted: Thu Mar 31, 2016 11:49 am
by Radu
Hi,

I understand your use case and I consider that indeed we could improve Oxygen and retain the change tracking state when the user comes back from the Text editing mode. I will add an issue for this.
About using the API, on an opened editor you can add a page changed listener: ro.sync.exml.workspace.api.listeners.WSEditorPageChangedListener which has a editorPageAboutToBeChangedVeto callback.

Regards,
Radu

Re: Track changes state reset after text mode.

Posted: Fri Apr 01, 2016 8:14 am
by sanGeoff
Ahhh, perfect,

Code: Select all

WSEditorPageChangedListener
was exactly what I was looking for, thank you.
I was trying various things in

Code: Select all

WSEditorChangeListener
with no luck.
Now I can easily store the track change state when Author mode is left and then rest it when it goes back to Author mode.

Thanks again.

Re: Track changes state reset after text mode.

Posted: Mon Oct 02, 2017 3:39 pm
by Radu
Hi,

We released Oxygen 19.1 a couple of days ago and it should have a fix for the original reported issue, so with 19.1 you would no longer need to use the API.

Regards,
Radu