feedback
Oct 2 2007

FreeTextBox 4.0 Beta 1 Release

by John Dyer

You can now download FreeTextBox 4.0 Beta 1.

 Please add comments here or use the contact page on FreeTextBox.com

Sep 10 2007

FreeTextBox 4.0 Update

by John Dyer

For the last year, I've been working and reworking FreeTextBox 4 for various internal projects, trying to come up with a good API that will work well for both ASP.NET developers and generic JavaScript developers. The major updates that I wanted to do were

  • new more object oriented JavaScript API based on Prototype (and including some features like one toolbar for multiple editors)
  • support for other environments than ASP.NET
  • support for Opera and Safari
  • new styling and theming (including the Office 2007 style Floatie)
  • live CSS editing in another window
  • full document editing with doctypes

All of these are features built into the content manager of DTS website (www.dts.edu). Right now I have an early build at: http://www.freetextbox.com/ftb4/

 
 

I will have a beta release this month without all the features to help developers migrate (if they so choose) and then finish out the remaining features over the coming months. Having the entire control work in JavaScript apart from any dependancies on ASP.NET allows an ASP.NET developer to use a normal <asp:TextBox> control and "upgrade" with FreeTextBox. In plain HTML and JavaScript, this looks like:

<textarea id="MyHtmlCode" cols="14" rows="8"></textarea>
<script type="text/javascript">
var FreeTextBox1 = new FreeTextBox('MyHtmlCode');
</script>	

And in ASP.NET, it would look like

<asp:TextBox id="MyHtmlCode" TextMode="MultiLine" runat="server" />
<script type="text/javascript">
var FreeTextBox1 = new FreeTextBox('<%= MyHtmlCode.ClientID %>');
</script>	

Then in your AJAX code you can reference the editor object and its method directly:

<script type="text/javascript">
var html = FreeTextBox1.getHtml(); 
FreeTextBox1.setHtml('<b>new html</b>');
</script>
Nov 15 2006

Call for Help: FreeTextBox and Atlas

by John Dyer

I've been working with various versions of Microsoft's Atlas (now Ajax Toolkit) trying to get it to work well with FreeTextBox. This should be the last major update to version 3.x before I can release a test version of the oft-delayed FreeTextBox 4. If there is anyone who has a clear understanding of where FreeTextBox has problems with Atlas and could help debug it, I'd appreciate a little help. Thanks!

Jul 12 2006

Cross Browser Development Solution

by John Dyer

As with all web development, FreeTextBox requires that I work in multiple browsers to ensure that it works well for everyone. Both CSS and JavaScript have a lot of idiosyncrasies in the various browsers out there. Even Mozilla occasionally behaves differently in OS X than it does in Windows or Linux.

I thought I would show my setup in hopes that I might give anyone out there ideas on multiple browser development. My main machine is a Windows XP box (currently a Dell Inspiron 9100, moving to a Dell Precision M65 next week) with a second monitor on the right. I also have an older G4 running OS X that sits under my desk. This machine has an identical monitor to the laptop and it sits to the left of my main monitor.

To synchronize the machines, I use an open source application called Synergy2 which allows me to move my mouse from the main machine over to the OS X machine. In effect, I have 3 connected monitors, but the left one is really an OS X machine. This allows me to work with Safari (1.3) and the OSX version of Firefox while simultaneously working with Windows. For Linux, I use VMWare. I like to download pre-made Linux images from thoughtpolice like Fedora Core 5 (which is also a great way to test Mono apps) so I don’t have to spend time installing Linux and handling updates.

Here is a picture from above of my setup:

John Dyer's three desktops

Here are some links:

Jun 29 2006

FreeTextBox4 and IE7 Mention

by John Dyer

Here is a screenshot of the forthcoming FreeTextBox4. We'll have a preview release next week.

You'll notice a new look and several new features on this shot. More details next week.

Also thanks to the IE team for mentioning FreeTextBox as a nice example "DHTML Editor" in their post right before the IE7 Beta 3 release news.

Jun 16 2006

FreeTextBox 3.1.5 released

by John Dyer

Change Log

  • Bug: Infamous "error loading Languages.xml" fixed in all situation (included use in VS.NET 2005)
  • Bug: InsertImage errors on free and pro versions
  • Bug: fixed bug in WordClean <br> became <b> tags
  • Added: Arabic (Saudi Arabia) thanks to Mohammed Badwi
  • Added: Greek thanks to George J. Capnias (ASP.NET MVP)
  • Changes: to Danish by Frank J. Hernov (Citus Software ApS)
May 10 2006

FreeTextBox 3.1.4 released

by John Dyer
Change log
  • FEATURE: link and image URLs (<a href>, <img src>) are now preserved even when IE tries to change them. By default IE changes all links to absolute paths. FreeTextBox now overrides this.
  • BUG: there is now more code to ensure that content is not lost on postback
  • BUG: Firefox 1.5.x timeout fixed.
  • BUG: EnableHtmlMode=false (removes HTML/Design tabs) JavaScript error on postback
The major showstopper was the Firefox problems that sometimes occur when FreeTextBox is the first think to receive focus. The new feature to override IE's path handling should help out a lot in situations where relative paths are not ideal.
Jan 3 2006

FreeTextBox 3.1.2

by John Dyer

Should be released by Friday, January 6th, 2006.

  • Mac FF issues
  • WebResource.axd issue
  • ASP.NET 2.0 Designer problems
  • Remove Server name from URLs (ssl and port numbers don't work)
  • <TEXTAREA> tag inside FTB
  • CLS compliant
  • 'Enter' on color picker
  • Source code documentation doesn't explain snk
  • ASP.NET WebParts problems
  • Image gallery JS not working in ASP.NET 2.0

Also we should have a new site online by the end of the year.

Oct 30 2005

Man (and machine) Down: FreeTextBox 3.1.1 Delay

by John Dyer

I was almost finished with some fixes for 3.1.1(including problems inside repeaters and programmatically declared FTBs), but I caught a bad flu this weekend... and my primary dev machine is down. The motherboard failed and a Dell tech won't be out until Tuesday. The FTB updates aren't yet checked in yet, so I'm hoping the HD on the dev machine is still okay.

For all those waiting for fixes, sorry for the delay.

Oct 22 2005

FreeTextBox 3.1.1 and Opera 9

by John Dyer
FreeTextBox 3.1.1 will be released next week with a few more fixes in regards to resource management. There is a also a Firefox bug when switching between HTML and Design Mode pointed out by the guys over at Telligent.

In other news, Opera 9 now supports rich editing (even better than Safari) so Opera support is on its way!

Oct 3 2005

FreeTextBox 3.1 Released

by John Dyer

FreeTextBox 3.1 released today. Change log:

  • Fixed: Gecko deleting all when large images are in the HTML
  • Fixed: ASP.NET 2.0 Beta 2 support for internal resources. No web.config changes. Just use the dll.
  • Fixed: ASP.NET 2.0 Beta 2 designer support

Sep 29 2005

Announcing FreeTextBox 3.1 and 4.0

by John Dyer

Early next week, I'll be releasing the last 3.x release of FreeTextBox. The main issues that will be addressed are ASP.NET 2.0 Beta 2 compatilibity issues:

  • There are some issues with the dynamic file handler
  • Visual Studio Design time support

After that all work will be on FreeTextBox 4.0. Here are some of the initial goals:

  • No bugs ;)
  • Safari support
  • Totally new toolbar system
    • Toolbars usable for other things (not tied to FreeTextBox, can function as a separate control)
    • One toolbar for multiple FreeTextBox editors
    • Multiple toolbars for each FreeTextBox
    • Draggable (floating)
    • Work in a separate frame
  • Full XHTML support (even for IE)
  • Localized text in JavaScript windows
  • Rich dropdownlists instead of standard select boxes (also functional as a separate control)
  • New popup window UI (for insertions)
  • Themeable through CSS/stylesheets (instead of lots of .NET properties)
  • Full-screen editing
  • Much, much more...

Here's a screenshot of the early UI (two editors, three toolbars):

FreeTextBox 4.0 image
Sep 23 2005

Cross-browser, Cross-OS testing tools

by John Dyer

Working with FreeTextBox and other JavaScript controls requires a lot of os/brower testing. Below are some of the tools I use to get the job done on one machine.

  • PC
    • Internet Explorer
      • I have IE 6.0 installed on my development machine, but I test IE 4.0, 5.0, IE 5.5, and IE 7.0 (beta 1) using the technique described in this tutorial (download).
      • The IE team has released a new developer toolbar that has some of the feature of the Mozilla toolbar (and a few tasty new ones).
    • Netscape 4.x
      • Still available for download at Netscape's FTP site (version 4.8)
      • I don't write for NS4 (I gave up on "layer" madness a long time ago), but since we have a lot of foriegn visitors, we need to ensure our sites are still functional - another great reason to code with standards.
    • Opera
    • Mozilla
      • Still the easiest to test, generally the same across Windows, Linux, and Mac.
  • Mac
    • PearPC - PearPC is a free Mac emulator for the PC. It's possible, though very difficult to get OSX running inside PearPC. Great tutorial on setting it up.
    • Synergy - if you do have a Mac you can use for testing, you can control the Mac from your PC (or viceversa) as if it were a second monitor. Synergy is the coolest Open Source app I've seen. I can't believe someone is not making millions off of the idea! If you need to have multiple testers, then I'd recommend using VNC.
    • Safari 1.x and 2.0 support HTML editing and I'm working to include this in the next version of FreeTextBox. We also need to test XHTML/CSS on Safari, IE5, and Mozilla. JavaScript testing is also crucial, but it requries a little work to get it up. Apple has a good Developer FAQ.
  • Linux
    • The two things I'm looking for in Linux is ensuring that code works the same in all Mozilla version (which it does 99% of the time) and that other browsers (Konquerer, etc.) don't do anything weird.
    • When looking to download a Linux disto its sometimes hard to find a link to a free download. The best place to find downloads is LinuxISO.
    • Knoppix - knoppix is a linux distro designed to fit on a single bootable CD. All you need to do is download it, burn it, and reboot. It has most of the utilities you need (including several browser versions) and even lets you install plugins like Flash.
    • VMWare - if you don't want to reboot your machine, VMWare is the answer for Linux (and older versions of Windows if you need it). It does require you to pick a distro and figure out how to install it, but most distros come with all the apps/browsers you need. We use either Novell's SuSE (since that's our server flavor) or Red Hat since it's easy to use.
    • Virtual PC - I haven't used Microsoft's Virtual PC, but I hear it's pretty good.
    • Synergy - again, if you have another PC lying around, Synery is a great way to test it without using terminals and such.

Link Summary

Note: This post doesn't cover mono/ASP.NET on Linux. It's only for browser testing.

Jun 7 2005

Safari 1.3 and 2.0 support coming soon

by John Dyer

FreeTextBox (like all other JavaScript HTML editors) supports browsers that have the 'contentEditable' attribute enabled and the 'document.execCommand' method. IE 5.0 for Windows was the first to enable this, then Mozilla started supporting it with their 2003/06/24 build. Now, Safari 1.3 for Mac OSX 10.3.9 and Safar 2.0 for Mac OSX 10.4 (Tiger) has enabled some support for (original post, example editor)

I am working to enable Safari 1.3 and 2.0 support for the next version of FreeTextBox. It's a fun challenge and will hopefully broaden ASP.NET and FreeTextBox's usefulness.

Update: Just FYI, Safari support (if I can get it working) will probably be pretty spotty. Right now, it appears Safari looses focus on selected text when a button is pressed!

Oct 29 2004

FTB Image Gallery Demo

by John Dyer

I put up a demo of FreeTextBox 3.0's image gallery control (it's the image button on the last toolbar). You can:

  • navigate up and down directories
  • set all major image properites
  • upload images
  • create folders

The main property you need to set it is FreeTextBox.ImageGalleryPath. It uses .NET notation, so “/images“, “images“, and “~/images“ may all point to different places.  Please read up on ResolveUrl().

The other property is ImageGalleryUrl which tells FTB where the file ftb.imagegallery.aspx resides. It defaults to “ftb.imagegallery.aspx?rid={0}&cid={0}“. The {0} are replaced by ImageGalleryPath on the client side.