<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi Frank,</p>
    <p><br>
    </p>
    <p>Let's split your use cases in two:</p>
    <p>1) Inserting elements using Oxygen's actions (toolbars, menus)</p>
    <p>2) Inserting elements using the content completion window.</p>
    <p><br>
    </p>
    <p>1)<br>
    </p>
    <p><br>
    </p>
    <p>Let's take table insertion for example:</p>
    <p><br>
    </p>
    <p>If you edit your DITA framework extension that is defined in the
      Preferences->"Document Type Association" page, it has an
      "Author=>Actions" tab.</p>
    <p>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/>".</p>
    <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.</p>
    <p><br>
    </p>
    <p>2) Inserting elements like <info> using the content
      completion window.</p>
    <p>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:</p>
    <p><a class="moz-txt-link-freetext" href="https://www.oxygenxml.com/doc/ug-editor/topics/configure-elements-attr-cc-individually.html#configure-elements-attr-cc-individually__examples_configuring_elements">https://www.oxygenxml.com/doc/ug-editor/topics/configure-elements-attr-cc-individually.html#configure-elements-attr-cc-individually__examples_configuring_elements</a></p>
    <p><br>
    </p>
    <p>Hope this helps.<br>
    </p>
    <p><br>
    </p>
    <p>Regards,</p>
    <p>Radu</p>
    <p><br>
    </p>
    <pre class="moz-signature" cols="72">Radu Coravu
Oxygen XML Editor</pre>
    <p></p>
    <div class="moz-cite-prefix">On 1/24/23 11:49, Frank Dissinger
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:2eb96caf-d156-45b2-5dce-655fb9d39efb@cgs-oris.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <p>Hi list,</p>
      <p><br>
      </p>
      <p>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?<br>
      </p>
      <p><br>
      </p>
      <p>Regards,</p>
      <p>Frank<br>
      </p>
      <div class="moz-signature">-- <br>
        <meta http-equiv="content-type" content="text/html;
          charset=UTF-8">
        <title></title>
        <div class="moz-signature">
          <style>div.signature {font-family: Verdana, sans-serif; font-size: 10pt; color: #7F8C8D; padding-top: 0.4em;}div.name {padding-bottom: 0.8em; padding-top: 0.8em}div.contact {padding-bottom: 0.8em;}p {margin: 0;}span.separator {border-top-style: dotted; border-top-width: 2px; padding-top: 0.6em;}a {color: inherit}</style>
          <div class="signature">
            <div class="name">
              <p><strong>Frank Dissinger</strong></p>
              <p>Documentation Manager</p>
              <p>....................................................................</p>
            </div>
            <div class="contact">
              <p><strong>CGS Publishing Technologies International GmbH</strong></p>
              <p><strong>Email </strong><a
                  href="mailto:frank.dissinger@cgs-oris.com"
                  target="_blank" class="moz-txt-link-freetext"
                  moz-do-not-send="true">frank.dissinger@cgs-oris.com</a>
                | <strong>Web</strong> <a
                  href="http://www.cgs-oris.com/" target="_blank"
                  moz-do-not-send="true">www.cgs-oris.com</a></p>
              <p><strong>Address</strong> Kettelerstr. 24 | D-63512
                Hainburg | Germany</p>
              <p><strong>Phone</strong> +49 6182 9626-27 | <strong>Fax</strong>
                +49 6182 9626-99</p>
              <p><strong>Commercial register</strong> Offenbach, HRB no.
                21495</p>
              <p><strong>Managing directors</strong> Bernd Rückert,
                Christoph Thommessen</p>
              <p><br>
              </p>
              <a href="https://www.cgs-oris.com/signatur"
                moz-do-not-send="true"><img
                  alt="https://www.cgs-oris.com/Signatur.png"
                  longdesc="https://www.cgs-oris.com/signatur"
                  src="https://www.cgs-oris.com/Signatur.png"
                  moz-do-not-send="true" width="394" height="200"></a> </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
oXygen-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:oXygen-user@oxygenxml.com">oXygen-user@oxygenxml.com</a>
<a class="moz-txt-link-freetext" href="https://www.oxygenxml.com/mailman/listinfo/oxygen-user">https://www.oxygenxml.com/mailman/listinfo/oxygen-user</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">
</pre>
  </body>
</html>