User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 456,556 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,446 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 1432 | Replies: 1
Reply
Join Date: Oct 2007
Posts: 1
Reputation: rohit_purohit is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
rohit_purohit rohit_purohit is offline Offline
Newbie Poster

Question Adding Custom Tags In A Rich TExt Editor

  #1  
Oct 20th, 2007
Hi EveryBody

I Am A Web developer working in PHP. I Am Using A WSYGIG rich text editor in my web page.
the value i am recieving in it is in css styles like span-style font-weight:bold for applying bold tag. but i want to use only <b></b> tags for bold and <i></i> for italics

but when we user execCommand it applies span style tags..

can any one tell me how to use <b></b> instead of span style
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jan 2007
Posts: 2,604
Reputation: MidiMagic is on a distinguished road 
Rep Power: 7
Solved Threads: 119
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Posting Maven

Re: Adding Custom Tags In A Rich TExt Editor

  #2  
Oct 21st, 2007
Don't!

The b and i tags are scheduled for deprecation. If you use them, the page will have to be changed in the future.
Daylight-saving time uses more gasoline
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb JavaScript / DHTML / AJAX Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum

All times are GMT -4. The time now is 5:36 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC