Hi Bruno,
So after the user would click the custom action to insert an image reference, he would need to be asked several questions like:
1) If to insert a figure or a simple image reference. If a figure is inserted, then the user would provide a Figure ID
2) Image href
3) Image placement
4) Image width
5) Image align
Probably it would be the best for you to construct your own
ro.sync.ecss.extensions.api.AuthorOperation Java implementatation which shows a Swing-based dialog to the user asking him for all these extra settings:
http://www.oxygenxml.com/doc/ug-oxygen/ ... HowTo.html
An alternative without writing Java code for this would be to use an existing
ro.sync.ecss.extensions.commons.operations.InsertFragmentOperation operation to insert an XML fragment which makes use of Oxygen editor variables like:
Code: Select all
<fig id="${ask('Figure ID?')}" frame="${ask('Frame?')}">
<title>${ask('Title?')}</title>
<image href="${ask('Href?', relative_url)}" placement="${ask('Placement?')}" width="${ask('Width?')}" align="${ask('Align?')}"/>
</fig>
Oxygen will ask the user separately to insert a value for each of those attributes. But this may be annoying to the end user + the end user might not want to provide an attribute at all for a certain element.
Regards,
Radu