23
Tue, Apr
1 New Articles

Microsoft Computing: WYSIWYG HTML Editing in Internet Explorer (5.5+/Win)

Microsoft
Typography
  • Smaller Small Medium Big Bigger
  • Default Helvetica Segoe Georgia Times
In doing some late-night research for a recent community-based software project, I stumbled across a very cool open-source product/piece of code from interactivetools.com. Called htmlArea, it exploits an interesting capability in Internet Explorer 5.5 and higher in Windows. With this code and some very minor tweaks, your HTML
editor_generate('header'); // field, width, height







Figure 2: This code will create a WYSIWYG rich text editing field for IE5.5+/Win users. Most of the code is provided for you; you just paste it in.

How Does It Work?

It works on an IE-only (so far) property of HTML objects called the CONTENTEDITABLE property. If this property is turned on for an HTML object (

,