Show Comments directly in the Author mode with CSS

Oxygen general issues.
Vincent
Posts: 52
Joined: Thu Dec 15, 2011 7:56 pm

Show Comments directly in the Author mode with CSS

Post by Vincent »

Hi,

Is there any way to display comments (with CSS) directly in the author mode ?

I tried this first test (as read in the Help):

Code: Select all

@namespace oxy url('http://www.oxygenxml.com/extensions/author');

oxy|comment {
display:block;
color:green;
background-color:none;
}
but nothing happen...
I would like to show comments, at the same way of Word. (As if the comments are placed in the right margin)


Did I miss something ?


Vincent.
adrian
Posts: 2855
Joined: Tue May 17, 2005 4:01 pm

Re: Show Comments directly in the Author mode with CSS

Post by adrian »

Hello,

Go to main menu > Options > Preferences, Editor > Edit modes > Author and make sure that the option Show comments is enabled.

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
adrian
Posts: 2855
Joined: Tue May 17, 2005 4:01 pm

Re: Show Comments directly in the Author mode with CSS

Post by adrian »

Hi,

Please note that both this option and the CSS snippet you are using refer to XML comments, not Oxygen comments(which are PIs) from the Author mode.
e.g.

Code: Select all

<!-- This is an XML comment -->
The Oxygen comment PIs cannot be handled this way from the CSS.

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Vincent
Posts: 52
Joined: Thu Dec 15, 2011 7:56 pm

Re: Show Comments directly in the Author mode with CSS

Post by Vincent »

Thank you Adrian,

In fact, I was talking about Oxygen comments.

So, Is there a way to handle those comments (Oxygen) otherwise than with the "Manage Comments" ?

As I said, my user would like to show comments, at the same way of Microsoft Word. (In a block in the right margin)

Thank you for your help,
Vincent.
Radu
Posts: 9059
Joined: Fri Jul 09, 2004 5:18 pm

Re: Show Comments directly in the Author mode with CSS

Post by Radu »

Hi Vincent,

For Oxygen 14 we plan to provide a special view for viewing and performing operations (accept/reject/remote) for all tracked changes + comments.
We plan for this view to be synchronized with modifications made in the Author page and with the caret move.
So even if we will not have the visual bubble display of comment text in the Author page as is MS Office, this extra view will help the user quickly see the commented text for the comment over which the caret is placed.

We also have enough API for you to create a custom view and create such a functionality yourself using data obtained from the ro.sync.ecss.extensions.api.AuthorReviewController interface.
If you want you can contact us using the support@oxygenxml.com email address and we'll give you sample Java code to get you started.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Vincent
Posts: 52
Joined: Thu Dec 15, 2011 7:56 pm

Re: Show Comments directly in the Author mode with CSS

Post by Vincent »

Thank you Radu,

I'm starting to investigate the SDK and the APIs.

Surely, I will come back later for further questions !


Vincent.
Post Reply