mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-31 02:48:48 +00:00
function for image map editor added (contributed by Dan Haddix)
This commit is contained in:
parent
c8661f28f8
commit
7abfbbced9
@ -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 ---------------------------
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user