Track changes state reset after text mode.

Post here questions and problems related to oXygen frameworks/document types.
sanGeoff
Posts: 42

Track changes state reset after text mode.

Thu Mar 31, 2016 2:37 am

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
Radu
Posts: 5088

Re: Track changes state reset after text mode.

Thu Mar 31, 2016 11:49 am

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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
sanGeoff
Posts: 42

Re: Track changes state reset after text mode.

Fri Apr 01, 2016 8:14 am

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.
Radu
Posts: 5088

Re: Track changes state reset after text mode.

Mon Oct 02, 2017 3:39 pm

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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

Return to “SDK-API, Frameworks - Document Types”

Who is online

Users browsing this forum: Bing [Bot] and 0 guests