зеркало из https://github.com/mozilla/gecko-dev.git
Don't allow inserting symbols and foreign chars while in HTML source mode, b=104267, r=brade, sr=kin
This commit is contained in:
Родитель
837a26837a
Коммит
34fab33ca0
|
@ -79,6 +79,16 @@ function onOK()
|
|||
//return true;
|
||||
}
|
||||
|
||||
// Don't allow inserting in HTML Source Mode
|
||||
function onFocus()
|
||||
{
|
||||
var enable = true;
|
||||
if ("gEditorDisplayMode" in window.opener)
|
||||
enable = !window.opener.IsInHTMLSourceMode();
|
||||
|
||||
SetElementEnabledById("ok", enable);
|
||||
}
|
||||
|
||||
function Unload()
|
||||
{
|
||||
window.opener.InsertCharWindow = null;
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
xmlns:html="http://www.w3.org/1999/xhtml"
|
||||
onload = "Startup()"
|
||||
onunload = "Unload()"
|
||||
onfocus = "onFocus()"
|
||||
orient="vertical">
|
||||
|
||||
<!-- Methods common to all editor dialogs -->
|
||||
|
|
Загрузка…
Ссылка в новой задаче