Page 1 of 1
Unsaved edits
Posted: Fri Sep 15, 2023 7:31 pm
by sderrick
We are using the Author framework, 24.0.0.2.
How do I get a list documents being edited and which documents have unsaved edits.
thanks,
Scott
Re: Unsaved edits
Posted: Sat Sep 16, 2023 8:58 pm
by sderrick
I figured it out.
using Editorpage.isModified()
Scott
Re: Unsaved edits
Posted: Mon Sep 18, 2023 7:04 am
by Radu
Hi Scott,
Right, thanks for posting also the solution.
From a plugin you would get all editor locations "ro.sync.exml.workspace.api.PluginWorkspace.getAllEditorLocations(int)" then iterate through the URLs, obtain the editor for a particular URL "ro.sync.exml.workspace.api.PluginWorkspace.getEditorAccess(URL, int)" and then on the WSEdtorAccess call the "isModified()" method.
Regards,
Radu