Search:
Namespaces
Discussions
.NET v1.1
Feedback
Style Menu Tags
Messages
Related Types
This message was discovered on
ASPFriends.com 'aspngrichtextbox' list
.
Fuali
Is it possible to set the "StyleMenu" to create "div" or "span" tags instead of "font" tags?
I am "quote" happy.
thanks.
Reply to this message...
Ollie Cornes
Hi there,
In an ideal world the control would use <span> as that's clearly the right
way to apply style classes to HTML using CSS. The reason
RichTextBox
uses
<font> tags is that Internet Explorer does not provide for the ability to
apply <span> tags properly, so it's a choice between no style application,
or style application with <font> tags. Most of the ASP3, ColdFusion and
plain JavaScript editors I have seen do not provide style editing because
they have failed to take advantage of the fact that font tags do a great job
of applying styles.
However, I understand your need to do this in line with standards. As a
workaround to improve the output HTML, you can apply a regular expression to
the HTML that changes <font class="xxxx"> to <span class="xxxx">. You will
most likely need to convert it back again when you reload it into the class.
Ollie
--
http://www.richtextbox.com/
-----Original Message-----
From:
Click here to reveal e-mail address
[mailto:
Click here to reveal e-mail address
]On Behalf Of Fuali
Sent: 13 June 2002 03:33
To: aspngrichtextbox
Subject: [aspngrichtextbox] Style Menu Tags
Is it possible to set the "StyleMenu" to create "div" or "span" tags
instead of "font" tags?
I am "quote" happy.
thanks.
| [aspngrichtextbox] member
Click here to reveal e-mail address
= YOUR ID |
http://www.aspfriends.com/aspfriends/aspngrichtextbox.asp
= JOIN/QUIT
Reply to this message...
System.Windows.Forms.RichTextBox
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us
-
Terms of Use
-
Privacy Policy
-
www.dotnet247.com