Brendan Tompkins

Sponsors

The Lounge

News

Advertisement

Images in this post missing? We recently lost them in a site migration. We're working to restore these as you read this. Should you need an image in an emergency, please contact us at imagehelp@codebetter.com
FTB 3.0 .TEXT Integration (or, now we can blog with Firefox)
After an unsuccessful attempt at integrating the new FreeTextBox 3.0 release into our .TEXT engine at CodeBetter.Com, last night I finally got it working.  I started with a post from Paul (see Adding FreeTextBox 3.0 to .Text Version 0.95), but wasn't fully successful, and I found that the process involved a couple of extra steps.  Here's how to update a production .TEXT deployment with the new FreeTextBox, should you need to do the same thing:

Step 1: Add FTB 3.0 dll to your local .TEXT project
Download and drop the new freetextbox.dll into the "OtherStuff\ThirdParty" directory.   This is where the Admin and Dottext.Web projects reference the freetextbox.dll.

Step 2: Modify EntryEditor.ascx.cs Source
The EntryEditor page does some browser checking to only update the FTB content for IE.  You'll need to modify the following lines of code.

  351 entry.Body = Globals.StripRTB(Utilities.CheckIsIE55() ? ftbBody.Text : txbBody.Text,Request.Url.Host);

to

  351 entry.Body = Globals.StripRTB(ftbBody.Text,Request.Url.Host);


  421 valftbBodyRequired.Visible = ftbBody.Visible = Utilities.CheckIsIE55();

to

  421 valftbBodyRequired.Visible = ftbBody.Visible = true;


  434 private void SetEditorText(string bodyValue)

  435     {

  436       if (Utilities.CheckIsIE55())

  437         ftbBody.Text = bodyValue;

  438       else

  439         txbBody.Text = bodyValue;

  440     }

to

  434 private void SetEditorText(string bodyValue)

  435     {

  436       ftbBody.Text = bodyValue;

  437     }


Step 3: Modify EntryEditor.ascx

Update your FTB control tag, since the new version breaks the old  version's type..

   95       <FTB:FreeTextBox id="ftbBody" runat="server" width="98%" visible="False"

   96         ToolbarImagesLocation="ExternalFile"

   97         ButtonImagesLocation="ExternalFile"

   98         JavaScriptLocation="ExternalFile"

   99         SupportFolder="~/aspnet_client/FreeTextBox/" 

  100         toolbarlayout="Bold,Italic,Underline,Strikethrough;

               Superscript,Subscript,RemoveFormat|FontFacesMenu,

               FontSizesMenu,FontForeColorsMenu|JustifyLeft,

               JustifyRight,JustifyCenter,JustifyFull;BulletedList,

               NumberedList,Indent,Outdent;CreateLink,Unlink,Insert,

               InsertRule|Cut,Copy,Paste;Undo,Redo|ieSpellCheck,

               WordClean,InsertDate,InsertTime,InsertImage"

  101         toolbarbackcolor="Transparent" backcolor="Transparent" height="300px"

  102         gutterbackcolor="Transparent" GutterBorderColorDark="Transparent"

  103         EditorBorderColorDark="Transparent" EditorBorderColorLight="Transparent" />


Step 4: Rebulid
You'll need to build your .TEXT Admin and Dottext Web Projects, not rebuilding the DLLs will give you some nasty runtime errors.

Step 5: Deploy
Copy the aspnet_client directory included with FTB to the root of your .TEXT installation.
Copy your new EntryEditor.ascx page into your Admin/UserControls directory
Re-Deploy the Dottext.* dlls and the freetextbox.dll to your production environment.

That should be it!  Good luck!

-Brendan (posting entirely from Firefox)

Posted Wed, Feb 9 2005 7:02 AM by Brendan Tompkins

[Advertisement]

Comments

Raymond Lewallen wrote re: FTB 3.0 .TEXT Integration (or, now we can blog with Firefox)
on Wed, Feb 9 2005 8:42 AM
I really appreciate you getting this in and working. First thing I noticed this morning when I went to post my blog entry was that this stuff all works in Firefox now, and thats awesome! I was using w.bloggar because of the features and because I really don't like using IE for anything I don't have to. Now I can go back to using Firefox to write my blog entries easier. You the man!
Dave Burke wrote re: FTB 3.0 .TEXT Integration (or, now we can blog with Firefox)
on Wed, Feb 9 2005 9:51 AM
Looks good. I'll be interested to see what if there's anything I missed preventing me from adding URLs in firefox on my FTB3 implementation.

Brendan Tompkins wrote re: FTB 3.0 .TEXT Integration (or, now we can blog with Firefox)
on Wed, Feb 9 2005 9:54 AM
Dave. I can't add URLs either, could be a FTB bug..
TrackBack wrote How to integrate FreeTextBox 3.0 on .Text
on Wed, Feb 9 2005 2:03 PM
Dave Burke wrote re: FTB 3.0 .TEXT Integration (or, now we can blog with Firefox)
on Wed, Feb 9 2005 3:54 PM
Brendan, several others are having the same problems from what I read on the FTB Forums. If I hear of a fix, I'll let you know. And yes, I reviewed your implementation and modified mine to dupe yours for testing, and still no firefox URL support. Your reply confirms that its something in FTB3.
Brendan Tompkins wrote re: FTB 3.0 .TEXT Integration (or, now we can blog with Firefox)
on Wed, Feb 9 2005 5:37 PM
Thanks Dave. Next is to get the NetSpell thingey working. Have you done that?
Dave Burke wrote re: FTB 3.0 .TEXT Integration (or, now we can blog with Firefox)
on Wed, Feb 9 2005 6:06 PM
NetSpell works for me in IE, but no, not Firefox...
Paul Webb wrote re: FTB 3.0 .TEXT Integration (or, now we can blog with Firefox)
on Wed, Feb 9 2005 7:07 PM
Good stuff Brendan. I didn't even think about FireFox support!
TrackBack wrote FreeTextBox 3 and .Text
on Thu, Feb 10 2005 6:32 AM
Geoff Appleby wrote re: FTB 3.0 .TEXT Integration (or, now we can blog with Firefox)
on Fri, Feb 11 2005 2:28 AM
Paul: That's because firefox support isn't important *grin*
Dave Burke wrote re: FTB 3.0 .TEXT Integration (or, now we can blog with Firefox)
on Sat, Feb 12 2005 9:24 PM
Brendan. FYI, I upgraded to FTB 3.0.1, and it has fixed neither my FireFox Create Link or NetSpell problems. Still working on it...
Brendan Tompkins wrote re: FTB 3.0 .TEXT Integration (or, now we can blog with Firefox)
on Sat, Feb 12 2005 11:18 PM
Dave,

I'm having problems with Fonts too, are you getting the font list in the drop downs? Also, the new ftb download zip file is 3.0.2, but I can't see any changes to any file in the zip. Who knows.

Brendan
Dave Burke wrote re: FTB 3.0 .TEXT Integration (or, now we can blog with Firefox)
on Tue, Feb 15 2005 7:49 PM
Brendan, I went back to FTB2.0 and am quite happy with being able to post in Firefox for the first time. The create link popup works correctly and everything else from what I've seen so far. There's no spellchecker, but I don't use that anyway.

I blogged on it at the url below. Regards!

http://dbvt.com/blog/archive/2005/02/15/1264.aspx

TrackBack wrote Adding FreeTextBox 3.0 to .Text Version 0.95
on Thu, Feb 17 2005 8:47 PM
TrackBack wrote Adding FreeTextBox 3.0 to .Text Version 0.95
on Fri, Feb 18 2005 9:45 AM
PiRootOfPi Blog wrote Blog software updated.
on Thu, Dec 22 2005 4:34 PM

Add a Comment

(required)  
(optional)
(required)  
Remember Me?