By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,516 Members | 1,194 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,516 IT Pros & Developers. It's quick & easy.

ExecCommand parameters

P: n/a
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
Jul 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
yj***@indexel.net (jez) wrote in news:2021493b.0310220531.693179e0
@posting.google.com:

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

getElementById("theIDofThePicture").border = 0 or so
Jul 20 '05 #2

P: n/a
jez
MatXthias WielXand <me********************@online.de> wrote in message news:<Xn**********************@127.0.0.1>...
yj***@indexel.net (jez) wrote in news:2021493b.0310220531.693179e0
@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
Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.