> > We could indeed introduce special behaviour for dragging links; the > browser identifies the text as a link when it is dropped. *The problem is > that it's not clear what that behaviour should be; for image links*, ... > > I do not think the job of a drag-and-drop file-link *inserter *should include determining what type of data the file-link leads to. That should be up to the user to decide with [img[...]] or other user-defined file handling macros.
The most general & simple solution would be that the drag-and-dropped function should: 1. grab the absolute-file-link string file - such as: *file:///d:/data/Proj/* *PhotoScrapbook/origs/%7B040%7DIM-3837.jpg* 2. check that the file is within the TiddlyWiki's folder - for example: *d:/data/Proj/**PhotoScrapbook/ * 3. paste the appropriate link into a text box - if it is in under same folder as the TiddlyWiki then paste the *relative *file link text : *file:.//**origs/%7B040%*7DIM-3837.jpg - and if the file is not under that folder assume the user wants the file to be imported into the TiddlyWiki are raw text. - could also have the option to paste the *absolute *path link text : f *ile:///d:/data/Proj/*PhotoScrapbook/origs/%7B040%*7DIM-3837.jpg *(although I am not sure under what scenario this would be useful). How does that sound? Is that doable or does that violate some browser security limitations? Blake -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.