Boris Goldowsky wrote:
> If I have an elementTemplate in my config file that introduces an
> element, say a paragraph, is there a way to force creation of a text
> node in that paragraph so that users can simply click on it and start
> typing? I don't know exactly why, but in some cases my templates seem
> to get text nodes, and sometimes they do not.
>
Just an idea.
Some DTDs, like DITA topic, allow most elements to be completely empty.
Normally this forces you to create a lot of element templates, which is
clearly not desirable.
If this is the case for your DTD, you may want to specify something like
this in your configuration file:
---
<!-- This is needed because in DITA, many elements may be empty
(due to conref?) and this is often very surprising (e.g. strow).
Without this facility (invented for DITA in fact), it would be
necessary to add dozens of elementTemplates to this
configuration. -->
<newElementContent addChildElements="elementOnlyContentNotEmpty" />
---
More info. here:
http://www.xmlmind.com/xmleditor/_distrib/doc/configure/newElementContent.html