Configuring the insert tag selector

Post here questions and problems related to editing and publishing DITA content.
wmaclean
Posts: 48
Joined: Sat Jan 04, 2020 1:17 am

Configuring the insert tag selector

Post by wmaclean »

Hello,
By the insert tag selector, I am referring to this:
image.png
image.png (39.5 KiB) Viewed 1679 times
Some questions:
  • Can it be stretched out more than shown here? That was the biggest I could get it. We've had a request to see if it can show all available tags in a given context.
  • Can it be configured so it always opens up at it's maximum openness?
  • Can it be configured to hide, not just gray out, invalid tags?
  • Can it be configured to insert the selected tag with just one mouse click?
Thank you,
Will
Radu
Posts: 9046
Joined: Fri Jul 09, 2004 5:18 pm

Re: Configuring the insert tag selector

Post by Radu »

Hi Will,

Please see some answers below:
Can it be stretched out more than shown here? That was the biggest I could get it. We've had a request to see if it can show all available tags in a given context.
No, it has a maximum height limit.
Can it be configured so it always opens up at it's maximum openness?
It should preserve this height during the editing session, but probably will not preserve it after restarting Oxygen.
We do have a side view with the same functionality named "Elements", it can be shown from the "Window->Show view" main menu. Maybe you can use that side view instead, dock it on the side so that it spans from the top of the editor to the bottom.
Can it be configured to hide, not just gray out, invalid tags?
Yes, there is a setting for this in the Oxygen Preferences->"Editor / Edit Modes / Author / Schema-Aware" page. The setting is named "Show all possible elements in the content completion list".
Can it be configured to insert the selected tag with just one mouse click?
No, you need to double click or press ENTER. Same for the elements view. One click insertion would make it quite hard to select elements just to find out more information about them in the documentation window or just to move the selection while scrolling the list.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
wmaclean
Posts: 48
Joined: Sat Jan 04, 2020 1:17 am

Re: Configuring the insert tag selector

Post by wmaclean »

Hi Radu,
Thank you!

-Will
vishwavaranasi
Posts: 144
Joined: Fri Feb 28, 2020 4:02 pm

Re: Configuring the insert tag selector

Post by vishwavaranasi »

Hi Radu,

what is the parameter name for this "showAllPossibleElementsInCCList" to make "false" using pluginWorkspaceAccess.setGlobalObjectProperty?


Thanks,
vishwa
Thanks,
vishwa
Radu
Posts: 9046
Joined: Fri Jul 09, 2004 5:18 pm

Re: Configuring the insert tag selector

Post by Radu »

Hi,

The code would be something like:

Code: Select all

    AuthorSchemaAwareOptions schemaAwareOptions = new AuthorSchemaAwareOptions();
    schemaAwareOptions.setShowAllPossibleElementsInCCList(false);
    PluginWorkspaceProvider.getPluginWorkspace().setGlobalObjectProperty("author.editing.mode", schemaAwareOptions);
or you can use our API to impose options from an XML options file:

Code: Select all

PluginWorkspaceProvider.getPluginWorkspace().importGlobalOptions(optionsFile)
The XML options file can be generated using our main menu "Options->Export Global Options" action.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
vishwavaranasi
Posts: 144
Joined: Fri Feb 28, 2020 4:02 pm

Re: Configuring the insert tag selector

Post by vishwavaranasi »

Thanks Radu , that worked for us.
Thanks,
vishwa
Post Reply