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
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.