How to I customize side panel and toolbar

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

How to I customize side panel and toolbar

Post by mitpatoliya » Fri Jun 03, 2016 1:43 pm

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: 206
Joined: Thu Sep 04, 2014 4:22 pm

Re: How to I customize side panel and toolbar

Post by cristi_talau » Fri Jun 03, 2016 5:09 pm

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 » Mon Jun 06, 2016 3:10 pm

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: 206
Joined: Thu Sep 04, 2014 4:22 pm

Re: How to I customize side panel and toolbar

Post by cristi_talau » Mon Jun 06, 2016 4:40 pm

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 » Mon Jun 06, 2016 4:59 pm

Awesome, that does the trick :).

Post Reply