ExecCommand parameters

J

jez

Hello,

When inserting an image into an article for publication on the web,
the execCommand method can be used. The code looks like this:

execCommand('InsertImage','','image source').

The third parameter specifies the path and file name of the image to
be inserted.
Is it possible for a border and alignment to be specified for the
inserted image?
(The html code for the image would look like this: <img
src="imagename.jpg", border="0", align="center">

Any help would be appreciated.

Thanks,

Jez
 
M

MatXthias WielXand

(e-mail address removed) (jez) wrote in @posting.google.com:

why don't you change it with normal javascript after the intert with
execCommand?

getElementById("theIDofThePicture").border = 0 or so
 
J

jez

MatXthias WielXand said:
(e-mail address removed) (jez) wrote in @posting.google.com:

why don't you change it with normal javascript after the intert with
execCommand?

getElementById("theIDofThePicture").border = 0 or so


MatXthias WielXand,

Your suggestion is a step in the right direction. I'll look into it further.

Cheers

Jez
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,431
Messages
2,571,678
Members
48,796
Latest member
Greg L.

Latest Threads

Top