Mozile (xhtml editing in your browser) 
| resources: | Home Use FAQ Contribute Mailing List Plan Source Code Bugs |
|---|
Welcome to Mozile, the WYSIWYG XHTML editor for Mozilla! This document describes the Mozile content, a directory full of JavaScript, XML, and XUL files of different sorts. This is where all the hard work gets done for Mozile.
Documents
- Mozile Documentation - A General Introduction to Mozile
- Mozile Development - Notes on the Development of Mozile
- Mozile Content - Notes on the Code behind Mozile
- Mozile Locale - Notes on the Localization of Mozile
- Mozile Skin - Notes on the Styling of Mozile
Contents
Mozile Content
File Layout
The Mozile code is separated into several directories, and further separated into files which contain functions on a single theme. Look in these directories for the source code:
- main contains the majority of the Mozile code. If it doesn't make sense to look put the code somewhere else, this is where it goes,
- eDOM contains the eDOM code, which extends the normal DOM to allow inline editing,
- mes contains Mozile Editing Schemes,
- saving contains the code needed to access the local file system or WebDAV in order to save files,
- XUL contains the XUL files that describe Mozile's user interface (UI).
Mozile Main
The main directory contains most of the JavaScript files which make Mozile work. Below are brief descriptions:
- mozileMain.js contains the global variables for Mozile and the mozileTBStart() function,
- mozileCommands.js waits for the mozileFormat() and mozileCommand() to be called, then decides what changes to make to the document.
- mozileConfiguration.js parses the configuration files and handles the current.xml versioning file,
- mozileCopyCutPaste.js deal with the system clipboard,
- mozileDetection.js detects when Mozile should and should not be active,
- mozileKeyboard.js listens for keystrokes and (when it's supposed to) enters them into the document or calls commands,
- mozileMouse.js listens for mourse clicks and calls commands,
- mozileParseMES.js parses the MES files,
- mozileToolbar.js takes care of the Mozile tool bar, deciding which context buttons and menus should be shown,
- mozileUndoRedo.js takes care of the undo and redo commands,
- mozileUtilities.js contains functions that are useful in several other files, shared in common,
- mozileWrappers.js adds some capabilities to Mozilla that Mozile needs.
eDOM
The eDOM directory contains the Editable DOM files which are the core of Mozile. They are,
- eDOM.js which does most of the work,
- domlevel3.js which bridges eDOM with the draft DOM Level 3 specification from the W3C,
- eDOMXHTML.js adds certain XHTML specific code to eDOM,
- mozCE.js adds content editable support for Mozilla,
- mozIECE.js tries to bridge eDOM for Mozilla with Internet Explorer.
MES
The mes directory contains Mozile Editing Schemes. There's only one right now, and a commented mock-up:
- editingScheme.xml is a well commented demonstration of a MES,
- mes-XHTML.xml is the actual MES that Mozile uses by default,
- tags-XHTML.css the CSS which allows tag view mode for XHTML.
Saving
The saving directory contains the files which facilitate Mozile saving. They are,
- mozileSave.js the main interface between Mozile and the lower level details,
- jsdav.js allows JavaScript to talk to WebDAV. This code comes from Twingle,
- mozileConfig.xml an old version of the Mozile configuration file,
- mozileDataTransport.js the main functions which implement Mozile's save methods,
- rsd.xml an example of an RSD configuration file for Mozile.
XUL
The XUL directory contains the files which define the Mozile UI.
- about.xul describes the About dialog,
- debugging.js controls the debugging dialog,
- debugging.xul describes the layout of the debugging dialog.
- info.js controls the Page Info dialog,
- info.xul describes the Page Info dialog.
- mozileFirefox.xul describes the Mozile tool bar for Firefox,
- mozileMozilla.xul describes the Mozile tool bar for Mozilla,
- options.js provides some JavaScript support for the options dialog,
- options.xul describes the options dialog,
- save.js provides JavaScript for the Save dialog,
- save.xul describes the Save dialog.
- source.js provides JavaScript for the source dialog,
- source.xul describes the source view dialog.
James A. Overton - http://mozile.mozdev.org - 2004-06-20