need to make sure bold is alwyas on in wysiwyg editor

N

Nancy Drew

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
 

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
473,773
Messages
2,569,594
Members
45,115
Latest member
JoshuaMoul
Top