зеркало из https://github.com/mozilla/pjs.git
fix plain text editor (r=cmanske@netscape.com, jfrancis@netscape.com)
This commit is contained in:
Родитель
7a577bf456
Коммит
0bb65572eb
|
@ -62,6 +62,18 @@ function EditorOnLoad() {
|
|||
return;
|
||||
}
|
||||
|
||||
function TextEditorOnLoad() {
|
||||
// See if argument was passed.
|
||||
if ( window.arguments && window.arguments[0] ) {
|
||||
// Opened via window.openDialog with URL as argument.
|
||||
// Put argument where EditorStartup expects it.
|
||||
document.getElementById( "args" ).setAttribute( "value", window.arguments[0] );
|
||||
}
|
||||
// Continue with normal startup.
|
||||
EditorStartup( 'text', document.getElementById("content-frame"));
|
||||
return;
|
||||
}
|
||||
|
||||
function EditorStartup(editorType, editorElement)
|
||||
{
|
||||
dump("Doing Editor Startup...\n");
|
||||
|
|
Загрузка…
Ссылка в новой задаче