# Triggering Editor from Custom Component?

**URL:** <https://community.weweb.io/t/triggering-editor-from-custom-component/4018>\
**Category:** Developer corner\
**Created:** [August 25, 2023, 10:23am UTC](https://community.weweb.io/t/triggering-editor-from-custom-component/4018 "2023-08-25T10:23:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Broberto](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/broberto/32/5918_2.png) [@Broberto](https://community.weweb.io/u/Broberto)\
**Post date:** [August 25, 2023, 10:23am UTC](https://community.weweb.io/t/triggering-editor-from-custom-component/4018/1 "2023-08-25T10:23:45Z")

</div>

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?

 ![Screenshot 2023-08-25 at 12.21.52](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/b/b59dff3480957e093c5b8e17775ef4d299fdc390.jpeg)

---

<div class="post-metadata">

**Author:** ![Quentin](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/quentin/32/6_2.png) [@Quentin](https://community.weweb.io/u/Quentin)\
**Post date:** [August 28, 2023, 8:11am UTC](https://community.weweb.io/t/triggering-editor-from-custom-component/4018/2 "2023-08-28T08:11:03Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![dorilama](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/dorilama/32/10403_2.png) [@dorilama](https://community.weweb.io/u/dorilama)\
**Post date:** [August 28, 2023, 8:24am UTC](https://community.weweb.io/t/triggering-editor-from-custom-component/4018/3 "2023-08-28T08:24:22Z")

</div>

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.
