Dave Burke : Freelance .NET Web Developer specializing in Online Communities

Firefox rich text editor support in .Text 0.95 (FTB 2.0)


I could not in good conscious deliver the customized .text community site I'm currently working on without rich text editing support for Firefox and Netscape.  Besides, I'd like to use Firefox for posting to my own blog! J  This had to get done.

I knew it was going to be hairy and I was not dissappointed.  The plan was to go with FTB3.0.  Sweet.  The problem in going that route is that FTB3.0 requires a static httpHandler setting in the web.config, so you can forget wildcard aspnet_isapi.dll mapping.  As I said on a FreeTextBox Forum post here, I would LOVE for someone to prove me wrong and that FTB3.0 does indeed work with wildcard mapping. 

If you want FTB3.0 to work in a multiblog environment, you can turn off wildcard mapping and create dummy user/admin directories with a web.config in each user/admin directory.  The EntryEditor Utilities.CheckIsIE55() method needs replaced, but other than that FTB3.0 works great.  Here's an excellent post by Dan Bartels on how he got FTB3.0 working with with 0.95 in a single blog setup.  I used that as a basis for getting FTB3.0 working on my blog here.

I decided to go with FTB2.0 for the customized .text community site.  It took some focus and nerd obsession, but I got it to work.  Here's a post by Scott Galloway on his experience with FTB2.0 and .Text, here another by Bill Shen.  They provide everything most people will need to get FTB2.0 working in 0.95.  As an overview for what I had to do to get FTB2.0 working in 0.95, I

  1. added a CheckIsIE55OrGecko() method in Utilities.cs
  2. added a browsercaps section in the .text root web.config
  3. [new] disabled the confirmation page functionality on EntryEditor.cs
  4. [new] used a ftbBody.SupportFolder external setting (my FTB2.0 build didn't support ButtonPath)
  5. [new] changed the lkbpost and lkbcancel asp:Linkbuttons to asp:Buttons.


Here's the most important tip I can provide:  if you are doing everything right and its still not working (I was getting an inexplicable “your post must have a body” required field message) TRY ANOTHER 2.x VERSION OF FREETEXTBOX.DLL!  That's the best advice I can offer.  Hopefully, if you're like me and do a search on freetextbox.dll, you'll retrieve a list of 50 or so found in various projects over the last 4 years.  I used the filesize (and file location) as version indicators.  Right-click-->Properties on the freetextbox.dll in the VS.NET References folder will give you the version.  I used 2.0.5000.3, but I can't help but think that there are different builds of FTB2x with this same version number floating around.

Blessings and solicitudes to other pilgrims seeking to provide rich text editor support to Firefox and Netscape in .Text 0.95.  May your journey be uneventful and blissfulness be your most pronounced memory.

 

Comments (9) | Post RSS RSS comment feed

Posted on 1/8/2005 8:55:00 PM by Dave Burke
Categories: .NET
Tags:

Related posts

Comments (9) -

1/31/2005 12:00:00 AM Permalink

Any chance you can expand on 1-5 there? Being a newbie programmer, I know what you're talking about generally, but I definitely wouldn't be able to write my own methods yet, etc.

I was able to upgrade to FTB 3.0, but I'm kind of at a loss on getting it to work with Firefox.

Aubrey |

1/31/2005 5:21:00 AM Permalink

Maybe I'll be able to put a .zip together on it.  I don't know how useful it would be to you though, Aubrey, since there's something weird on the Firefox side that doesn't give me the hyperlink popup.

Dave Burke |

2/10/2005 12:05:00 PM Permalink

I finally got FTB 3.0 working with Firefox, and I am getting the hyperlink popup. I used the info I found here:

markyologist.com/blog/archive/2004/07/11/212.aspx">markyologist.com/blog/archive/2004/07/11/212.aspx

Took me a few tries to get it right, since I didn't really know where the method went, and I kept getting compiler errors. Once I got it in the right place, the build succeeded, and it's working great now.

Aubrey |

2/10/2005 12:16:00 PM Permalink

Aubrey, Thanks for your message.  I stopped what I was and check your url to confirm that my setup was the same.  It is.  Are you sure that 1) you're using freetextbox 3.0? and 2) The hyperlink popup is actually entering a URL in your post body?  I don't have the hyperlink popup problem in FTB2, so I wanted to make.  Congrats on getting it to work, either way!  I'm seeing that other people are having the same problem with FTB3 in firefox.  The spellcheck doesn't work correctly in firefox either.  At least not for me.

Dave Burke |

2/14/2005 5:27:00 PM Permalink

Arrrgh. I guess in my glee I didn't notice that the hyperlink popup did actually popup, but wasn't inserting the actual hyperlink. And the spell-check (I'm using NetSpell) doesn't seem to work either, I hadn't checked that before.

I downloaded CS::Blogs RC2, but haven't had time to get it up and running. Not sure if they've fixed this issue in the new version of the software or not. And even if they have, I've made so many mods to .95 that I'm not sure I'm going to upgrade. At least not until they add in the features that I've already got in .95.

Aubrey |

2/14/2005 5:33:00 PM Permalink

Aubrey, at least you brought me some comfort knowing I'm not alone in my FTB Firefox troubles.  (Actually, I knew I wasn't alone there already. Smile  Sorry you're having trouble, too.

I went mod crazy with 0.95, too, but I feel compelled to move to ScottW's latest release to keep tabs with the kind of coding he's doing and help me learn a few more tricks.  That is, if and when the full source of CS::Blogs is available.  

Good to hear from you.

Dave Burke |

2/14/2005 6:03:00 PM Permalink

Curiosity got the better of me, so I loaded up a copy of CS RC2, and no, the insert hyperlink isn't working there, either. And there is no spell check button enabled by default, which is rather odd, so no way to test that, since the souce code isn't available yet, and I can't modify the FTB layout.

Aubrey |

2/14/2005 6:18:00 PM Permalink

I checked FTB's site, and the insert link works fine in Firefox there, but they appear to be calling a custom aspx file, sort of like the image gallery button, so I know it can be done. I decided to check the forums thinking maybe someone there had posted a solution, but the only thing I could find was your post about it not working, with no solution.

Oh well...

Aubrey |

2/14/2005 7:10:00 PM Permalink

Geez, Aubrey.  Someone who works as hard as you on the fix should get one!  

Ya know, when I saw early on that there were troubles in FTB3.0 Firefoxland, I moved a client site to FTB 2.0 (instead of the request 3.0 upgrade) and it works.  No spellchecker, but I've never used that in my life anyway.

I'm thinking about doing the retro-move here to FTB2 on my blog as well.  Will post if I do...

Dave Burke |


Powered by BlogEngine.NET 2.0.0.36
Theme by Dave Burke