Help.Web/editor/source_xhtml_full.htm

(开头部分) 18KB

这里只显示每个文件的开头 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+"/source_html.js'></scr"+"ipt>");
</script>
<script>writeTitle()</script>
<script>
var sBaseHREF="";
function doCmd(sCmd,sOption)
	{
	var oSel=idSource.document.selection.createRange();
	var sType=idSource.document.selection.type;
	var oTarget=(sType=="None"?idSource.document:oSel);
	oTarget.execCommand(sCmd,false,sOption);
	}
function bodyOnUnload()
	{
	var oEditor=dialogArguments.oUtil.oEditor;
	var obj = dialogArguments.oUtil.obj;
	sHTML=oEditor.document.documentElement.outerHTML;
	sHTML=obj.docType+sBaseHREF+sHTML;
	obj.putHTML(sHTML);

	//*** RUNTIME STYLES ***
	obj.runtimeBorder(false);
	obj.runtimeStyles();
	//***********************
	}
function bodyOnLoad()
	{
	var oEditor=dialogArguments.oUtil.oEditor;
	try{var oSel=oEditor.document.selection.createRange();}
	catch(e){btnApply.disabled=true;btnOk.disabled=true;return;}
	var obj = dialogArguments.oUtil.obj;
	
	//selThis (tdk perlu check focus, krn sdh di setActiveEditor
	if (oSel.parentElement)oElement=oSel.parentElement();
	else oElement=oSel.item(0);
	
	//base handling
	sHTML=oEditor.document.documentElement.outerHTML;
	var arrTmp=sHTML.match(/<BASE([^>]*)>/ig);
	if(arrTmp!=null)sBaseHREF=arrTmp[0];
	for(var i=0;i<oEditor.document.all.length;i++)
		if(oEditor.document.all[i].tagName=="BASE")oEditor.document.all[i].removeNode();
	for(var i=0;i<oEditor.document.all.length;i++)
		if(oEditor.document.all[i].tagName=="BASE")oEditor.document.all[i].removeNode();
	//~~~~~~~~~~~~~

	sHTML=recur(oEditor.document.documentElement,"");
	
	//restore doctype (if any) & html
	sHTMLDocType=obj.docType;
	if(sHTMLDocType!="")
		{
		//sHTMLDocType=sHTMLDocType.replace(/DOCTYPE/g,"doctype");
		sHTMLDocType=sHTMLDocType.replace(/</g,"&lt;");
后面还有 502 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。