function for image map editor added (contributed by Dan Haddix)

This commit is contained in:
brade%netscape.com 1999-10-19 13:34:34 +00:00
parent c8661f28f8
commit 7abfbbced9

View File

@ -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 ---------------------------