Page 1 of 1

Action separators in Web Author Toolbar menus

Posted: Wed Mar 28, 2018 6:50 pm
by hatchjk
Is there an acceptable method for getting Web Author to recognize action.separator instances in Toolbar menus? Or, is there a way to generate action separation in Toolbar menus in Web Author?

Re: Action separators in Web Author Toolbar menus

Posted: Wed Mar 28, 2018 7:05 pm
by cristi_talau
Hello,

In Web Author some toolbars are built in and others are configured in the framework. For those configured in the framework, the action separators are displayed by default. There seems to be a problem with your Web Author deployment. Some information would be helpful to troubleshoot the problem:
- What version of Web Author do you use?
- Do you see any errors in the Chrome's Dev Tools? (Press F12 and go to the Console tab).
- Does this happen if you open a file that uses a builtin framework?
- Does this happen if you remove all the custom plugins (you can leave the ones that came with Web Author)?

Best,
Cristian

Re: Action separators in Web Author Toolbar menus

Posted: Wed Mar 28, 2018 10:05 pm
by hatchjk
Cristian,

We're running Web Author 18.1, build 2016101802.

No errors being thrown to Console. We have no custom plugins deployed.

What I'm referring to is visibility of action.separator on drop-down menus from the Toolbar associated with the custom document type framework we've developed. The action.separators are visible on the Toolbar at the top (parent) level between action.groups, but not visible on any child-level drop-down menus.

Re: Action separators in Web Author Toolbar menus

Posted: Thu Mar 29, 2018 1:31 pm
by cristi_talau
Hello,

I was able to reproduce the problem regarding the toolbar separators. We are going to fix this problem in the next v20.0 maintenance build. Meanwhile, for your version, you can load the code below in Web Author [1].

Code: Select all


if (sync.api.Version === "v18.1.0") {
goog.ui.ToolbarMenuButton.prototype.getChildCount = function() {
return this.getItemCount();
};
goog.ui.ToolbarMenuButton.prototype.getChildAt = function(x) {
return this.getItemAt(x);
};
goog.dom.appendChild(document.body, goog.dom.createDom('style', null, '.goog-menuseparator:last-child { display: none; }'));
}
Best,
Cristian

[1] https://www.oxygenxml.com/doc/versions/ ... ng_js.html

Re: Action separators in Web Author Toolbar menus

Posted: Wed Jun 20, 2018 10:05 am
by mihaela
Hello,

I am updating this thread to let you know that Oxygen XML Web Author 20.1 was release and includes the fix for the action separators problem.

You can find more details about the new version on our website:
https://www.oxygenxml.com/xml_web_author/whats_new.html

Best Regards,
Mihaela