Help.Web/editor/scripts/moz/paragraph.htm
(开头部分) 10KB这里只显示每个文件的开头 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=window.opener.oUtil.langDir;
document.write("<scr"+"ipt src='../language/"+sLangDir+"/paragraph.js'></scr"+"ipt>");
</script>
<script>writeTitle()</script>
<script>
function GetElement(oElement,sMatchTag)
{
while (oElement!=null&&oElement.tagName!=sMatchTag)
{
if(oElement.tagName=="BODY")return null;
oElement=oElement.parentNode;
}
return oElement;
}
function doWindowFocus()
{
window.opener.oUtil.onSelectionChanged=new Function("realTime()");
}
function bodyOnLoad()
{
window.onfocus=doWindowFocus;
window.opener.oUtil.onSelectionChanged=new Function("realTime()");
realTime()
}
function realTime()
{
var oEditor=window.opener.oUtil.oEditor;
var oSel=oEditor.getSelection();
var oElement = (window.opener.oUtil.activeElement)
? window.opener.oUtil.activeElement
: window.opener.getSelectedElement(oSel);
var sTagName=oElement.nodeName;
if(sTagName=="H1"||sTagName=="H2"||
sTagName=="H3"||sTagName=="H4"||
sTagName=="H5"||sTagName=="H6"||
sTagName=="PRE"||sTagName=="P"||
sTagName=="DIV"||sTagName=="TD"||
sTagName=="TABLE"||sTagName=="TEXTAREA"){;}
else return;
if(oElement)
{
var sTextAlign=oElement.style.textAlign;
var sTextIndent=oElement.style.textIndent;
var sWhiteSpace=oElement.style.whiteSpace;
var sWordSpacing=oElement.style.wordSpacing;
var sLetterSpacing=oElement.style.letterSpacing;
var sLineHeight=oElement.style.lineHeight;
var sTextTransform=oElement.style.textTransform;
后面还有 186 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
