How to I customize side panel and toolbar

Post here questions and problems related to editing and publishing DITA content.
mitpatoliya
Posts: 14
Joined: Wed May 25, 2016 4:51 pm

How to I customize side panel and toolbar

Post by mitpatoliya »

Hi, I am using oxygen web author platform for dita editing.
I want to remove "Attributes" section from side panel and want to get rid of dita toolbar appears on top with all dita editing options.

How can I do that using plugin.js. I am already using plugin.js and able to disable few options from editor.

Thanks in advance.
cristi_talau
Posts: 517
Joined: Thu Sep 04, 2014 4:22 pm

Re: How to I customize side panel and toolbar

Post by cristi_talau »

Hello,

In order to delete a side-view you can use the tutorial here.

https://www.oxygenxml.com/maven/com/oxy ... mview.html

If you want to remove the actions from the toolbar you can use the same method as for deleting them from the context menu.

Best,
Cristian
mitpatoliya
Posts: 14
Joined: Wed May 25, 2016 4:51 pm

Re: How to I customize side panel and toolbar

Post by mitpatoliya »

Hello Cristi,

Thanks again for one more quick response.
I tried with following code in my plugin.js but that attribute panel is still there.

Code: Select all

workspace.getViewManager().removeView('attributes-panel-table');
cristi_talau
Posts: 517
Joined: Thu Sep 04, 2014 4:22 pm

Re: How to I customize side panel and toolbar

Post by cristi_talau »

Hello,

The line is correct, but should be executed as soon as your plugin JS file is loaded. For example, try putting it as the first line in the JS file.

Best,
Cristian
mitpatoliya
Posts: 14
Joined: Wed May 25, 2016 4:51 pm

Re: How to I customize side panel and toolbar

Post by mitpatoliya »

Awesome, that does the trick :).
Post Reply