<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi Scott,</p>
    <p>Welcome to the Oxygen mailing list!<br>
    </p>
    <p>The DITA "Insert image" dialog has a "Figure title" text field.
      Once you fill that, it automatically inserts a figure. So what you
      want may not be that necessary.<br>
    </p>
    <p>Coming back to what you want, the "cc_config.xml" file does not
      have the ability to invoke custom actions in certain contexts.</p>
    <p>There are other settings when creating a DITA framework extension
      which allow you to remove an item from the content completion
      window (for example remove <fig>) and add instead of it a
      custom Author action with the same name which may perform other
      things when invoked: <br>
    </p>
    <p><a class="moz-txt-link-freetext" href="https://blog.oxygenxml.com/topics/custom-author-action-content-completion.html">https://blog.oxygenxml.com/topics/custom-author-action-content-completion.html</a></p>
    <p>For example you can create a custom Author action which inserts
      an XML snippet like this in the document:</p>
    <p>"<fig><title></title><image href="<em
        class="+ topic/ph hi-d/i ph i">${ask('Input URL', </em><em
        class="+ topic/ph hi-d/i ph i"><em class="+ topic/ph hi-d/i ph
          i">relative_url</em>)}</em>"/></fig>"</p>
    <p>Oxygen has support for various editor variables which get
      expanded when used in XML snippets:</p>
    <p><a class="moz-txt-link-freetext" href="https://www.oxygenxml.com/doc/versions/24.1/ug-editor/topics/editor-variables.html">https://www.oxygenxml.com/doc/versions/24.1/ug-editor/topics/editor-variables.html</a></p>
    <p>This "<em class="+ topic/ph hi-d/i ph i">{ask('Input URL', </em><em
        class="+ topic/ph hi-d/i ph i"><em class="+ topic/ph hi-d/i ph
          i">relative_url</em>)}</em>" editor variable would show a very
      simple URL chooser, so it does not show the "Insert image" dialog.</p>
    <p>If you want to show the "Insert image" dialog, you have the
      option to create an Author action which calls a sequence of two or
      more other Author actions:</p>
    <p><a class="moz-txt-link-freetext" href="https://blog.oxygenxml.com/topics/composing-author-actions.html">https://blog.oxygenxml.com/topics/composing-author-actions.html</a><br>
    </p>
    <p>Regards,</p>
    <p>Radu</p>
    <pre class="moz-signature" cols="72">Radu Coravu
Oxygen XML Editor</pre>
    <p></p>
    <div class="moz-cite-prefix">On 10/11/22 18:07, Scott Prentice
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:2a1c1f41-dfe9-ef23-31f4-91a7be72ce9b@leximation.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <p><font face="Verdana">I've added the following to my cc_config
          file ..<br>
          <br>
          <b><elementProposals path="fig" insertElements="image"
            /></b><br>
          <br>
          This properly inserts an <image> element when a
          <fig> is added, but the Insert Image dialog doesn't
          display. I tried including "insert.image" in the
          insertElements attribute, but that didn't do the trick.<br>
          <br>
          Is it possible to get an image to be added when a fig is
          inserted, but also provide the Insert Image dialog?<br>
          <br>
          Thanks!<br>
          ...scott</font><br>
      </p>
      <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>