Create a Confluence Toolbar Dropdown Option
A two-step process for a workaround to influde Javascript to add necessary classes and attributes to the partent of a dropdown.
If a web section does not work correctly in Confluence, there is a workaround. You can include JavaScript (JS) to add necessary classes and attributes to the parent dropdown to make it work. Follow this two-step process to create a dropdown section that includes JS:
Part one: Create a web item
The first step of this process is to add a web item. This creates the main button in the toolbar:
This is the menu button you will see after clicking Add:
Part two: Create a web panel
This process's second step is adding a web panel, which adds the dropdown buttons. Follow these steps:
The dropdown appears like this in the Confluence instance: