From 2f4243d3308106d6d72dcf18a4aec168e591004c Mon Sep 17 00:00:00 2001 From: "daniel%glazman.org" Date: Tue, 24 Oct 2006 09:01:23 +0000 Subject: [PATCH] Show ID/classes in structure toolbar and allow to select element; b=357389, r=brade (missing file, me trashes tortoiseCVS) --- .../base/content/composer/dummyCommands.inc | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 composer/base/content/composer/dummyCommands.inc diff --git a/composer/base/content/composer/dummyCommands.inc b/composer/base/content/composer/dummyCommands.inc new file mode 100644 index 00000000000..f4ff60204fa --- /dev/null +++ b/composer/base/content/composer/dummyCommands.inc @@ -0,0 +1,20 @@ +//----------------------------------------------------------------------------------- +var cmdDummyHTML = +{ + isCommandEnabled: function(aCommand, dummy) + { + return (EditorUtils.getCurrentEditorElement() && + EditorUtils.isDocumentEditable() && + EditorUtils.isEditingRenderedHTML()); + }, + + getCommandStateParams: function(aCommand, aParams, aRefCon) {}, + doCommandParams: function(aCommand, aParams, aRefCon) {}, + + doCommand: function(aCommand) + { + // do nothing + dump("Hey, who's calling the dummy command?\n"); + } + +};