|
Posted by Dung Ping on 09/25/05 16:05
Thanks for help. I have some questions about the FF sample.
Toby Inkster wrote:
>
> Mozilla 1.4+ and other browsers based on that engine (Netscape 7.1,
> Firefox, Ephiphany, etc) do have a similar concept, though it's not
> completely compatible. You must set the attribute on a whole document:
> not just part of it (though that whole document could be loaded via an
> iframe); and it must be set via Javascript.
>
> <iframe id="myelement" src="data:Blah%20%3Cb%3Eblah%3C%2Fb%3E"></iframe>
In above line, is the word 'data' mandatory? What does the
Blah%20%3Cb%3Eblah%3C%2Fb%3E stand for? I know the the percentage
symbol plus a number stands for something, but don't remeber what.
Thanks again.
Dung Ping
> <script type="text/javascript">
> var e = document.getElementById("myelement");
> e.contentDocument.designMode="on";
> </script>
>
> The easy thing to do it to use a library that smoothes over the
> incompatibilities. I can recommend using widgEditor, which can be
> downloaded free from http://www.themaninblue.com/experiment/widgEditor/
>
> Of course, all these methods are proprietary and should not be relied upon
> for a public website. Always provide a fall-back to a more standards
> compliant way of editing the text, such as TEXTAREA; or thinking outside
> the box, allow the user to download the file, edit it in a tool of their
> choice (be that Word, Notepad, Dreamweaver or Emacs) and then send back
> the file using a file upload form.
>
> Looking towards the future, the closest thing to a standard method for
> rich text editing that we're likely to see would be Web Applications 1.0,
> which is being worked on jointly by Apple Computers Inc, the Mozilla
> Foundation and Opera Software ASA. It is quite a way off from
> implementation though.
>
> --
> Toby A Inkster BSc (Hons) ARCS
> Contact Me ~ http://tobyinkster.co.uk/contact
[Back to original message]
|