murugu has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: IE as editor
by nightwatch (Scribe) on Jul 07, 2004 at 05:34 UTC

    Check out the Rich Edit Component for Internet Explorer. IE does in fact have a little-known mode that allows the browser to behave as a text editor.

    This ends up being more of a JavaScript problem than a Perl one.

Re: IE as editor
by jZed (Prior) on Jul 07, 2004 at 04:31 UTC
    Wx has ways of creating text editors and ways of embedding IE, maybe something could be cooked up.

    Mozilla comes with a "composer" which lets you switch back and forth between viewing and editing a page and also lets you upload your edits.

Re: IE as editor
by NetWallah (Canon) on Jul 07, 2004 at 04:50 UTC
    Several options are available - depending on the "editing" features desired. You can get simple editing using a HTML page with a form containing a text box - this would allow your copy/paste and simple insert.

    You can embed a link to a ms WORD DOC file, and invoke WORD via the browser, if the user has it installed.

    You can even make this question have some connection to perl, by serving such a HTML document via a perl program using something like HTTP::Daemon.

        Earth first! (We'll rob the other planets later)

Re: IE as editor
by bradcathey (Prior) on Jul 07, 2004 at 18:47 UTC
    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