I want to detect the confluence page mode whether EDIT or VIEW in my confluence macro plugin code. Help me to find out the way. Thanks.
This sounds like a very broken requirement. I can't think of a single useful reason to do this, and it's useless anyway.
When a macro is in "view", your code provides the users with functions. When a macro is in edit mode, it's actually just a display for capturing the parameters, there's no code running when it's on the page. It will run in the preview, but what's the point in doing that?
Thanks Nic for your quick response.
I am trying to develop a macro for confluence. It has one parameter (i.e any non-admin group).
When user selects the group he should be able to join to the selected group.
So this functionality I want to provide through macro insert/preview while editing the page and not on the page view. If I can detect the page edit then I will use the condition in macro execute() method to execute action on page edit only.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Gliffy seems to be able to render previews in edit mode without image markup in their macro body. Any idea how they accomplish this? Their macro rich-text bodies are empty if you examine the page storage format...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.