Fixed bug 15442 - use about:blank for empty doc URL for editor. r=law

This commit is contained in:
cmanske%netscape.com 1999-10-15 21:24:45 +00:00
Родитель e5d67abd7b
Коммит fe99e05866
2 изменённых файлов: 6 добавлений и 9 удалений

Просмотреть файл

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