Peter.Schulte at gad.de wrote: > > Hussein Shafie <hussein at xmlmind.com> schrieb am 05.12.2008 15:48:02: > >> Peter.Schulte at gad.de wrote: >> > >> > we are using preconfigured templates with predefined filerefs e.g. for >> > figures: >> > >> > <elementTemplate name="simple" selectable="override"> >> > <imagedata xmlns="" fileref="../figures/???" /> >> > </elementTemplate> >> > >> > Unfortunately the file chooser dialog box (XMLmind 4.1.0) ignores the >> > predefined folder in the fileref. Instead it opens the folder which was >> > opened the last time. >> > >> >> The file chooser of the Attributes tool always worked this way. Making >> it work another way may be convenient for some cases and inconvenient in >> some other cases, therefore we are not convinced that we must change this. >> >> The workaround is to double-click on the image placeholder. A >> specialized dialog box should appear. And because it is more specialized >> than the file chooser of the Attributes tool, it behaves as >> expected. >> >> > > Thank you for your response. > In the meantime I have found that the problem is caused by the question > marks. If I replace the "???" or delete the question marks the file > chooser dialog, which is diplayed after a double-click on the image > placeholder, works as expected. There must have been a change from 3.2.0 > to 4.1.0, because we have used this fileref suggestion string from the > beginning.
I cannot reproduce this problem with XXE v4.2 (should be released on monday). Double clicking on an image placeholder always works as expected, even with the "???" (using the dialog box displayed by browse icon, not the dialog box displayed by the home icon, of course). > > By the way: > Is it possible to write a macro command that allows dragging an image in > the clipboard Images copied to the clipboard are currently not supported. > and dropping it on the image placeholder? Such a command > should only ask for the filename in order to save the image and to set > the fileref-attribute of the imagedata element. > Dragging an image from the file manager and dropping it on an image placeholder already works like this.

