|
diff --git a/mozilla/editor/ui/dialogs/content/EdLinkProps.js b/mozilla/editor/ui/dialogs/content/EdLinkProps.js
index 898d35dedcd..b905c838cce 100644
--- a/mozilla/editor/ui/dialogs/content/EdLinkProps.js
+++ b/mozilla/editor/ui/dialogs/content/EdLinkProps.js
@@ -28,11 +28,17 @@ function Startup() {
dump("toolkitCore not found!!! And we can't close the dialog!\n");
}
+ // temporary while this window is opend with ShowWindowWithArgs
+ dump("Getting parent appcore\n");
+ var editorName = document.getElementById("args").getAttribute("value");
+ dump("Got editorAppCore called " + editorName + "\n");
+
// NEVER create an appcore here - we must find parent editor's
- appCore = XPAppCoresManager.Find("EditorAppCoreHTML");
+ appCore = XPAppCoresManager.Find(editorName);
if(!appCore || !toolkitCore) {
dump("EditorAppCore not found!!!\n");
toolkitCore.CloseWindow(window);
+ return;
}
dump("EditorAppCore found for Link Properties dialog\n");
diff --git a/mozilla/editor/ui/dialogs/content/EdLinkProps.xul b/mozilla/editor/ui/dialogs/content/EdLinkProps.xul
index 860524296ab..304a89ab80d 100644
--- a/mozilla/editor/ui/dialogs/content/EdLinkProps.xul
+++ b/mozilla/editor/ui/dialogs/content/EdLinkProps.xul
@@ -2,6 +2,7 @@
+
+
+
+
|