Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.