|
||||||||
PREV NEXT | FRAMES NO FRAMES |
XBL definitions for Mozile editor widgets.
Version: 0.7
Author: James A. Overton
<?xml version="1.0" encoding="UTF-8"?> <!-- /* ***** BEGIN LICENSE BLOCK ***** * Licensed under Version: MPL 1.1/GPL 2.0/LGPL 2.1 * Full Terms at http://mozile.mozdev.org/license2.html * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License * for the specific language governing rights and limitations under the * License. * * The Original Code is James A. Overton's code (james@overton.ca). * * The Initial Developer of the Original Code is James A. Overton. * Portions created by the Initial Developer are Copyright (C) 2005-2006 * the Initial Developer. All Rights Reserved. * * Contributor(s): * James A. Overton <james@overton.ca> * * ***** END LICENSE BLOCK ***** */ /** * @fileoverview XBL definitions for Mozile editor widgets. * @link http://mozile.mozdev.org * @author James A. Overton <james@overton.ca> * @version 0.7 */ --> <bindings id="document" xmlns="http://www.mozilla.org/xbl" xmlns:xbl="http://www.mozilla.org/xbl" xmlns:html="http://www.w3.org/1999/xhtml" xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <binding id="editor"> <content> <children/> </content> <implementation> <constructor> // set the tabindex attribute to 12345, which should be unique this.setAttribute('tabindex',12345); // add this editor to the editor list mozile.addEditor(this); </constructor> </implementation> <handlers> <handler event="focus"> mozileHandleFocus(event); </handler> <handler event="blur"> mozileHandleBlur(event); </handler> <handler event="keypress"> mozileHandleKeypress(event); </handler> <handler event="keyup"> mozileHandleKeyup(event); </handler> <handler event="mouseup"> mozileHandleMouseup(event); </handler> <!-- <handler event="click"> //if(mozile.toolbarUpdate==2) { // mozile.updateToolbar(); //} </handler> <handler event="mousepress"> //if(mozile.toolbarUpdate==2) { // mozile.updateToolbar(); //} </handler> <handler event="select"> //alert("Select: "+event.originalTarget.nodeName); //var command = event.originalTarget.getAttribute("oncommand"); //eval(command); //event.originalTarget.doCommand(); </handler> --> </handlers> </binding> </bindings>
|
||||||||
PREV NEXT | FRAMES NO FRAMES |