diff --git a/editor/ui/composer/content/EditorCommands.js b/editor/ui/composer/content/EditorCommands.js index 26a6c61b644b..aad65bd8e6af 100644 --- a/editor/ui/composer/content/EditorCommands.js +++ b/editor/ui/composer/content/EditorCommands.js @@ -17,6 +17,7 @@ * * Contributors: * Sammy Ford + * Dan Haddix (dan6992@hotmail.com) */ /* Main Composer window UI control */ @@ -489,6 +490,19 @@ function EditorApplyStyleSheet(styleSheetURL) contentWindow.focus(); } +function EditorImageMap() +{ + if (editorShell){ + var tagName = "img"; + image = editorShell.GetSelectedElement(tagName); + + //Test selected element to see if it's an image + if (image){ + //If it is, launch image map dialog + window.openDialog("chrome://editor/content/EdImageMap.xul", "_blank", "chrome,close", ""); + } + } +} // --------------------------- Output ---------------------------