Toolbar Customization of Web Author XML

Having trouble deploying Oxygen XML Web Author? Got a bug to report? Post it all here.
Posts: 10
Joined: Mon Aug 23, 2021 4:26 pm

Toolbar Customization of Web Author XML

Post by Rishabh »


I want to edit the toolbar and add a custom action 'outputclass'. But did not found a way how can I do it. Just implemented the below code and it added my custom action i.e 'outputclass' into the toolbar array only.

function addToDitaToolbar(editor, actionId) {, sync.api.Editor.EventTypes.ACTIONS_LOADED, function(e) {
var actionsConfig = e.actionsConfiguration;

var ditaToolbar = null;
if (actionsConfig.toolbars) {
for (var i = 0; i < actionsConfig.toolbars.length; i++) {
var toolbar = actionsConfig.toolbars;
if ( === "DITA") {
ditaToolbar = toolbar;

if (ditaToolbar) {
id: actionId,
type: "action"


But now the newly outputclass name action is not showing in the toolbar section. It is showing only the built in and DITA tools actions.

So please can anyone tell me how can I add a custom toolbar in web author XML and where to write the functionality of the same.