<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi,</p>
<p><br>
</p>
<p>Another option would be to cascade [1] the existing action with a
a new one that inserts a comment or a placeholder that is removed
once the user types text [2]:<br>
</p>
<p><br>
</p>
<p><font face="monospace"><?oxy-placeholder content="Enter a
title"?></font></p>
<p><br>
</p>
<p>To summarize it you will have to:</p>
<p>- create one action that inserts this comment</p>
<p>- create one action based on <i>ExecuteMultipleActionsOperation
[2] </i>that cascades the xref and the previous action</p>
<p>- you replace the xref action from the toolbar with this new
action based on <i>ExecuteMultipleActionsOperation</i> </p>
<p><br>
</p>
<p>[1]
<a class="moz-txt-link-freetext" href="https://www.oxygenxml.com/doc/versions/25.0/ug-editor/topics/dg-default-author-operations.html#dg-default-author-operations__executemultipleactionsoperation">https://www.oxygenxml.com/doc/versions/25.0/ug-editor/topics/dg-default-author-operations.html#dg-default-author-operations__executemultipleactionsoperation</a><br>
</p>
<p>[2]
<a class="moz-txt-link-freetext" href="https://www.oxygenxml.com/doc/versions/25.0/ug-editor/topics/dg-placeholder-css-extension.html">https://www.oxygenxml.com/doc/versions/25.0/ug-editor/topics/dg-placeholder-css-extension.html</a><br>
</p>
<pre class="moz-signature" cols="72">Best regards,
Alex
--
Alex Jitianu
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
<a class="moz-txt-link-freetext" href="http://www.oxygenxml.com">http://www.oxygenxml.com</a></pre>
<div class="moz-cite-prefix">On 2/16/2023 8:00 AM, Oxygen XML Editor
Support (Radu Coravu) wrote:<br>
</div>
<blockquote type="cite"
cite="mid:024c5028-d0db-076d-e02b-407d4c8a7a82@oxygenxml.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<p>Hello Cody,</p>
<p><br>
</p>
<p>Indeed the "InsertXrefOperation" Java operation does not have a
parameter to specify some fixed text to insert inside the link,
I added an internal issue based on your feedback. I do not have
an easy workaround for you, it's possible that what you want
would be possible with a Java based extension which would
somehow listen for inserted links and add that text inside the
inserted link.</p>
<p><br>
</p>
<p>But coming back to your use case which seems to be to always
add custom text inside a link to a web page, I would rather
suggest using a custom Schematron schema to signal as a
validation error to the end user that the link is empty:</p>
<p><br>
</p>
<p><a class="moz-txt-link-freetext"
href="https://blog.oxygenxml.com/topics/sharing_schematron_validation_rules.html"
moz-do-not-send="true">https://blog.oxygenxml.com/topics/sharing_schematron_validation_rules.html</a></p>
<p><br>
</p>
<p>So a Schematron schema like this would report a user friendly
warning if there is an empty link:<br>
</p>
<p> </p>
<blockquote type="cite"><sch:schema xmlns:sch=<a
class="moz-txt-link-rfc2396E"
href="http://purl.oclc.org/dsdl/schematron"
moz-do-not-send="true">"http://purl.oclc.org/dsdl/schematron"</a>
queryBinding="xslt2"<br>
   xmlns:sqf=<a class="moz-txt-link-rfc2396E"
href="http://www.schematron-quickfix.com/validator/process"
moz-do-not-send="true">"http://www.schematron-quickfix.com/validator/process"</a>><br>
   <sch:pattern><br>
       <sch:rule
context="xref[@format='html'][@scope='external']"><br>
           <sch:assert test="node()">An external link
should have custom link text set inside.</sch:assert><br>
       </sch:rule><br>
   </sch:pattern><br>
</sch:schema></blockquote>
<br>
<p>Regards,</p>
<p>Radu</p>
<pre class="moz-signature" cols="72">Radu Coravu
Oxygen XML Editor</pre>
<div class="moz-cite-prefix">On 2/15/23 18:17, Cody Steele wrote:<br>
</div>
<blockquote type="cite"
cite="mid:SA3PR11MB74167AE159BF0CD94BDAB682ACA39@SA3PR11MB7416.namprd11.prod.outlook.com">
<meta http-equiv="Content-Type" content="text/html;
charset=UTF-8">
<style type="text/css" style="display:none;">P {margin-top:0;margin-bottom:0;}</style>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0); background-color:
rgb(255, 255, 255);" class="elementToProof"> I was following
along with Frank's questions. </div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0); background-color:
rgb(255, 255, 255);" class="elementToProof"> <br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0); background-color:
rgb(255, 255, 255);" class="elementToProof"> My interest was
in editing the author action insert.url.reference for a web
link by adding something like <!--Insert link text
here--> inside of the XREF element. It doesn't look like
any of the arguments for
ro.sync.ecss.extensions.dita.link.InsertXrefOperation lets you
insert a fragment. Is it correct that I should proceed to the
involving the DITA extension framework or is there another
method that makes more sense to you?</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0); background-color:
rgb(255, 255, 255);" class="elementToProof"> <br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0); background-color:
rgb(255, 255, 255);" class="elementToProof"> Thanks,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0); background-color:
rgb(255, 255, 255);" class="elementToProof"> <br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0); background-color:
rgb(255, 255, 255);" class="elementToProof"> Cody<br>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt"
face="Calibri, sans-serif" color="#000000"><b>From:</b>
oXygen-user <a class="moz-txt-link-rfc2396E"
href="mailto:oxygen-user-bounces@oxygenxml.com"
moz-do-not-send="true"><oxygen-user-bounces@oxygenxml.com></a>
on behalf of Oxygen XML Editor Support (Radu Coravu) <a
class="moz-txt-link-rfc2396E"
href="mailto:support@oxygenxml.com" moz-do-not-send="true"><support@oxygenxml.com></a><br>
<b>Sent:</b> Wednesday, January 25, 2023 1:06 AM<br>
<b>To:</b> <a class="moz-txt-link-abbreviated
moz-txt-link-freetext"
href="mailto:oxygen-user@oxygenxml.com"
moz-do-not-send="true">oxygen-user@oxygenxml.com</a> <a
class="moz-txt-link-rfc2396E"
href="mailto:oxygen-user@oxygenxml.com"
moz-do-not-send="true"><oxygen-user@oxygenxml.com></a><br>
<b>Subject:</b> Re: [oXygen-user] Inserting child elements
automatically</font>
<div>Â </div>
</div>
<div>
<div style="border:solid #524d45 1.0pt; padding:2.0pt 2.0pt
2.0pt 2.0pt">
<p class="x_MsoNormal" style="line-height:12.0pt;
background:#ff9999"><b><span style="font-size:10.0pt;
color:#000000"></span></b><span
style="font-size:10.0pt; color:black">*Warning* This
email originates from outside of Minitab. Do not open
attachments or click links unless you are sure this
email comes from a known sender and you know the content
is safe.</span></p>
</div>
<div>
<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="x_moz-txt-link-freetext 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"
moz-do-not-send="true">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="x_moz-signature" cols="72">Radu Coravu
Oxygen XML Editor</pre>
<div class="x_moz-cite-prefix">On 1/24/23 11:49, Frank
Dissinger wrote:<br>
</div>
<blockquote type="cite">
<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="x_moz-signature">-- <br>
<div class="x_moz-signature">
<style>div.x_signature
{font-family:Verdana,sans-serif;
font-size:10pt;
color:#7F8C8D;
padding-top:0.4em}div.x_name
{padding-bottom:0.8em;
padding-top:0.8em}div.x_contact
{padding-bottom:0.8em}p
{margin:0}span.x_separator
{border-top-style:dotted;
border-top-width:2px;
padding-top:0.6em}a
{color:inherit}</style>
<div class="x_signature">
<div class="x_name">
<p><strong>Frank Dissinger</strong></p>
<p>Documentation Manager</p>
<p>....................................................................</p>
</div>
<div class="x_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="x_moz-txt-link-freetext
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"
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="x_moz-mime-attachment-header"></fieldset>
<pre class="x_moz-quote-pre">_______________________________________________
oXygen-user mailing list
<a class="x_moz-txt-link-abbreviated moz-txt-link-freetext" href="mailto:oXygen-user@oxygenxml.com" moz-do-not-send="true">oXygen-user@oxygenxml.com</a>
<a class="x_moz-txt-link-freetext 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>
</div>
</div>
<br>
<br>
<div style="font-size: 7pt; font-family: sans-serif">
<p style="color: #808080"><b>Minitab, LLC</b>, Quality Plaza,
1829 Pine Hall Rd, State College PA 16801-3210, USA<br>
<b>Minitab Limited</b>, England and Wales, Company No.
3061730, Unit E1-2 Brandon Court, Progress Way, Coventry,
CV3 2TE, United Kingdom<br>
<b>Minitab Sarl</b>, 17-21 rue Saint-Fiacre, 75002 Paris,
419 061 361 R.C.S Paris, France<br>
<b>Minitab Pty Ltd</b>, Level 10, 20 Martin Place, Sydney
NSW 2000, Australia<br>
<b>Minitab GmbH</b>, Theatinerstraße 11, 80333 München,
Germany, Geschäftsführer: Bruce Pincus, Handelsregister:
Amtsgericht München; HRB 225635<br>
<b>Minitab HK Limited</b>, Room 3703, 37th Floor, Lee Garden
One, 33 Hysan Avenue, Causeway Bay, Hong Kong<br>
<br>
<b>Confidentiality Notice:</b> This email and any
attachment(s) may contain confidential and proprietary
information, some or all of which may be legally privileged.
It is for the intended use of the individual(s) or entity
named on the email. If you are not the intended recipient,
or the employee or agent responsible for delivering it to
the intended recipient(s), you must not use, disclose,
distribute, copy, print or rely on this email. If you have
received this email in error, please immediately return it
to the sender and delete it and any attachments from your
system. Thank you.<br>
<br>
<b>Privacy Notice:</b> All incoming email communications are
monitored. Please refer to our <a
href="https://www.minitab.com/legal/privacy-policy/"
moz-do-not-send="true">Privacy Policy</a> for information
on how Minitab collects, manages, and uses personal data.<br>
<br>
Update your <a
href="https://it.minitab.com/my-account/manage-account.aspx"
moz-do-not-send="true">email preferences</a> to choose the
types of emails you receive or <a
href="mailto:unsubscribe@minitab.com?subject=Unsubscribe%20from%20Minitab%20Marketing%20Communications&body=Please%20unsubscribe%20this%20email%20address%20from%20Minitab%20marketing%20communications.%20%0A%0AThank%20you."
moz-do-not-send="true"> Unsubscribe</a>.</p>
</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 moz-txt-link-freetext" 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="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>
</body>
</html>