PDA

View Full Version : execcommand(insertimage) - additional attributes?



bryden
09-15-2004, 06:14 AM
I'm working on a WYSIWYG web editor and I want to add upload image option. It should upload chosen image to the webserver, resize it and make thumbnail.
When this is done, it should insert thumbnail into editor and make link to big image.

I insert with:
execCommand('InsertImage', false, imagePath)


But I am unable to find the way to create link to that image. In IE it wors fine, because IE automaticaly selects inserted image. Firefox, however, inserts the image but does not select it.



So does anybody have solution how to select inserted image - that is - how to add id="xyx" to inserted image?!