As the subject suggests, I'd like to extend the mozilla editor/composer to give the user the chance to easily insert tags that are specific to our task. Also, Ideally, I'd like to extend the insert menu, or even create another menu with "Insert Custom1," "Insert Custom2," etc.
I spent a few hours browsing the codebase, and I have some ideas about how to do this, but I want to throw them out here to see if those more experienced (anyone reading this) can tell me whether I'm on the wrong track before I invest a bunch of time on this, whether there's an easier way to do this, or whether I should give up and look for a different platform, etc.. :) My research so far suggests: Possible method to enable Insert/Custom Tag: --- 1) Create menuitem in http://lxr.mozilla.org/mozilla1.7/source/composer/base/content/editorOverlay.xul and associate with command cmd_custom Also add ENTITY in editorOverlay.dtd 2) make command, oncommand="goDoCommand('cmd_custom')" 3) in ComposerCommands.js use commandTable.registerCommand("cmd_custom", nsCustomCommand) to register (also edit doCommand: Function(...) 4) in ComposerCommands.js add var nsCustomCommand = {}, and openDialog my custom EdCustomProps.xul/.js dialog, using something like EdHLineProps.xul as a model... 5) call editor.createElementWithDefaults(tagName); to insert? To get the All Tags view to show custom images for my new tags: --- 1) create the tag-custom.gif file 2) add style to editor/ui/composer/content/EditorAllTags.css Get the tag to be recognized by the editor?: Create entry in /htmlparser/public/nsHTMLTagList.h? Create entry in nsElementTable.cpp? Thank you in advance for the help! Best, David _______________________________________________ mozilla-editor mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-editor
