Action separators in Web Author Toolbar menus

<oXygen/> general issues.
hatchjk
Posts: 16
Joined: Tue Nov 13, 2007 6:02 pm

Action separators in Web Author Toolbar menus

Post by hatchjk » Wed Mar 28, 2018 6:50 pm

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?

cristi_talau
Posts: 211
Joined: Thu Sep 04, 2014 4:22 pm

Re: Action separators in Web Author Toolbar menus

Post by cristi_talau » Wed Mar 28, 2018 7:05 pm

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

hatchjk
Posts: 16
Joined: Tue Nov 13, 2007 6:02 pm

Re: Action separators in Web Author Toolbar menus

Post by hatchjk » Wed Mar 28, 2018 10:05 pm

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.

cristi_talau
Posts: 211
Joined: Thu Sep 04, 2014 4:22 pm

Re: Action separators in Web Author Toolbar menus

Post by cristi_talau » Thu Mar 29, 2018 1:31 pm

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

mihaela
Posts: 205
Joined: Wed May 20, 2009 2:40 pm

Re: Action separators in Web Author Toolbar menus

Post by mihaela » Wed Jun 20, 2018 10:05 am

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
Mihaela Calotescu
http://www.oxygenxml.com

Post Reply