Firefox - Rich Text Editing: Cannot do a text bold...?

Discussion in 'Javascript' started by deostroll, Jan 11, 2008.

  1. deostroll

    deostroll Guest

    I am able to set the iframe to design mode, but I cannot execute the
    following command

    document.frames['testiframe'].execCommand("bold",false,null);

    Usually I select text and click on a button which is supposed to
    execute the above command. This does not work. Is there a work around
    for this...?
     
    deostroll, Jan 11, 2008
    #1
    1. Advertising

  2. deostroll

    deostroll Guest

    On Jan 11, 10:41 pm, deostroll <> wrote:
    > I am able to set the iframe to design mode, but I cannot execute the
    > following command
    >
    > document.frames['testiframe'].execCommand("bold",false,null);
    >
    > Usually I select text and click on a button which is supposed to
    > execute the above command. This does not work. Is there a work around
    > for this...?


    Ok. I think the issue got resolved by it self.

    testiframe.document.execCommand("bold",false,null);

    -deostroll
     
    deostroll, Jan 11, 2008
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    3
    Views:
    449
  2. Erik
    Replies:
    3
    Views:
    546
  3. Hollow Quincy

    rich:dataTable - rich:dataScroller

    Hollow Quincy, Dec 30, 2011, in forum: Java
    Replies:
    5
    Views:
    4,548
    Arved Sandstrom
    Jan 2, 2012
  4. Martin Honnen

    Rich Text Editing

    Martin Honnen, Jan 2, 2005, in forum: Javascript
    Replies:
    1
    Views:
    91
    Börni
    Jan 2, 2005
  5. Replies:
    7
    Views:
    281
Loading...

Share This Page