Embedding <editor>

Introduction

Editor is a XUL widget that allows for WYSIWYG HTML editing. This allows developers to quickly add formatted editing to a XUL application. Unfortunately how to add editor to a XUL app is not well documented.

What You Should Know

This document assumes a familiarity with XUL and building applications in XUL. A good place to learn about XUL is www.xulplanet.com< /a> , especially the XUL Tutorial and the XUL Application Tutorial . Information can also be found on the n.p.m.xul newsgroup .

Downloading the Examples

You can download all the examples from the examples directory , however these XUL files are not usable from or file:// URLs. I have a XPI package containing all of the examples, so you can easily run them from chrome. You will need to restart your browser after installation, and the examples will be accessible via: chrome://editorexamples/content/ or in your mozilla installation directory under chrome/editorexamples/content/. These examples must be run from their own windows, they will not initialize correctly from the browser window.

On to A Minimal Editor.

Subpages: