Admin/js/Editor.js
(开头部分) 26KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
// JScript 文件
function HyperTextArea(name, html, width, height,resourcePath,styleSheetUrl,delayRender)
{
this.isRichText = false;
this.rng = null;
this.name = name;
this.html = html||"";
this.width = width;
this.height = height;
this.resourcePath = resourcePath||"";
this.styleSheetUrl = styleSheetUrl||null;
if(this.resourcePath.length && this.resourcePath.substring(this.resourcePath.length-1) != "/")
{
this.resourcePath = this.resourcePath + "/";
}
this.delayRender = delayRender||false;
this.controlNames = new Array();
this.controlsByName = new Array();
this.toolbarNames = new Array();
this.designModeRetryCount = 0;
this.isSrcView = false;
this.init = function()
{
HyperTextArea.areas[this.name] = this;
//check to see if designMode mode is available
if (document.getElementById) {
if (document.all) {
//check for Internet Explorer 5+
this.isRichText = true;
} else {
//check for browsers that support designmode
//make sure that this is not safari (and perhaps other khtml based browsers)
//which returns "inherit" for document.designMode
if (document.designMode && document.designMode.toLowerCase() != "inherit"){
this.isRichText = true;
}
}
}
this.addControl(new Toolbar("toolbar1"));
//增加功能点
//字体大小:10号、12号、14号、18号、24号
//字体默认为宋体
sizeMenu = new Menu("fontsize","fontsize");
sizeMenu.addItems("","字号",2,"1(小五)",3,"2(五号)",4,"3(小四)",5,"4(四号)",6,"5(小三)");
this.addControl(sizeMenu);
//颜色:褐色、黑色、红色、蓝色、绿色
colorMenu = new Menu("foreColor","foreColor");
colorMenu.addItems("","颜色","brown","褐色","black","黑色","red","红色","blue","蓝色","green","绿色");
this.addControl(colorMenu);
//第一部分
this.addControl(new TextFormatButton("copy","复制","../../../images/post_button_copy.gif","copy"));
后面还有 799 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。