Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How do I know if Collaborative editing is enbled

Jan Revis
Contributor
June 27, 2019

I need to be able to detect if collaborative editing is enabled in a custom action I have created.  The only method I can find is to use AJS.Meta.getBoolean('shared-drafts'), however, that meta field is only available in the page context.  Is there a way to detect if shared drafts are enabled in the JAVA API?

1 answer

0 votes
Bill Bailey
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 28, 2019

Quickest way that requires no admin access. Open the same page in two browser tabs, Then edit both. You should now see two icons with your initial in the upper right.

Jan Revis
Contributor
June 28, 2019

Hi Bill.  Thank you for responding.  I'm actually looking for a programmatic way to do it.  I have an add-on that would potentially have different behaviors based on whether shared drafts was enabled.  The problem with using javascript is the shared-drafts meta tag is only available in a limited number of contexts (page view and edit).

Bill Bailey
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 28, 2019

Well is there a way to pull the admin console settings as a java object, and then enable your javascript on the setting of that object?

It is a global setting for the confluence-collaborative-editor-plugin. But I did a quick search and not finding something in the API docs (often happens). Maybe someone smarter than me can help?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events