Bug 69329 Use plain text editor for HTML source (also implements find in HTML source) r=brade sr=alecf

git-svn-id: svn://10.0.0.236/trunk@143674 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
neil%parkwaycc.co.uk
2003-06-13 12:55:17 +00:00
parent 95747f691f
commit dd054d6a73
6 changed files with 116 additions and 82 deletions

View File

@@ -68,19 +68,19 @@ function loadDialog()
function onLoad()
{
// Get the xul <editor> element:
var editorElement = window.arguments[0];
// If we don't get the editor, then we won't allow replacing.
gEditor = GetCurrentEditor();
gEditor = editorElement.getEditor(editorElement.contentWindow);
if (!gEditor)
{
window.close();
return;
}
// Get the xul <editor> element:
var editorXUL = window.opener.document.getElementById("content-frame");
// Get the nsIWebBrowserFind service:
gFindInst = editorXUL.webBrowserFind;
gFindInst = editorElement.webBrowserFind;
try {
// get the find service, which stores global find state