Page 1 of 1

Comments and track changes allow but rest read-only

Posted: Fri Oct 28, 2016 6:27 pm
by odovao
Hi,

We have a requirement of 2 types of users, author and reviewer. Authors can edit everything, whereas reviewers can only enter comments.

I'm using the javascript API to achieve read-only mode with: editor.getActionsManager().invokeOperation('SetReadOnlyStatusOperation',{'read-only': true});

However this mode does not allow comments either. Is it possible to enable comments on read-only mode?

Version: Web Author 18.0.0

Many thanks,

Oscar

Re: Comments and track changes allow but rest read-only

Posted: Mon Oct 31, 2016 3:03 pm
by cristi_talau
Hello,

Web Author stores the comments in the XML document as processing instructions, so adding a comment changes the document.

We have an editing mode which is called "review". To enable it just add "&modes=review" to the Web Author URL.

Please let me know if this mode is suitable for you.

Best,
Cristian

Re: Comments and track changes allow but rest read-only

Posted: Mon Oct 31, 2016 4:29 pm
by odovao
Hi,

The mode review works, but it does not include the number of custom operations (JAVA) that are needed in our review mode.

How do we include our custom operations to the review mode?

Thanks,

Oscar

Re: Comments and track changes allow but rest read-only

Posted: Mon Oct 31, 2016 4:39 pm
by cristi_talau
Hello,

I guess you added your operations in the framework-specific toolbar (e.g. DITA). You can add them in the review toolbar, or create a new toolbar using the same ACTIONS_LOADED event [1], [2].

Best,
Cristian

[1] https://www.oxygenxml.com/maven/com/oxy ... ditor.html
[2] https://www.oxygenxml.com/maven/com/oxy ... ction.html

Re: Comments and track changes allow but rest read-only

Posted: Tue Nov 01, 2016 6:11 pm
by odovao
Thanks Cristian,

the combination of multiple toolbars with review mode works for us. Where can I find information about the different modes?

Oscar

Re: Comments and track changes allow but rest read-only

Posted: Wed Nov 02, 2016 9:56 am
by cristi_talau
Hello,

Currently we have only two modes: edit & review. These modes can be configured when opening a document using the JS API [1] and by passing an URL parameter.

Best,
Cristian

[1] https://www.oxygenxml.com/maven/com/oxy ... ingOptions