How to add custom action as the first element in Content Completion Assistant

Post here questions and problems related to editing and publishing DITA content.
namrata_mahendrakar
Posts: 2
Joined: Wed Nov 13, 2024 4:13 pm

How to add custom action as the first element in Content Completion Assistant

Post by namrata_mahendrakar »

Hi Team,
I’m trying to add a custom action as the first element in the Content Completion Assistant in Oxygen XML Editor, and I’d like it to appear as one of the options in the dropdown when users trigger content completion (By pressing Enter Key).
However, I’d like this action to be directly accessible in the Content Completion Assistant, ideally at the top of the suggestions. Like it does for New Step element

Could you advise if there’s a specific configuration or syntax required to get custom actions to show up in the Content Completion menu? Any examples or guidance would be greatly appreciated.
Thank you!
Attachments
cc.png
cc.png (31.41 KiB) Viewed 204 times
Radu
Posts: 9273
Joined: Fri Jul 09, 2004 5:18 pm

Re: How to add custom action as the first element in Content Completion Assistant

Post by Radu »

Hi,
You can add a custom Author action in the content completion window:
https://blog.oxygenxml.com/topics/custo ... etion.html
You cannot precisely place it somewhere, usually the actions in the content completion window are alphabetically sorted, with the special split actions placed on top.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
namrata_mahendrakar
Posts: 2
Joined: Wed Nov 13, 2024 4:13 pm

Re: How to add custom action as the first element in Content Completion Assistant

Post by namrata_mahendrakar »

Thanks for the response Radu.
Can we create a custom action that can benefit from the same split actions treatment (always to be placed on top)?
Radu
Posts: 9273
Joined: Fri Jul 09, 2004 5:18 pm

Re: How to add custom action as the first element in Content Completion Assistant

Post by Radu »

Hi,
I do not see a way in which this could be done using our current customization possibilities.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply