зеркало из https://github.com/mozilla/gecko-dev.git
27395: Tiny change to make insert source actually be edit source. r=cmanske
This commit is contained in:
Родитель
1889f05d72
Коммит
adc752ce66
|
@ -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"/>
|
||||
|
|
Загрузка…
Ссылка в новой задаче