Help.Web/editor/search.htm
(开头部分) 5KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="style/editor.css" rel="stylesheet" type="text/css">
<script>
var sLangDir=dialogArguments.oUtil.langDir;
document.write("<scr"+"ipt src='language/"+sLangDir+"/search.js'></scr"+"ipt>");
</script>
<script>writeTitle()</script>
<script>
function bodyOnLoad()
{
var oEditor=dialogArguments.oUtil.oEditor;
oEditor.focus()
inpSearch.focus()
}
function doSearch()
{
if(!dialogArguments.oUtil.obj.checkFocus()){return;}//Focus stuff
var oEditor=dialogArguments.oUtil.oEditor;
var oSel=oEditor.document.selection.createRange();
if(chkMatchCase.checked && chkMatchWord.checked) sType=6;
else if(chkMatchCase.checked) sType=4;
else if(chkMatchWord.checked) sType=2;
else sType=0;
oSel.collapse(false)
if(oSel.findText(inpSearch.value,1000000000,sType)) oSel.select();
else
{
if(confirm("Finished searching the document.\nSearch again from the top?"))
{
oSel.expand("textedit");
oSel.collapse("true");
oSel.select();
doSearch();
}
}
dialogArguments.realTime(dialogArguments.oUtil.oName);
}
function doReplace()
{
if(!dialogArguments.oUtil.obj.checkFocus()){return;}//Focus stuff
var oEditor=dialogArguments.oUtil.oEditor;
var oSel=oEditor.document.selection.createRange();
if(oSel.text.toLowerCase()==inpSearch.value.toLowerCase())
{
dialogArguments.oUtil.obj.saveForUndo();
oSel.text=inpReplace.value;
doSearch();
}
else
{
doSearch();
}
}
var nReplaced=0;
function doReplaceAll()
后面还有 121 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
