[oXygen-user] Configuration: When a <fig> is inserted, it should contain a <title> element
Oxygen XML Editor Support (Radu Coravu)
support at oxygenxml.com
Wed Apr 11 03:29:15 CDT 2018
Hi Kris,
Besides modifying the DTDs, you should try to create your own action to
insert a section and add the action to the content completion window.
Here are some steps:
1) Go to the Preferences->"Document Type Association" page and edit or
extend and edit the "DITA" framework configuration.
2) In the "Author" tab there is an "Actions" tab. Create a new action
with a specified ID and name.
Choose for the action an activation xpath which specifies that it should
be enabled only in places where figures can be inserted. You can use a
special extension we have for it:
https://www.oxygenxml.com/doc/versions/20.0/ug-editor/topics/oxy-allows-child-element.html
Choose to run an "InsertFragmentOperation" which inserts your XML
fragment when the XPath is enabled. I'm attaching a screenshot with how
this looks like on my side.
3) In the "Author->Content Completion" tab there is a "Remove content
completion items" list to which you can add "fig" (because you want to
remove the old entry from the list).
Then in the "Available actions" list there you will find the
"fig_with_title" which you can copy to the "Current actions" list with
the display name of "fig".
4) Save all your changes and try it out, open a topic, ENTER, in the
content completion window type "fig" and your action should be there (it
has a different icon than the older "fig" entry).
This works similar for section with title.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
On 4/10/2018 10:16 PM, Kristen James Eberlein wrote:
> How can I configure this in oXygen Author 17.1? I am using a framework.
> Thanks.
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: actionToInsertFig.png
Type: image/png
Size: 42436 bytes
Desc: not available
URL: <http://www.oxygenxml.com/pipermail/oxygen-user/attachments/20180411/210b5154/attachment.png>
More information about the oXygen-user
mailing list