Ah, so that's why XXE seems to switch image locations unexpectedly; I'm 
switching documents.  This behavior has caused me some problems.

I'd prefer the chooser defaulting to the document's folder when clicking 
on an image placeholder.  The reason is: I have each docbook file 
co-located with an images/ folder containing that docbook's images.  
Defaulting to the last used images/ folder is almost always wrong in my 
case.

Now that I know the secret, I'll be more careful when faced with "???"; 
but it would be nice to set the behavior via a preference.

thanks,
Clark Karr


On 07/13/2012 12:35 PM, Hussein Shafie wrote:
> On 07/13/2012 04:48 PM, Philippe Nobili wrote:
>> It seems that this problem, which had been solved a couple of releases
>> ago, has shown again in release 5.3.0 of XXE; here is the  description:
>>
>> when editing the "fileref" attribute of imagedata, the trailing "???"
>> characters added by default after the current directory location
>> prevents the file selector from opening directly into the right
>> directory. Instead, the file selector opens on the lastly used location.
>>
>> This is a very annoying behavior when working simultaneously on
>> different documents located in different directories, since we have
>> permanently to scan up and down the file hierarchy to retrieve the
>> ad-hoc image locations.
>>
> When in document /home/john/doc/chapter2/chapter2.xml, you double-click
> on an image, say /home/john/images/user.png, the image chooser dialog
> box (http://www.xmlmind.com/xmleditor/_tutorial/insert_image/index.html)
> allows you to choose a file in /home/john/images/.
>
> When in document /home/john/doc/chapter2/chapter2.xml, you double-click
> on an image *placeholder*, say /home/john/doc/chapter2/???, the image
> chooser dialog box allows you to choose a file in last used image folder
> (for example: /home/john/images/; not /home/john/doc/chapter2/).
>
> Moreover when you quit XXE, restart XXE and then reopen
> /home/john/doc/chapter2/chapter2.xml, last used image folder is
> remembered. That is, XXE stores in the user preferences file this
> association (in preference key lastSelectedURLForDocument):
>
> /home/john/doc/chapter2/chapter2.xml <--> /home/john/images/an_image.png
>
> If my memory serves me well *you* have requested this behavior. We have
> implemented it and didn't change anything to it since then.
>
> I've retested what I've described above on both Linux and Windows and it
> works fine. No regression whatsoever.
>
>   
> --
> XMLmind XML Editor Support List
> [email protected]
> http://www.xmlmind.com/mailman/listinfo/xmleditor-support


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

Reply via email to