InstantASP Community Forums
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



SOLVED Firefox (IFCode) text editor... Expand / Collapse
Author
Message
Posted 28/05/2008 00:39:52


Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

Group: Customers
Last Login: 11/08/2008 23:29:52
Posts: 47, Visits: 245
for those of you who want to get the existing IFCode font and size menus working (without going to FCKEditor):

The solution is to update the code for these boxes in RichTextBox.vb

for instance, in Public Function InsertFontDropDownList()

Where it says
onchange=""if_InsertIFCode('[font=' + this[this.selectedIndex].value + ']'

substitute
onchange=""if_InsertIFCode('[font="' + this[this.selectedIndex].value + '"]'

adding the quotes, as htmlencode, will cause the quotes to appear in the editor box, thus causing the regex replace to work.

D'oh!

Charles
Post #13941
Posted 28/05/2008 01:14:36


Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

Group: Customers
Last Login: 11/08/2008 23:29:52
Posts: 47, Visits: 245
In the javascript used for down level browsers section Public Function RegisterClientScript(), for the link, font color, and highlight items, add the quotes using "" (not " )

People have been screaming about this for years, once I actually worked on it it took me an hour to figure out.

Ryan, you really could have done this for us...Sheesh.

Charles
Post #13942
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ryan Healey, Mark Christianson, Bare, James Trott

Permissions Expand / Collapse

All times are GMT, Time now is 9:38am

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.031. 8 queries. Compression Disabled.
Home | Products | Purchase | Support | Company | Contact Us
Privacy Statement | © 1999-2007 InstantASP Limited. All Rights Reserved.