delete action in toolbar
Having trouble deploying Oxygen XML Web Author? Got a bug to report? Post it all here.
-
- Posts: 22
- Joined: Mon Dec 11, 2023 3:10 pm
delete action in toolbar
Hi,
I'm trying to remove two actions from the toolbar. These actions are : insert a keyref and insert a conref.
In framework file.exf, I added the followling lines but actions are still here.
Could you provide some help ? Thanks
Regards,
arthur
I'm trying to remove two actions from the toolbar. These actions are : insert a keyref and insert a conref.
In framework file.exf, I added the followling lines but actions are still here.
Code: Select all
<removeAction id="insert_reusable_component"/>
<removeAction id="insert.conkeyref"/>
Regards,
arthur
-
- Site Admin
- Posts: 233
- Joined: Wed Aug 30, 2023 2:33 pm
Re: delete action in toolbar
Hello,
For this action:
For the other action the correct id is: "DITA/ReuseKeys" but in this case you already have an issue registered in our internal system - WA-8101 - "Removing the toolbar action "Insert links and variables defined in DITA keys" through an exf file doesn't work".
As a workaround you have to enter this field in your exf file:
and in the removeDITAReuseKeysAction.js file looks like this:
Best,
Cosmin
For this action:
Conref16@2x.png
the correct id is: "reuse.content" ; so in you exf file you have to use:
Code: Select all
<removeAction id="reuse.content"/>
As a workaround you have to enter this field in your exf file:
Code: Select all
<webResources inherit="all">
<addEntry path="${frameworkDir}/removeDITAReuseKeysAction.js" position="before"/>
</webResources>
Code: Select all
sync.ext.Registry.extension.registerActionsHandler(function(editor, actionsConfig) {
setTimeout(() => {
workspace.currentEditor.getActionsManager().unregisterAction('DITA/ReuseKeys');
workspace.currentEditor.getActionsManager().refreshActionsStatus();
});
});
Cosmin
You do not have the required permissions to view the files attached to this post.
Cosmin Eftenie
www.oxygenxml.com
www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service