Page 1 of 1

Show Comments directly in the Author mode with CSS

Posted: Wed Jan 18, 2012 8:25 pm
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.

Re: Show Comments directly in the Author mode with CSS

Posted: Wed Jan 18, 2012 9:47 pm
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

Re: Show Comments directly in the Author mode with CSS

Posted: Thu Jan 19, 2012 10:14 am
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

Re: Show Comments directly in the Author mode with CSS

Posted: Thu Jan 19, 2012 3:52 pm
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.

Re: Show Comments directly in the Author mode with CSS

Posted: Thu Jan 19, 2012 5:39 pm
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

Re: Show Comments directly in the Author mode with CSS

Posted: Fri Jan 20, 2012 6:56 pm
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.