I’m thinking of either making a settings tab open by default, or maybe be able to trigger it somehow upon click on the icon I’ve made in my placeholder? Would that be possible?
Hey, that’s not possible, as the app is contained in an iframe inside the editor. Also, that could mean security issues as you could manipulate the user’s editor to your liking.
2 Likes
The editor document is accessible with wwLib.getEditorDocument()
. You could probably hack this with wwLib.getEditorDocument().querySelector('.edition-panel svg[title="Settings"]').parentElement.click()
but it can break at any time.
Because at the moment custom components are used inside the organization where you work/collaborate there souldn’t be the need of this, simply display the message and explain what to do to the person using it.
2 Likes