posts - 378, comments - 625, trackbacks - 116,
Dan Bartels online engineering logbook... Items that I find useful organized for my use, and indexed by google for yours. Here you can find information about Microsoft C# programming, SQL SERVER 2005, Telligent Systems CommunityServer, Dot Net Nuke, Windows Vista / Longhorn, and just about anything else that would compel me to type.

News

What I am Reading:


Professional Community Server

Past books can be viewed on:

Post Categories

Archives

Coding Techniques

Coding Tools

Community Sites

Deal Finders

Friends Businesses

Microsofties

Smartphones

Utilities

my blogmap
Adding FreeTextBox3 and NetSpell to DotText's Admin Area

Download the latest version of these two tools from their sites respectively

http://www.freetextbox.com
http://sourceforge.net/projects/netspell/

Open just the admin project and update / add references to the new netspell.spell checker dll and the new freetextbox.dll, and build the project (note if you have the whole solution open, you will get an error that the freetextbox.dll is in use, so be sure to only have the admin project open for this).  You might be able to just get away with copying in the dlls to the bin folder, but I didn't try that.

Now we need to add a couple of things to the web.config.  I chose to add them to the root, so if I wanted to add the freetextbox to my feedback form I could, but you could put this at the admin level all the same:

to the appsettings area add:

<appSettings>
   
<add key="DictionaryFolder" value="dic" />
< / appSettings>

and to the httpHandlers add:

<system.web>
   
<httpHandlers>
      <add verb="GET" path="FtbWebResource.axd" type="FreeTextBoxControls.AssemblyResourceHandler, FreeTextBox" />
   < /httpHandlers>
< / system.web>

Now copy the netspell dic folder to the root of the dottext site (not into the admin folder unless you edited the admin's web.config)

Copy the SpellCheck.ASPX, spell.js and spell.css files to the Admin folder (you should also copy these to the root if you are going to invoke them from there in a non admin implementation)

And we need to copy the FreeTextBox image gallery script into the admin area as well (copy the file ftb.imagegallery.aspx)

Finally a quick update to the Admin\UserControls\EntryEditor.ascx page to add the toolbarbutton for NetSpell (I made some formatting changes and went with the default buttons, but the net net is that you can replace the "IESpell" toolbar option with "NetSpell" and be sure to have "InsertImageFromGallery" in the list as well).  My ftbBody is as follows:

<FTB:FreeTextBox id="ftbBody" runat="server" HtmlModeCss="/skins/Tranquility/style.css" DesignModeCss="/skins/Tranquility/style.css" Focus="True" ShowTagPath="True" ImageGalleryPath="/images/" Visible="False">
   <toolbars>
      <FTB:Toolbar>
         <FTB:InsertImageFromGallery />
         <FTB:NetSpell />
      < /FTB:Toolbar>
   < /toolbars>
< /FTB:FreeTextBox>

Have fun (note it sill seems to be having trouble with the < / combination)

Dan

Published Sunday, December 12, 2004 11:10 PM by DanB

Filed under
::

Comments

# re: Adding FreeTextBox3 and NetSpell to DotText's Admin Area @ Wednesday, January 05, 2005 9:05 PM

This is excellent! Clear, complete! I thought it would be a much bigger deal, but thanks to your post I'll save a LOT of time. THANKS! Oh, and SUBSCRIBED. I do a lot of .text customization myself and will look forward to reading more posts from you on it. (Nice CAPCHTA action, as well. I'm a 3-digit guy myself. 6 is just too darn many!)

Dave BurkeT

# Firefox rich text editor support in .Text 0.95 (FTB 2.0) @ Saturday, January 08, 2005 10:51 PM

Dave Burke'

# re: Adding FreeTextBox3 and NetSpell to DotText's Admin Area @ Saturday, January 08, 2005 9:52 PM

Awesome, and glad to help... I really like to use this as a place to collect my thoughts, and keep references to things I discover... Both as a way to organize my own data (like a log or journal) and a way to give back to the community (ie google) cause I use it every day in so many ways. I am glad to see that you were able to find this article, and thanks for the encouragement.

-Dan

FYI, as a terrible speller, I still find IeSpell quite useful for things like this textarea control (not sure if I should bother putting the FTB in my post comments area)

Dan Bartels

# re: Adding FreeTextBox3 and NetSpell to DotText's Admin Area @ Sunday, January 09, 2005 6:37 PM

Agree completely with the utility of the blog to organize and give back to the community. I'm finding that it also builds relationships and establishes credentials.

I've been thinking about FTB for comments, too. Not quite sure on that. I'll monitor your blog for you thoughts or actions on doing so.

Dave BurkeT

# re: Adding FreeTextBox3 and NetSpell to DotText's Admin Area @ Thursday, January 13, 2005 7:24 PM

Let me just say that as a very newbie programmer, you did a good job, I was able to get this (mostly) working. I did encounter a few problems. I tried adding the entries for the web.config into the root file, and it didn't seem to work. Whenever I tried to edit a post, it would tell me that I needed to add FtbWebResource.axd to the web.config. After I added the entries to the web.config in the Admin directory, things went fine. I don't know why that is, it seemed to work for you.

Also, I wasn't sucessful just opening the admin project. I could open it, but when I tried to build it failed because it couldn't find dottext.Framework. I opened the solution and was able to rebuild with no problems, no errors about freetextbox.dll being in use.

The only problem I now have is that when I try to use the NetSpell button, I get an error that says "NetSpell libraries not properly linked". I put a copy of the .dll in Dottext 0.95.2004.102 Source\Code\OtherStuff\ThirdParty, which is where the FTB .dll is. In the Admin project, I added it under references. I also tried adding it into DottextWeb reference also, just in case, but that didn't help either.

Any thoughts on why I might be getting that error?

Anonymous

# re: Adding FreeTextBox3 and NetSpell to DotText's Admin Area @ Thursday, January 13, 2005 11:43 PM

I actually found the answer on Dave Burke's blog. I was missing this:

<SCRIPT language=JavaScript src="spell.js" type=text/javascript></SCRIPT>

in my EntryEditor.ascx file. Once I added that, it started working.

Anonymous

# re: Adding FreeTextBox3 and NetSpell to DotText's Admin Area @ Friday, January 14, 2005 7:55 AM

Yes, I had previously blogged about the spell.js file in a netspell posting
http://blog.danbartels.com/archive/2004/12/09/263.aspx But thanks for the addition here... I need to get some searching public on the site for visitors...

As far as assemblies being locked, you need to be sure that when you add an assembly to your project, you are adding it from a folder above the root folder of your project, and have copy local set to true.. The problem is that your intellisense opens dll's and has a bug that it doesn't close ones over a certain size (47K? i think)... So to work around this I make a folder at the same level as my project and copy the required external dll's into it
so for a project at \MyTestApp I would make a \MyTestAppAssemblies

I would copy things like the FTB and Netspell dlls into this folder, and then add them to my project from that location, that way the ones in your project do not get locked... If I have a Dependant DLL, like the DotTextAdmin, I setup a post build script to copy it into the assemblies folder, and reference it in the DotTextWeb from there... (hope this helps... I am just guessing on the DotNet project names... Its been a while)

Dan

Dan Bartels

# re: Adding FreeTextBox3 and NetSpell to DotText's Admin Area @ Friday, January 14, 2005 5:51 PM

One more thing. For the Image Gallery to work, you need to change:

ImageGalleryPath="/images/"

to

ImageGalleryPath="~/images/"

Or at least, that made it work for me. Without the ~, it was looking in c:\inetpub\wwwroot\images.

Anonymous

# re: Adding FreeTextBox3 and NetSpell to DotText's Admin Area @ Tuesday, January 25, 2005 4:17 PM

Hmm... regarding the image gallery function... what do you propose to do about aggregated sites with users as virtual paths? These users have images stored in /images/(the site)/(username)... can you think of a clever way to handle that?

VermyndaxTr

# re: Adding FreeTextBox3 and NetSpell to DotText's Admin Area @ Tuesday, January 25, 2005 9:16 PM

I am sure there is a property in .Text that indicates the root of a blog... When I find it ill let you know... It is probably poor form to let users upload to areas outside their control, but unfortunately the app doesn't really allow for directory security, so short of using Windows Authentication in your admin area, you are leaving a hole.

Dan

Dan Bartels

# Bringing .Text v.96 further @ Wednesday, January 26, 2005 3:35 AM

Almost one year ago I upgraded my .Text blog to .96. I blogged about it several times, my last post was...

Thomas Freu

# This Blog and it's engine.... @ Saturday, January 29, 2005 11:45 AM

Chris Walla

# This Blog and it's engine.... @ Saturday, January 29, 2005 12:31 PM

Chris Walla

# re: Adding FreeTextBox3 and NetSpell to DotText's Admin Area @ Monday, January 31, 2005 8:28 AM

I have NTFS permissions set on the directories themselves, so that's not a problem. However, I would like for it conveniently find your image gallery folder by username without browsing to it. I'm sure there's a way to grab it with Databinder.eval, but I'm not well-versed in the functions and what could accomplish this.

VermyndaxTr

# FTB ImageGalleryPath for Multi User .Text Implimentations @ Saturday, February 05, 2005 12:05 AM


DanBartels.

# FTB ImageGalleryPath for Multi User .Text Implimentations @ Saturday, February 05, 2005 12:21 AM


DanBartels.

# Adding FreeTextBox 3.0 to .Text Version 0.95 @ Thursday, February 17, 2005 12:10 PM

Ivan Yeh's

# re: Adding FreeTextBox3 and NetSpell to DotText's Admin Area @ Friday, April 15, 2005 10:43 PM

I can't get this to work. I had better luck this time than last (my site is still functioning at least). The deal is, Firefox still shows the plain old textarea and IE gives me all broken images and the following in the editor:

FreeTextBox has not been correctly installed. To install FreeTextBox either:
(1) add a reference to FtbWebResource.axd in web.config:
<system.web>
<httpHandlers>
<add verb="GET"
path="FtbWebResource.axd"
type="FreeTextBoxControls.AssemblyResourceHandler, FreeTextBox" />
</httpHandlers>
</system.web>

(2) Save the FreeTextBox image and javascript files to a location on your website and set up FreeTextBox as follows
<FTB:FreeTextBox id="FreeTextBox1" SupportFolder="ftbfileslocation" JavaScriptLocation="ExternalFile" ButtonImagesLocation="ExternalFile" ToolbarImagesLocation="ExternalFile" ButtonImagesLocation="ExternalFile" runat="server" />

I followed the very well laid-out instructions to a T and as able to recompile the Admin no problem.

Ideas? Anyone?

Ira Mitchell

# Upgrading the site (mostly on the Admin side) @ Friday, April 15, 2005 10:49 PM

3MEW.com

# Blog Upgrades @ Saturday, July 16, 2005 8:54 AM

Upgrading .Text with FreeTextBox 3.0 and adding ReverseDOS spam protection.

thingelstad.com

Leave a Comment

(required) 
(required) 
(optional)
(required) 
 
Powered by Community Server (Commercial Edition), by Telligent Systems
powered by god (with a little help from Telligent Systems - Community Server 2.1)