Different editor behaviour when inserting reusable components depending on mode
Posted: Sat Jan 21, 2023 8:40 pm
I have a simple DITA project, with some standard topics and a concept containing a list of definitions. I intend to occasionally use a definition in a standard topic. Each <dlentry> in the glossary has an identifying attribute, and these definitions are visible in the DITA Reusable Components panel.
If I insert a definition from the DITA Reusable Components panel in Text mode, the editor places the parent <dlentry> without any of its children, resulting in a validation error:
If I insert a definition from the DITA Reusable Components panel in Author mode, the editor places all the content encompassed by the <dlentry>. If I switch back to Text mode, the document is valid and I can see that all the children have been inserted as self-closing tags:
Is this a bug in the software or something I have misunderstood? Thanks for any explanation.
If I insert a definition from the DITA Reusable Components panel in Text mode, the editor places the parent <dlentry> without any of its children, resulting in a validation error:
Code: Select all
<dlentry conref = "example_hierarchy.dita#University/accommodation"/>
Code: Select all
<dlentry conref="example_hierarchy.dita#University/accommodation">
<dt/>
<dd/>
</dlentry>