I've seen this posted on other forums, but I'm running into the following issue with the expand macro.
We use the expand macro to create drop downs in the SOPs, but it prevents our users from command + f on their macs or ctrl + f on their chrome books if the answer is within a drop down.
I'm looking for a way to expand / collapse all dropdowns with one click of a button instead of having to select each one individually.
Before there was a javascript recommendation within a bookmark, but it doesn't work: javascript:(function()%7B%24(%22.expand-control%22).each(function()%7B%20%24(this).trigger(%22click%22)%3B%7D)%7D)()
For anyone else like me stuck with these frustrating collapsed sections: the JS that works with the new markup is: document.querySelectorAll("[data-node-type='expand'][data-expanded='false']").forEach(e=>e.querySelector("button").click())
So the bookmarklet you want is (replace : with a real colon when you create the bookmark):
javascript:(function()%7Bdocument.querySelectorAll(%22%5Bdata-node-type%3D'expand'%5D%5Bdata-expanded%3D'false'%5D%22).forEach(e%3D%3Ee.querySelector(%22button%22).click())%7D)()
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Jacob Schwartz !
As I understand, you need to be able to expand all Expand Macros within your pages. What I can tell you is that this is not natively available for Confluence Cloud.
We have a standing Suggestion that tackles this very need. You can check the suggestion here:
I was also unable to find third-party addons that would provide such functionality.
I understand that this is not a final solution, but I believe it explains the current situation of this feature.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the update here. I see that the last comment is in June, do you have any idea on when this is targeted to rollout?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for getting back to me @Jacob Schwartz !
Currently, I do not have a rollout schedule for this feature.
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.