Hi,
I just tried dragging several selected image files from a Finder window into an HTML document, and the code it generates is very incorrect:
<img src="/Users/john/Pictures/P1010012.JPG" width="1024" height="768" alt="<img src="/Users/john/Pictures/P1010013.JPG" width="1024" height="768" alt="P1010013" />" />
It looks like it's putting the second image tag into the placeholder for the alt attribute. Dragging more will continue the problem over and over.
Is this a known problem?
Thanks!
jt
On May 2, 2006, at 7:10 PM, John Tsombakos wrote:
Hi,
I just tried dragging several selected image files from a Finder window into an HTML document, and the code it generates is very incorrect:
<img src="/Users/john/Pictures/P1010012.JPG" width="1024" height="768" alt="<img src="/Users/john/Pictures/P1010013.JPG" width="1024" height="768" alt="P1010013" />" />
It looks like it's putting the second image tag into the placeholder for the alt attribute. Dragging more will continue the problem over and over.
Inside the HTML bundle you will find a "drag command" titled: "Insert Image With dimensions". This command inserts as snippet with a couple of placeholders, and it gets called when an image is dragged, provided it has extension png,jpg,jpeg or gif. When more than one images are being dragged, it looks like they are treated sequentially, hence the text for the second is inserted exactly where the first placeholder is for the first, and so on. The simple answer I see is to modify that command in your case, so that it just inserts some text, without placeholders for the alt attribute.
Is this a known problem?
Thanks!
jt
Haris
On 5/2/06, Charilaos Skiadas cskiadas@uchicago.edu wrote:
Inside the HTML bundle you will find a "drag command" titled: "Insert Image With dimensions". This command inserts as snippet with a couple of placeholders, and it gets called when an image is dragged, provided it has extension png,jpg,jpeg or gif. When more than one images are being dragged, it looks like they are treated sequentially, hence the text for the second is inserted exactly where the first placeholder is for the first, and so on. The simple answer I see is to modify that command in your case, so that it just inserts some text, without placeholders for the alt attribute.
Ah. So it does. I did a test with dragging some .html files in, to create links and it looks it does the same thing - the drag command for creating links has the same issue.
Thanks.
jt
On 3/5/2006, at 2:32, John Tsombakos wrote:
Ah. So it does. I did a test with dragging some .html files in, to create links and it looks it does the same thing - the drag command for creating links has the same issue.
Yes, there is really no good solution to this, other than lose the tab stops in the inserted snippet -- so it would depend on usage patterns, what is to be preferred.
Since this has been mentioned two times earlier, I will remove it for images.