Bug 695801 Insert Character dialog doesn't switch to other editor window r+a=IanN
--- a/editor/ui/composer/content/editor.js
+++ b/editor/ui/composer/content/editor.js
@@ -3235,17 +3235,17 @@ function SwitchInsertCharToAnotherEditor
if (!enumerator) return;
// TODO: Fix this to search for command controllers and look for "cmd_InsertChars"
// For now, detect just Web Composer and HTML Mail Composer
while ( enumerator.hasMoreElements() )
{
var tempWindow = enumerator.getNext();
if (tempWindow != window && tempWindow != window.InsertCharWindow &&
- "GetCurrentEditor" in tempWindow && tmpWindow.GetCurrentEditor())
+ "GetCurrentEditor" in tempWindow && tempWindow.GetCurrentEditor())
{
tempWindow.InsertCharWindow = window.InsertCharWindow;
window.InsertCharWindow = null;
tempWindow.InsertCharWindow.opener = tempWindow;
return;
}
}
// Didn't find another editor - close the dialog