Current location: Hot Scripts Forums » General Web Coding » JavaScript » WYSIWYG Buttons


WYSIWYG Buttons

Reply
  #1 (permalink)  
Old 07-28-03, 08:09 AM
austin322 austin322 is offline
Newbie Coder
 
Join Date: Jul 2003
Location: Florence, MS
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
WYSIWYG Buttons

I have built an online WYSIWYG HTML editor based on the execCommand script. All of my buttons work correctly but, for instance when you highlight some text and bold it, it bolds the text, but doesn't leave the bold button highlighted. Is there any scripting that I need to add, if so, then what?
Reply With Quote
  #2 (permalink)  
Old 07-28-03, 08:20 AM
Damian's Avatar
Damian Damian is offline
Wannabe Coder
 
Join Date: Jun 2003
Posts: 149
Thanks: 0
Thanked 0 Times in 0 Posts
use spaw... search for it on hotscripts.com... it's great.
__________________
"My occupation now, I suppose, is jail inmate."
- Unibomber Theodore Kaczynski, when asked in court what his current profession was.
Reply With Quote
  #3 (permalink)  
Old 07-28-03, 08:45 AM
austin322 austin322 is offline
Newbie Coder
 
Join Date: Jul 2003
Location: Florence, MS
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
I am not looking for a new editor, I am just needing the script to highlight the buttons, when they are selected.
Reply With Quote
  #4 (permalink)  
Old 07-29-03, 01:58 AM
nd2 nd2 is offline
Wannabe Coder
 
Join Date: Jun 2003
Posts: 128
Thanks: 0
Thanked 0 Times in 0 Posts
use css with java script to highlight buttons.
__________________
IonCMS (Coming Soon.)
http://ioncms.com
--
Ncaster (Free php/mysql cms)
http://ncaster.cjb.net
Reply With Quote
  #5 (permalink)  
Old 07-29-03, 07:08 AM
austin322 austin322 is offline
Newbie Coder
 
Join Date: Jul 2003
Location: Florence, MS
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
I can already highlight the buttons when you move the the mouseover the buttons, but I need the buttons to be highlighted after they are selected and the mouse is not over the button. It would only need to be highlighted when the selected text has any formatting. (e.g., When you select something that has already been bolded the bold button would automatically highlight, but when you select text that is not bolded the bold button would not be highlighted.
THANKS
Reply With Quote
  #6 (permalink)  
Old 08-04-03, 11:12 PM
inkblot's Avatar
inkblot inkblot is offline
The Lonely Coder
 
Join Date: Aug 2003
Location: Ontario
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
I can't can't see that being possible with javascript alone (or at least not simply). You would have to maintain a dynamic list of what text has what formatting applied to it.
...A lot of text box searching. I'm not sure I've seen that done in any other WYSIWYG editor but if you see it, I'd search through their code
__________________
where am i......
Reply With Quote
  #7 (permalink)  
Old 08-07-03, 04:39 AM
Mat Mat is offline
Newbie Coder
 
Join Date: Aug 2003
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
yes u would use css in this case.

-Mat
Reply With Quote
  #8 (permalink)  
Old 08-16-03, 06:23 AM
nd2 nd2 is offline
Wannabe Coder
 
Join Date: Jun 2003
Posts: 128
Thanks: 0
Thanked 0 Times in 0 Posts
okay i think i understand a bit more, ive seen something like it done in ewe i think it was, im not sure how they pulled it of unless IE stores a array with propertys somewhere.
__________________
IonCMS (Coming Soon.)
http://ioncms.com
--
Ncaster (Free php/mysql cms)
http://ncaster.cjb.net
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP in Java applet buttons geneane Everything Java 2 10-09-03 03:52 AM
Buttons like F11, Save, SaveAs, Print Li Man JavaScript 0 09-02-03 04:47 AM
Frames and buttons, please help Hjalmarsson HTML/XHTML/XML 1 08-18-03 08:13 AM
Help with radio buttons and uploading Arctic ASP 3 08-17-03 09:49 AM
Need more functions for my wysiwyg editor klausre PHP 3 06-14-03 11:35 AM


All times are GMT -5. The time now is 10:26 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.