<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15">
</head><body text="#000000" bgcolor="#FFFFFF">Hi Radu,<br>
<br>
however, I bet David want's to use it in text mode...<br>
<br>
It's really a pitty that so many of your plugin API's are only available
in Author Mode.<br>
There's so many power users who could need those API's also in text
mode!<br>
<br>
Best,<br>
Tobias<br>
<br>
<span>
</span><br>
<blockquote type="cite"
cite="mid:f2d1799b-9228-8f3f-9d63-4fe0a5b73f7e@oxygenxml.com"
style="border: 0px none;">
<div xmlns="http://www.w3.org/1999/xhtml" class="__pbConvHr"
style="margin:30px 25px 10px 25px;"><div
style="width:100%;border-top:2px solid #EDF1F4;padding-top:10px;"> <div
style="display:inline-block;white-space:nowrap;vertical-align:middle;width:49%;">
<a style="color:#485664
!important;padding-right:6px;font-weight:500;text-decoration:none
!important;" href="mailto:support@oxygenxml.com" moz-do-not-send="true">Oxygen
XML Editor Support (Radu Coravu)</a></div> <div
style="display:inline-block;white-space:nowrap;vertical-align:middle;width:48%;text-align:
right;"> <font color="#909AA4"><span style="padding-left:6px">12.
April 2018 um 10:14</span><a style="color:#9FA2A5
!important;text-decoration:none !important;"
href="https://www.postbox-inc.com/?utm_source=email&utm_medium=sumlink&utm_campaign=reach"
moz-do-not-send="true"> via Postbox</a></font></div> </div></div>
<div xmlns="http://www.w3.org/1999/xhtml" class="__pbConvBody"
__pbrmquotes="true"
style="color:#909AA4;margin-left:24px;margin-right:24px;">Hi David,
<br>
<br>You would need to implement an Oxygen plugin for this.
<br>Maybe you can take a look at this plugin:
<br>
<br><a class="moz-txt-link-freetext" href="https://github.com/oxygenxml/ExecuteAuthorActionsOnSaveHook">https://github.com/oxygenxml/ExecuteAuthorActionsOnSaveHook</a>
<br>
<br>When content is saved in the Author visual editing mode, the plugin
can
invoke a previously defined Author action.
<br>So you do not need to modify the plugin's Java code, just the action
ID
which should get called on save.
<br>
<br>Regards,
<br>Radu
<br>
<br>Radu Coravu
<br><oXygen/> XML Editor
<br><a class="moz-txt-link-freetext" href="http://www.oxygenxml.com">http://www.oxygenxml.com</a>
<br>
<br><br>_______________________________________________
<br>oXygen-user mailing list
<br><a class="moz-txt-link-abbreviated" href="mailto:oXygen-user@oxygenxml.com">oXygen-user@oxygenxml.com</a>
<br><a class="moz-txt-link-freetext" href="https://www.oxygenxml.com/mailman/listinfo/oxygen-user">https://www.oxygenxml.com/mailman/listinfo/oxygen-user</a>
<br>
</div>
<div xmlns="http://www.w3.org/1999/xhtml" class="__pbConvHr"
style="margin:30px 25px 10px 25px;"><div
style="width:100%;border-top:2px solid #EDF1F4;padding-top:10px;"> <div
style="display:inline-block;white-space:nowrap;vertical-align:middle;width:49%;">
<a style="color:#485664
!important;padding-right:6px;font-weight:500;text-decoration:none
!important;" href="mailto:public@booksongaming.com"
moz-do-not-send="true">David Levy</a></div> <div
style="display:inline-block;white-space:nowrap;vertical-align:middle;width:48%;text-align:
right;"> <font color="#909AA4"><span style="padding-left:6px">11.
April 2018 um 18:07</span><a style="color:#9FA2A5
!important;text-decoration:none !important;"
href="https://www.postbox-inc.com/?utm_source=email&utm_medium=sumlink&utm_campaign=reach"
moz-do-not-send="true"> via Postbox</a></font></div> </div></div>
<div xmlns="http://www.w3.org/1999/xhtml" class="__pbConvBody"
__pbrmquotes="true"
style="color:#909AA4;margin-left:24px;margin-right:24px;"><meta
http-equiv="Content-Type" content="text/html; charset=iso-8859-15"><meta
name="Generator" content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
color:black;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";
color:black;}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
color:black;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:Consolas;
color:black;}
span.EmailStyle21
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--><div class="WordSection1"><p
class="MsoNormal"><span style="color:windowtext">The current discussion
"When a <fig> is inserted, it should contain a <title>
element" prompts me to ask what I'm sure is a trivial question. <o:p></o:p></span></p><p
class="MsoNormal"><span style="color:windowtext"><o:p> </o:p></span></p><p
class="MsoNormal"><span style="color:windowtext">I am using Oxygen to
edit XML in text mode. <o:p></o:p></span></p><p class="MsoNormal"><span
style="color:windowtext"><o:p> </o:p></span></p><p class="MsoNormal"><span
style="color:windowtext">I would like an XML element
<dateUpdated> to be updated automatically on save. <o:p></o:p></span></p><p
class="MsoNormal"><span style="color:windowtext"><o:p> </o:p></span></p><p
class="MsoNormal"><span style="color:windowtext">I am aware of the of
the ${date(pattern)} editor variable, but don't know how to trigger an
action on the save event or indeed what type of code can be run once the
event is detected. <o:p></o:p></span></p><p class="MsoNormal"><span
style="color:windowtext"><o:p> </o:p></span></p><p class="MsoNormal"><span
style="color:windowtext">The online <a
href="https://www.oxygenxml.com/doc/versions/20.0/ug-editorEclipse/topics/api_faq_auto_modify_content_save.html"
moz-do-not-send="true">example</a> seemed to be in a DITA context and
require the Plugins SDK, neither of which I'm familiar with. <o:p></o:p></span></p><p
class="MsoNormal"><span style="color:windowtext"><o:p> </o:p></span></p><p
class="MsoNormal"><span style="color:windowtext">With thanks,<o:p></o:p></span></p><p
class="MsoNormal"><span style="color:windowtext"><o:p> </o:p></span></p><p
class="MsoNormal"><span style="color:windowtext">David Levy<o:p></o:p></span></p><p
class="MsoNormal"><span style="color:windowtext"><o:p> </o:p></span></p></div>
<br><fieldset class="mimeAttachmentHeader"></fieldset><br><div>_______________________________________________<br>oXygen-user
mailing list<br><a class="moz-txt-link-abbreviated" href="mailto:oXygen-user@oxygenxml.com">oXygen-user@oxygenxml.com</a><br><a class="moz-txt-link-freetext" href="https://www.oxygenxml.com/mailman/listinfo/oxygen-user">https://www.oxygenxml.com/mailman/listinfo/oxygen-user</a><br></div>
</div>
</blockquote>
<br>
</body></html>