зеркало из https://github.com/mozilla/pjs.git
More 27395, very minor tweak: strip out body tags with attributes, and format the source shown. r=cmanske
This commit is contained in:
Родитель
7581b6bc06
Коммит
8145d06019
|
@ -46,9 +46,8 @@ function Startup()
|
|||
dump("Not all dialog controls were found!!!\n");
|
||||
}
|
||||
|
||||
selection = editorShell.GetContentsAs("text/html", 1);
|
||||
selection = (selection.replace(/<body>/,"")).replace(/<\/body>/,"");
|
||||
//dump("Got selection: '" + selection + "'\n");
|
||||
selection = editorShell.GetContentsAs("text/html", 35);
|
||||
selection = (selection.replace(/<body[^>]*>/,"")).replace(/<\/body>/,"");
|
||||
if (selection != "")
|
||||
dialog.srcInput.value = selection;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче