<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p><font face="Verdana">Thanks, Radu!</font></p>
<p><font face="Verdana">I appreciate the information and additional
options. Will look into what works best for this client.</font></p>
<p><font face="Verdana">Regards,<br>
...scott<br>
</font></p>
<p><font face="Verdana"></font><br>
</p>
<div class="moz-cite-prefix">On 10/11/22 10:28 PM, Oxygen XML Editor
Support (Radu Coravu) wrote:<br>
</div>
<blockquote type="cite"
cite="mid:c33d99ef-30e9-c390-105b-2eafa42578c7@oxygenxml.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<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"
moz-do-not-send="true">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"
moz-do-not-send="true">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"
moz-do-not-send="true">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>
<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" moz-do-not-send="true">oXygen-user@oxygenxml.com</a>
<a class="moz-txt-link-freetext" href="https://www.oxygenxml.com/mailman/listinfo/oxygen-user" moz-do-not-send="true">https://www.oxygenxml.com/mailman/listinfo/oxygen-user</a>
</pre>
</blockquote>
<br>
<fieldset class="mimeAttachmentHeader"></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>
</body>
</html>