27395: Tiny change to make insert source actually be edit source. r=cmanske

This commit is contained in:
akkana%netscape.com 2000-02-15 21:19:30 +00:00
Родитель 1889f05d72
Коммит adc752ce66
2 изменённых файлов: 7 добавлений и 2 удалений

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

@ -46,8 +46,13 @@ function Startup()
dump("Not all dialog controls were found!!!\n");
}
// Set initial focus
selection = editorShell.GetContentsAs("text/html", 1);
selection = (selection.replace(/<body>/,"")).replace(/<\/body>/,"");
//dump("Got selection: '" + selection + "'\n");
if (selection != "")
dialog.srcInput.value = selection;
// Set initial focus
dialog.srcInput.focus();
}

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

@ -45,7 +45,7 @@
<xul:keyset id="keyset"/>
<label id="srcMessage" for="srcInput">&sourceEditField.label;</label>
<textarea rows="6" cols="50" id="srcInput" />
<textarea rows="16" cols="80" id="srcInput" />
<div>&example.label;</div>
<xul:spring class="spacer"/>
<div class="separator" align="horizontal"/>