need to make sure bold is alwyas on in wysiwyg editor

Discussion in 'Javascript' started by Nancy Drew, Dec 2, 2004.

  1. Nancy Drew

    Nancy Drew Guest

    hi all

    i need to make sure that a user's text is always bolded inside a rich text
    area. i've tried setting a onKeyUp event and run this command:

    editdoc.execCommand('Bold',false,null);

    this command always toggles the bold setting either on or off. is there a
    way to check to see which option is currently selected and only toggle the
    mode on if it's currently off. otherwise, is there a way to issue this
    command so that bold is always set to be turned on?

    tks
     
    Nancy Drew, Dec 2, 2004
    #1
    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. Tor DeForest
    Replies:
    3
    Views:
    628
    Tim Tyler
    Mar 6, 2004
  2. Steve

    need true WYSIWYG editor

    Steve, Oct 3, 2003, in forum: HTML
    Replies:
    24
    Views:
    998
    Whitecrest
    Oct 6, 2003
  3. Amir
    Replies:
    10
    Views:
    3,102
    Frank N'Beans
    Dec 11, 2003
  4. Hatem KNANI
    Replies:
    2
    Views:
    672
    Morphon Technologies
    Aug 4, 2003
  5. I. Myself
    Replies:
    39
    Views:
    2,762
    Chaddy2222
    May 31, 2006
Loading...

Share This Page