mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-16 22:04:36 +00:00
Fixed bug 15442 - use about:blank for empty doc URL for editor. r=law
This commit is contained in:
parent
a1db28e781
commit
004c1677de
@ -184,7 +184,7 @@ function NewEditorWindow()
|
||||
dump("In NewEditorWindow()...\n");
|
||||
// Open editor window with blank page
|
||||
// Kludge to leverage openDialog non-modal!
|
||||
window.openDialog( "chrome://editor/content", "_blank", "chrome,all,dialog=no", "resource:/res/html/empty_doc.html");
|
||||
window.openDialog( "chrome://editor/content", "_blank", "chrome,all,dialog=no", "about:blank");
|
||||
}
|
||||
|
||||
function NewEditorFromTemplate()
|
||||
|
@ -174,18 +174,15 @@ function toEditor()
|
||||
{
|
||||
//TODO: Find and existing editor window using CycleWindow()
|
||||
// For now, this opens a new blank window
|
||||
window.openDialog( "chrome://editor/content/EditorAppShell.xul",
|
||||
"_blank",
|
||||
"chrome,dialog=no,all",
|
||||
"resource:/res/html/empty_doc.html" );
|
||||
toNewTextEditorWindow();
|
||||
}
|
||||
|
||||
function toNewTextEditorWindow()
|
||||
{
|
||||
window.openDialog( "chrome://editor/content/TextEditorAppShell.xul",
|
||||
"_blank",
|
||||
"chrome,dialog=no,all",
|
||||
"resource:/res/html/empty_doc.html");
|
||||
window.openDialog( "chrome://editor/content/TextEditorAppShell.xul",
|
||||
"_blank",
|
||||
"chrome,dialog=no,all",
|
||||
"about:blank");
|
||||
}
|
||||
|
||||
function ShowWindowFromResource( node )
|
||||
|
Loading…
x
Reference in New Issue
Block a user