I hope I am understanding the question well enough to point out the obvious use of the built-in DHTML Editing Component that only comes with Win IE. Here's how to get it fired up (show example using HTML::Template)—no Perl—so OT:
<script type="text/javascript">
function initEditor() {
Editor.document.designMode="On";
Editor.document.open();
Editor.document.write("<body><tmpl_var content><\/body>");
Editor.document.close();
}
</script>
... HTML ...
<iframe name="Editor" id="editor" marginheight="4" marginwidth="8" wid
+th="610" height="400" align="top"></iframe>
Of course, you can add a tool bar and use it's built-in calls, but warning: much of the way it styles text is antiquated HTML (I use my own javascript to make it more XHTML/CSS savvy). Anyway, that's what I've using for my CMS for a few years. I just hope Bill doesn't yank it in some future version of IE—or a bunch of CMS's will be instantly crippled.
—Brad "Don't ever take a fence down until you know the reason it was put up. " G. K. Chesterton
|