ExecCommand parameters

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • jez

    ExecCommand parameters

    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('In sertImage','',' 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
  • MatXthias WielXand

    #2
    Re: ExecCommand parameters

    yjhie@indexel.n et (jez) wrote in news:2021493b.0 310220531.69317 9e0
    @posting.google .com:

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

    getElementById( "theIDofThePict ure").border = 0 or so

    Comment

    • jez

      #3
      Re: ExecCommand parameters

      MatXthias WielXand <meinVor.nachna meOhneXe@online .de> wrote in message news:<Xns941CA7 646702DWielXand @127.0.0.1>...[color=blue]
      > yjhie@indexel.n et (jez) wrote in news:2021493b.0 310220531.69317 9e0
      > @posting.google .com:
      >
      > why don't you change it with normal javascript after the intert with
      > execCommand?
      >
      > getElementById( "theIDofThePict ure").border = 0 or so[/color]


      MatXthias WielXand,

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

      Cheers

      Jez

      Comment

      Working...