admin_m/dxtb/editor.js
(开头部分) 7KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
var Editor_edit; //selectRang
var Editor_RangeType;
var Editor_selection;
var Editor_filterScript = true;
var Editor_charset="UTF-8";
var Editor_bLoad=false;
var Editor_pureText=true;
var Editor_bTextMode=1; //默认为Design模式
//预览
function Editor_InitDocument(hiddenid, charset)
{
if (charset!=null)
Editor_charset=charset;
if (Editor_bIsIE5){
var Editor_bodyTag="<style type=text/css>.quote{margin:5px 20px;border:1px solid #CCCCCC;padding:5px; background:#F3F3F3 }\nbody{boder:0px}.HtmlCode{margin:5px 20px;border:1px solid #CCCCCC;padding:5px;background:#FDFDDF;font-size:14px;font-family:Tahoma;font-style : oblique;line-height : normal ;font-weight:bold;}\nbody{boder:0px}</style></head><BODY bgcolor=\"#FFFFFF\" title=\"Ctrl+Enter直接提交贴子\">";
}else
{
var Editor_bodyTag="<style type=text/css>.quote{margin:5px 20px;border:1px solid #CCCCCC;padding:5px; background:#F3F3F3 }\nbody{boder:0px}.HtmlCode{margin:5px 20px;border:1px solid #CCCCCC;padding:5px;background:#FDFDDF;font-size:14px;font-family:Tahoma;font-style : oblique;line-height : normal ;font-weight:bold;}\nbody{boder:0px}</style></head><BODY bgcolor=\"#FFFFFF\">";
}
if (navigator.appVersion.indexOf("MSIE 6.0",0)==-1){
IframeID.document.designMode="On"
}
IframeID.document.open();
IframeID.document.write ('<html><head><link type=text/css rel=stylesheet href=css/style.css>');
IframeID.document.write(Editor_bodyTag);
IframeID.document.write("</body>");
IframeID.document.write("</html>");
IframeID.document.close();
IframeID.document.body.contentEditable = "True";
IframeID.document.charset=Editor_charset;
Editor_bLoad=true;
Editor_setStyle();
}
function Editor_setMode(n)
{
Editor_setStyle();
var cont;
var Editor_Toolbar0=document.getElementById("ExtToolbar0");
var Editor_Toolbar1=document.getElementById("ExtToolbar1");
var Editor_Toolbar2=document.getElementById("ExtToolbar2");
switch (n){
case 1:
Editor_Toolbar0.style.display="";
Editor_Toolbar1.style.display="";
Editor_Toolbar2.style.display="";
if (document.getElementById("Editor_TabHtml").className=="Editor_TabOn"){
if (Editor_bIsIE5){
cont=IframeID.document.body.innerText;
cont=Editor_correctUrl(cont);
if (Editor_filterScript)
cont=Editor_FilterScript(cont);
IframeID.document.body.innerHTML=cont;
}else{
var html = IframeID.document.body.ownerDocument.createRange();
html.selectNodeContents(IframeID.document.body);
IframeID.document.body.innerHTML = html.toString();
}
后面还有 198 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
