Hi Frank,
I think you made this specific configuration in the Oxygen DITA
framework specific cc_config.xml file.
Regards,
Radu
Radu Coravu
Oxygen XML Editor
On 1/21/25 10:06, Frank Dissinger wrote:
Hi Radu,
Thank you for your reply.
Yes, I think I configured Oxygen to automatically insert <p> as a
child when inserting <note>. And, in reply to Stefan Jung’s question,
I wrap elements in <note> by either pressing Ctrl+E (my own shortcut
perhaps) or selecting text and pressing ENTER.
I must admit that I cannot remember where in Oxygen I configured this.
I checked the options under Options > Preferences > Editor > Content
Completion, but cannot find it.
What I want to achieve is that the <p> child gets inserted only when I
add a new <note> element, but not when I wrap an element in <note>.
Can this be done?
Best regards,
Frank
*Von:*oXygen-user <oxygen-user-boun...@oxygenxml.com> *Im Auftrag von
*Oxygen XML Editor Support (Radu Coravu)
*Gesendet:* Dienstag, 21. Januar 2025 05:47
*An:* oxygen-user@oxygenxml.com
*Betreff:* Re: [oXygen-user] [OXYGEN-24088] Wrapping <p> into <note>
produces invalid DITA code
Hi Frank,
By default with a stock Oxygen installation and default DITA XML
editing, wrapping a <p> inside a <note> does not automatically add an
extra paragraph like note > p > p. That's because when inserting a
<note> by default no paragraph is inserted inside it.
Is it possible you made changes to the content completion
configuration file so that a note has a required paragraph child element?
Regards,
Radu
Radu Coravu
Oxygen XML Editor
On 1/20/25 19:02, Frank Dissinger wrote:
Hi all,
When I insert a <note> element, <p> is added automatically as a
child, which is the desired behaviour for me.
However, wrapping a <p> into <note>, produces the structure
<note><p><p>, which is invalid because two <p> elements are nested.
How can I prevent that another <p> is added as a child of <note>
just for the wrapping operation (and not for inserting)?
Freundliche Grüße | Best regards
*Frank Dissinger*
Documentation Manager
..........................................
*CGS ORIS GmbH*
*Email *frank.dissin...@cgs-oris.com
<mailto:frank.dissin...@cgs-oris.com> | *Web* www.cgs-oris.com
<http://www.cgs-oris.com/>
*Address*Kettelerstrasse 24 | 63512 Hainburg | Germany
*Phone*+49 6182 9626-0 | *Fax* +49 6182 9626-99
*Commercial register*Offenbach, HRB no. 21495
*Managing directors*Bernd Rückert, Christoph Thommessen
_______________________________________________
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