Hi Frank,
Let's split your use cases in two:
1) Inserting elements using Oxygen's actions (toolbars, menus)
2) Inserting elements using the content completion window.
1)
Let's take table insertion for example:
If you edit your DITA framework extension that is defined in the
Preferences->"Document Type Association" page, it has an
"Author=>Actions" tab.
If you edit the action "insert.table", it calls an operation named
"ro.sync.ecss.extensions.dita.topic.table.InsertTableOperation" with
certain parameters. One of the parameters is named "cellFragment", you
can set its value to "<p/>".
There are other ways to change a table, for example insert a new column,
insert a new row. So actions like "insert.table.row.below" or
"insert.table.column.after" which also need to be changed accordingly.
2) Inserting elements like <info> using the content completion window.
Your DITA extension framework customization can contain a
"cc_config.xml" file which defines that for certain elements, if they
are inserted, another element should be inserted inside them as well:
https://www.oxygenxml.com/doc/ug-editor/topics/configure-elements-attr-cc-individually.html#configure-elements-attr-cc-individually__examples_configuring_elements
Hope this helps.
Regards,
Radu
Radu Coravu
Oxygen XML Editor
On 1/24/23 11:49, Frank Dissinger wrote:
Hi list,
Whenever this is valid, I wrap text in a <p> element. I would like
oXygen to automatically insert <p> as a child element when inserting
<table>, <simpletable> (for the table cells of course), <info>,
<stepresult>, <stepxmp>... and many more. How do I do this?
Regards,
Frank
--
*Frank Dissinger*
Documentation Manager
....................................................................
*CGS Publishing Technologies International GmbH*
*Email *frank.dissin...@cgs-oris.com | *Web* www.cgs-oris.com
<http://www.cgs-oris.com/>
*Address* Kettelerstr. 24 | D-63512 Hainburg | Germany
*Phone* +49 6182 9626-27 | *Fax* +49 6182 9626-99
*Commercial register* Offenbach, HRB no. 21495
*Managing directors* Bernd Rückert, Christoph Thommessen
https://www.cgs-oris.com/Signatur.png <https://www.cgs-oris.com/signatur>
_______________________________________________
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user
_______________________________________________
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user