Page 1 of 1
How to I customize side panel and toolbar
Posted: Fri Jun 03, 2016 1:43 pm
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.
Re: How to I customize side panel and toolbar
Posted: Fri Jun 03, 2016 5:09 pm
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
Re: How to I customize side panel and toolbar
Posted: Mon Jun 06, 2016 3:10 pm
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');
Re: How to I customize side panel and toolbar
Posted: Mon Jun 06, 2016 4:40 pm
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
Re: How to I customize side panel and toolbar
Posted: Mon Jun 06, 2016 4:59 pm
by mitpatoliya
Awesome, that does the trick
.