Thanks. Note that there has been some discussion of this editor in the
MathML newsgroup, so further posts should probably move there.

An XPI is just a zip file. My XPI contains just 2 files: install.js and
mathmled.jar. The JAR is just a zip file. When you extract the contents,
you'll have the source. So, WinZip is sufficient to browse XPIs.

As a rough outline, XUL files specify windows, menus, keys, commands, etc.
JS files do the work, but only if referenced from XUL. DTD files give string
resources.

I can be reached via email or these newsgroups.  I don't use ICQ.

<[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Your MathML editor looks really nice, it�s very usefull.
> Yeah, I would like to know how to get the code for the Editor.Can you
> show me some code please.
>
> Btw, do you have ICQ?Or can I just mail you?
>
> Steve Swanson wrote:
> > You might also try looking at my experimental MathML editor at
> > http://www.newmexico.mackichan.com/MathML/mathmled.xpi It edits
documents
> > (in an iframe) using JavaScript. The JavaScript is fired from toolbars,
> > menus and control keys. I don't use the editorShell stuff (because that
> > doesn't work with XML documents).
> >
> > The source is all contained in the XPI.  Send me a note if you need
hints on
> > how to extract it.
> >
> > Of course you'll need a MathML-enabled Mozilla to run it (must be >=
0.9.9).
> > And there seem to be install permission issues on *nix systems.
> >
> > <[EMAIL PROTECTED]> wrote in message
> > news:[EMAIL PROTECTED]...
> >
> >>Thanks for your reply, but it still doesn�t work.I can load a file using
> >>the src attribute in the tag, but I can�t change it trough the
> >>javascript.And the page is displayed like an IFrame.Shouldn�t the Editor
> >>allow the user to do something with the document?
> >>
> >>I have DHTML/XML experience, but I have never used XUL before.So it�s
> >>pretty confusing, especially since I cant get it to work.Can you please
> >>show me a simple example of how to use the Editor?
> >>Thanks in advance.
> >>
> >>Mike Lee wrote:
> >>
> >>>[EMAIL PROTECTED] wrote:
> >>>
> >>>
> >>>>This question has probalby been asked a lot, but I just can�t get the
> >>>>editor to work.
> >>>>I put the EDITOR tag in my XUL file, and it only shows a white box.But
> >>>>I cant load
> >>>>something into the editor using the SRC attribute.All other XUL
> >>>>objects work (like button etc.).
> >>>>The documentation doesn�t really show how to use the EDITOR.Can
> >>>>someone help me with this?
> >>>>
> >>>
> >>>Use the following javascript, it's based on the one from the editor's
> >>>documentation. It should get everything started. If you want to see
> >>>something less complicated than mozilla composer, checkout
> >>>http://mozblog.mozdev.org (Just note that mozblog uses frames[] to get
> >>>webShellWindow and contentWindow because it want to live with the
> >>><browser> on the same window)
> >>>
> >>>function editorOnLoad()
> >>>{
> >>>    editorShell = document.getElementById("edit-frame").editorShell;
> >>>    editorShell.editorType = 'html';
> >>>    editorShell.webShellWindow = window.window;
> >>>    editorShell.contentWindow = window._content;
> >>>    editorShell.RegisterDocumentStateListener(DocumentStateListener);
> >>>    editorShell.contentsMIMEType = "text/html";
> >>>    editorShell.LoadUrl("about:blank");
> >>>}
> >>>
> >>
> >>
> >
> >
>
>



Reply via email to