Comments and track changes allow but rest read-only

Post here questions and problems related to oXygen frameworks/document types.
odovao
Posts: 12
Joined: Tue Oct 04, 2016 12:18 pm

Comments and track changes allow but rest read-only

Post 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
cristi_talau
Posts: 495
Joined: Thu Sep 04, 2014 4:22 pm

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

Post 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
odovao
Posts: 12
Joined: Tue Oct 04, 2016 12:18 pm

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

Post 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
cristi_talau
Posts: 495
Joined: Thu Sep 04, 2014 4:22 pm

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

Post 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
odovao
Posts: 12
Joined: Tue Oct 04, 2016 12:18 pm

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

Post 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
cristi_talau
Posts: 495
Joined: Thu Sep 04, 2014 4:22 pm

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

Post 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
Post Reply