Starting from the *next* release of XMLmind XML Editor, it's possible to bind application event "drop-image" to a command in order to bypass the dialog box normally displayed when you drop a file onto an image view.

Simple example which works for XHTML, DITA Topic, DocBook or any document type in which the source of an image is specified using an attribute:

---
<binding>
  <appEvent name="drop-image" />
  <command name="putAttribute" parameter="%{attribute} %{url}" />
</binding>
---

In your case, a simple macro-command wrapped around putAttribute should solve your problem.



On 05/07/2013 01:53 PM, Bornemann, Frank (Oerlikon Neumag) wrote:
after using and adapting XMLMind for several years now, we still run
into one handling sequence that is still bothering us a little.

 1. When inserting a pic  file via drag & drop from a windows explorer
    folder, there is always the position source and target screen
    popping up like this:

 2. Since most our pics are stored on a different server than the XML
    files (and we do not need relative path names and do not want them
    to be copied anywhere else), we always alter this screen in a way
    that the upper and lower fields are the same and they are used as a
    reference:

 3. Since I assume that for some/most of the users the presettings you
    implemented are sufficient/correct, here is my suggestion for
    improvement:
    Add an option in the preferences of XXE that allows to select
    whether to insert pics by copying or referencing and if the letter
    is chosen, just take the path of the target position and do not show
    the screen above any more when dropping files from the explorer window.

Does this seem sensible for you? Or this there even now a better
handling procedure to avoid this copying and pasting procedure?


--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to