这是阿赛编辑器,我也备注修改了一些,个人觉得他写的太好,就一个JS,思路明确,可以按自己需要修改,不想有些编辑器,搞得神神秘秘,很高深的样子

var num,ESpop,Eid,ESan,dir,imgdir,ESsy,ESqy,ESby;
var Vrwid,Vrhei,Vrheit,Vrheic,Kiframe,Ktextarea,ESys,EScss,ESbar;
var Edialog,EDWindow,EDDiv,EDValue,EDMode=1;
var EDCurGEditor,EDCurRange,SfullscreenMode=0;
function xjcms(InitValue)
    {
    Vrwid="666px";/*默认宽度*/
    Vrhei=280;/*默认高度*/
    ESan=arguments[1];
    num=arguments[2];/*内容字数*/
    if(arguments[3])/*宽度*/
        {
        Vrwid=arguments[3];
        Vrwid=(Vrwid.toString().indexOf("%")==-1? parseInt(Vrwid)+"px":Vrwid);/*%优先*/
        }
    if(arguments[4])/*高度*/
        {
        Vrhei=parseInt(arguments[4]);
        Vrheit=28;
        Vrheic=(Vrhei-Vrheit-1)+"px";
        Vrhei+="px";
        Vrheit+="px";
        }
    ESpop=arguments[5];/*编辑器名称*/
    Eid=arguments[6];/*编辑器内标ID*/
    dir=arguments[7];/*路径*/
    imgdir=arguments[8];/*img文件夹*/
    ESsy=(arguments[9]=='')?'#CC1121':arguments[9];/*边框颜色*/
    ESqy=(arguments[10]=='')?'#fef5f5':arguments[10];/*弹出框背景颜色*/
    ESby=(arguments[11]=='')?'#f5f4f0':arguments[11];/*背景颜色*/
    ESfs=arguments[12];/*外部css*/
    ESys="#000000,#330000,#660000,#990000,#CC0000,#FF0000,#000033,#330033,#660033,#990033,#CC0033,#FF0033,#000066,#330066,#660066,#990066,#CC0066,#FF0066,|,#003300,#333300,#663300,#993300,#CC3300,#FF3300,#003333,#333333,#663333,#993333,#CC3333,#FF3333,#003366,#333366,#663366,#993366,#CC3366,#FF3366,|,#006600,#336600,#666600,#996600,#CC6600,#FF6600,#006633,#336633,#666633,#996633,#CC6633,#FF6633,#006666,#336666,#666666,#996666,#CC6666,#FF6666,|,#009900,#339900,#669900,#999900,#CC9900,#FF9900,#009933,#339933,#669933,#999933,#CC9933,#FF9933,#009966,#339966,#669966,#999966,#CC9966,#FF9966,|,#00CC00,#33CC00,#66CC00,#99CC00,#CCCC00,#FFCC00,#00CC33,#33CC33,#66CC33,#99CC33,#CCCC33,#FFCC33,#00CC66,#33CC66,#66CC66,#99CC66,#CCCC66,#FFCC66,|,#00FF00,#33FF00,#66FF00,#99FF00,#CCFF00,#FFFF00,#00FF33,#33FF33,#66FF33,#99FF33,#CCFF33,#FFFF33,#00FF66,#33FF66,#66FF66,#99FF66,#CCFF66,#FFFF66,|,#000099,#330099,#660099,#990099,#CC0099,#FF0099,#0000CC,#3300CC,#6600CC,#9900CC,#CC00CC,#FF00CC,#0000FF,#3300FF,#6600FF,#9900FF,#CC00FF,#FF00FF,|,#003399,#333399,#663399,#993399,#CC3399,#FF3399,#0033CC,#3333CC,#6633CC,#9933CC,#CC33CC,#FF33CC,#0033FF,#3333FF,#6633FF,#9933FF,#CC33FF,#FF33FF,|,#006699,#336699,#666699,#996699,#CC6699,#FF6699,#0066CC,#3366CC,#6666CC,#9966CC,#CC66CC,#FF66CC,#0066FF,#3366FF,#6666FF,#9966FF,#CC66FF,#FF66FF,|,#009999,#339999,#669999,#999999,#CC9999,#FF9999,#0099CC,#3399CC,#6699CC,#9999CC,#CC99CC,#FF99CC,#0099FF,#3399FF,#6699FF,#9999FF,#CC99FF,#FF99FF,|,#00CC99,#33CC99,#66CC99,#99CC99,#CCCC99,#FFCC99,#00CCCC,#33CCCC,#66CCCC,#99CCCC,#CCCCCC,#FFCCCC,#00CCFF,#33CCFF,#66CCFF,#99CCFF,#CCCCFF,#FFCCFF,|,#00FF99,#33FF99,#66FF99,#99FF99,#CCFF99,#FFFF99,#00FFCC,#33FFCC,#66FFCC,#99FFCC,#CCFFCC,#FFFFCC,#00FFFF,#33FFFF,#66FFFF,#99FFFF,#CCFFFF,#FFFFFF";
    var ESysarr=ESys.split(",");
    var ESysarrlen=ESysarr.length;
    var ESysx="<div class=CSSay>";/*生成字体颜色*/
    var ESysxb="<div class=CSSay>";/*字符背景颜色*/
    for(var i=0;i<ESysarrlen;i++)
        {
        if (ESysarr[i]=="|")
            {
            ESysx=ESysx+"<br>";
            ESysxb=ESysxb+"<br>";
            }
        else
            {
            ESysx=ESysx+"<a class=CSSays style=background-color:"+ESysarr[i]+" οnclick=\"Sstyle('<span StylE=color:"+ESysarr[i]+">','</span>')\" TItle="+ESysarr[i]+"> </a>";
            ESysxb=ESysxb+"<a class=CSSays style=background-color:"+ESysarr[i]+" οnclick=\"Sstyle('<span StylE=background-color:"+ESysarr[i]+">','</span>')\" TItle="+ESysarr[i]+"> </a>";
            }
        }
    ESysx=ESysx+"</div>";
    ESysxb=ESysxb+"</div>";
    var Ischar;/*生成特殊字符*/
    Ischar="<style>#"+Eid+"Isdiv{width:320px;height:85PX;overflow:auto;}#"+Eid+"Isdiv span{padding:0px;margin:0px;list-style:none;width:15px;line-height:14px;font-size:15px;float:left;text-align:center;cursor:pointer;}#"+Eid+"Isdvw{float:left;font-size:25px;width:100%;height:30px;line-height:22px;border-bottom:"+ESsy+" 1px solid;background-color:"+ESby+";top:0;bottom:0;left:0;right:0;margin: auto;}.Iscdn{text-align:center;}.Iscds{background-color:"+ESby+";color:"+ESsy+";text-align:center;}</style>"
    Ischar=Ischar+"<div id="+Eid+"Isdvw>演示</div><div id="+Eid+"Isdiv>";
    var aChars=["#","@","&","*","※","§","〃","№","〓","○","●","△","▲","◎","☆","★","◇","◆","▽","▼","□","■","▁","▂","▃","▄","▅","▆","▇","█","▉","▊","▋","▌","▍","▎","▏","▓","㊣","℅","ˉ"," ̄","_","﹉","﹊","﹍","﹎","﹋","﹌","﹟","﹠","﹡","♀","♂","⊕","⊙","↑","↓","←","→","↖","↗","↙","↘","∥","∣","/","\","∕","﹨","&#65533;","&yen;","&pound;","&#8482;","&reg;","&copy;","、","。",".",";",":","?","!","︰","…","‥","′","‵","々","~","‖","ˇ","ˉ","﹐","﹑","﹒","·","﹔","﹕","﹖","﹗","|","-","︱","-","︳","︴","﹏","(",")","︵","︶","{","}","︷","︸","〔","〕","︹","︺","【","】","︻","︼","《","》","︽","︾","〈","〉","︿","﹀","「","」","﹁","﹂","『","』","﹃","﹄","﹙","﹚","﹛","﹜","﹝","﹞","≈","≡","≠","=","≤","≥","<",">","≮","≯","∷","±","+","-","×","÷","/","∫","∮","∝","∞","∧","∨","∑","∏","∪","∩","∈","∵","∴","⊥","∥","∠","⌒","⊙","≌","∽","√","≦","≧","≒","≡","﹢","﹣","﹤","﹥","﹦","~","∟","⊿","㏒","㏑","°","′","″","$","¥","〒","¢","£","%","@","℃","℉","﹩","﹪","‰","﹫","㏕","㎜","㎝","㎞","㏎","㎡","㎎","㎏","㏄","°","○","¤","ⅰ","ⅱ","ⅲ","ⅳ","ⅴ","ⅵ","ⅶ","ⅷ","ⅸ","ⅹ","Ⅰ","Ⅱ","Ⅲ","Ⅳ","Ⅴ","Ⅵ","Ⅶ","Ⅷ","Ⅸ","Ⅹ","Ⅺ","Ⅻ","⒈","⒉","⒊","⒋","⒌","⒍","⒎","⒏","⒐","⒑","⒒","⒓","⒔","⒕","⒖","⒗","⒘","⒙","⒚","⒛","⑴","⑵","⑶","⑷","⑸","⑹","⑺","⑻","⑼","⑽","⑾","⑿","⒀","⒁","⒂","⒃","⒄","⒅","⒆","⒇","①","②","③","④","⑤","⑥","⑦","⑧","⑨","⑩","㈠","㈡","㈢","㈣","㈤","㈥","㈦","㈧","㈨","㈩","&euro;","&lsquo;","&rsquo;","&ldquo;","&rdquo;","&ndash;","&mdash;","&iexcl;","&cent;","&pound;","&curren;","&yen;","&brvbar;","&sect;","&uml;","&copy;","&ordf;","&laquo;","&not;","&reg;","&macr;","&deg;","&plusmn;","&sup2;","&sup3;","&acute;","&micro;","&para;","&middot;","&cedil;","&sup1;","&ordm;","&raquo;","&frac14;","&frac12;","&frac34;","&iquest;","&Agrave;","&Aacute;","&Acirc;","&Atilde;","&Auml;","&Aring;","&AElig;","&Ccedil;","&Egrave;","&Eacute;","&Ecirc;","&Euml;","&Igrave;","&Iacute;","&Icirc;","&Iuml;","&ETH;","&Ntilde;","&Ograve;","&Oacute;","&Ocirc;","&Otilde;","&Ouml;","&times;","&Oslash;","&Ugrave;","&Uacute;","&Ucirc;","&Uuml;","&Yacute;","&THORN;","&szlig;","&agrave;","&aacute;","&acirc;","&atilde;","&auml;","&aring;","&aelig;","&ccedil;","&egrave;","&eacute;","&ecirc;","&euml;","&igrave;","&iacute;","&icirc;","&iuml;","&eth;","&ntilde;","&ograve;","&oacute;","&ocirc;","&otilde;","&ouml;","&divide;","&oslash;","&ugrave;","&uacute;","&ucirc;","&uuml;","&uuml;","&yacute;","&thorn;","&yuml;","0","1","2","3","4","5","6","7","8","9",":",";","<","=",">","?","@","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","Б","Г","Д","Ж","З","И","Й","Σ","Υ","Φ","Ψ","Ω","^","_","`","ā","á","ǎ","à","ō","ó","ǒ","ò","ē","é","ě","è","ê","ū","ú","ǔ","ù","ü","ǖ","ǘ","ǚ","ǜ","ī","í","ǐ","ì","零","壹","贰","叁","肆","伍","陆","柒","捌","玖","拾"];
    for(i=0;i<aChars.length;i++)
        {
        Ischar=Ischar+'<span class="Iscdn" οnclick="Sinto(\'' + aChars[i].replace(/&/g, "&amp;") + '\')" οnmοuseοver="'+Eid+'Isdvw.innerHTML=this.innerHTML;this.className=\'Iscds\';" οnmοuseοut="this.className=\'Iscdn\';">';
        Ischar=Ischar+aChars[i];
        Ischar=Ischar+'</span>';
        }
    Ischar=Ischar+'<div class=CSScr></div></div>';
    var ESabout="架构与设计制作:阿赛\
    <br>◇ 常用快捷键:Ctrl+C(拷贝),Ctrl+X(剪切),Ctrl+V(粘贴);\
    <br>◇ 快捷键:Ctrl+A(全选),Ctrl+Z(撤销),Ctrl+Y(重做);\
    <br>◇ 上传或插入文件自动识别任何格式;\
    <br>◇ 右下角含向下三角形的图标是可以打开右弹下拉菜单的;\
    <br>◇ 左下角含向下三角形的图标可以左弹下拉菜单;\
    <br>◇ 编辑器内容预读需过滤,如ASP[html=server.HTMLEncode(html)];\
    <br>◇ 整套编辑器系统为原创JS架构,有问题找阿赛。";
    EScss="<style>\
#"+Eid+"{background-color:"+ESby+";position:relative;border: 1px solid #DEDEDE;}#"+Eid+" ul,#"+Eid+" li,#"+Eid+" div{float;none;margin:0;}\
.CSSk{width:"+Vrwid+";height="+Vrhei+"px;margin:0px;padding:0px;}\
.CSSbar,button{background-color:transparent;}\
.CSSbar ul,.CSSbar li{margin:5px;padding:1px;}\
.CSSstr{background-color:transparent;float:left;position:relative;cursor:pointer;font-size:12px;color:"+ESsy+";}\
.CSSstr span{-moz-border-radius:8px;-webkit-border-radius:8px;border-radius:8px;display:block;margin-top:2px;padding:0px 3px;border:1px solid "+ESsy+";height:14px;line-height:14px;overflow:hidden;}\
.CSSicok{background-color:transparent;width:20px;height:20px;float:left;position:relative;background-image:url("+dir+imgdir+"Tool.png);cursor:pointer;text-align:center;line-height:20px;background-position:-760px;font-size:12px;color:"+ESsy+";}\
.CSSico{background-color:transparent;width:20px;height:20px;float:left;position:relative;background-image:url("+dir+imgdir+"Tool.png);cursor:pointer;}\
.CSSicox{background-color:transparent;width:20px;height:20px;float:left;position:relative;background-image:url("+dir+imgdir+"Tool.png);cursor:pointer;}\
.CSSconx{position:absolute;z-index:200;word-wrap:break-word;padding:10px;top:20px;right:0px;font-size:12px;border-top:1px solid "+ESsy+";border-right:3px solid "+ESsy+";border-bottom:1px solid "+ESsy+";border-left:1px solid "+ESsy+";background:"+ESqy+";text-align:left;}.CSSconx label{display:inline;position:static;}\
.CSScon{position:absolute;z-index:200;word-wrap:break-word;padding:10px;top:20px;font-size:12px;border-top:1px solid "+ESsy+";border-right:1px solid "+ESsy+";border-bottom:1px solid "+ESsy+";border-left:3px solid "+ESsy+";background:"+ESqy+";display:none;text-align:left;}\
.CSSa,a.CSSa,a.CSSa:link,a.CSSa:active,a.CSSa:visited{cursor:pointer;text-decoration:none;word-wrap:break-word;margin-right:3px;color:"+ESsy+";}\
a.CSSa:hover{background:"+ESby+";}\
.CSSay{width:218px;}.CSSays,a.CSSays,a.CSSays:link,a.CSSays:active,a.CSSays:visited{font-size:12px;cursor:pointer;text-decoration:none;}\
a.CSSays:hover{}\
.CSSico:hover,.CSSicok:hover,.CSSicox:hover{background-color:"+ESqy+";}\
.CSSico:hover .CSScon,.CSSicok:hover .CSScon{display:block;}\
.CSScr{clear:both;}\
</style>";
ESbar="<div class='CSSbar' ><ul>\
<div class='CSSico' title='样式'><div class='CSScon' style='width:188px;'>\
<a class='CSSa' onClick=\"Sstyle('<h1>','</h1>')\" title='标题一'>标题一</a>\
<a class='CSSa' onClick=\"Sstyle('<h2>','</h2>')\" title='标题二'>标题二</a>\
<a class='CSSa' onClick=\"Sstyle('<h3>','</h3>')\" title='标题三'>标题三</a>\
<a class='CSSa' onClick=\"Sstyle('<h4>','</h4>')\" title='标题四'>标题四</a>\
<a class='CSSa' onClick=\"Sstyle('<h5>','</h5>')\" title='标题五'>标题五</a>\
<a class='CSSa' onClick=\"Sstyle('<h6>','</h6>')\" title='标题六'>标题六</a>\
<a class='CSSa' onClick=\"Sstyle('<h7>','</h7>')\" title='标题七'>标题七</a>\
<a class='CSSa' onClick=\"Sstyle('<span StylE=display:block;margin:10px;border-color:#DDDD88;border-width:1px;border-style:solid;padding:5px;background:#FFFFDD;color:#666600;font-size:12px;><b>代码:</b><br><br>','</span>')\" title='代码'><span StylE=border-color:#DDDD88;border-width:1px;border-style:solid;background:#FFFFDD;color:#666600;>代码</span></a>\
<a class='CSSa' onClick=\"Sstyle('<span StylE=display:block;margin:10px;border-color:#D8D8D8;border-width:1px;border-style:solid;padding:5px;background-color:#F5F5F5;color:#666666;font-size:12px;><b>引用:</b><br><br>','</span>')\" title='引用'><span StylE=border-color:#D8D8D8;border-width:1px;border-style:solid;background-color:#F5F5F5;color:#666666;>引用</span></a>\
<a class='CSSa' onClick=\"Sstyle('<span StylE=background-color:#EEE;color:#DDD;>','</span>')\" title='淡化'><span StylE=background-color:#EEE;color:#DDD;>淡化</span></a>\
<a class='CSSa' onClick=\"Sstyle('<span StylE=background-color:#DDD;color:#DDD;>','</span>')\" title='隐藏'><span StylE=background-color:#DDD;color:#DDD;>隐藏</span></a>\
<a class='CSSa' onClick=\"Sstyle('<span StylE=background-color:#FFFF00;color:#FF0000;>','</span>')\" title='标记'><span StylE=background-color:#FFFF00;color:#FF0000;>标记</span></a>\
<a class='CSSa' onClick=\"Sstyle('<span StylE=background-color:#FF0000;color:#FFFF00;>','</span>')\" title='突出'><span StylE=background-color:#FF0000;color:#FFFF00;>突出</span></a>\
<a class='CSSa' onClick=\"Sstyle('<strike>','</strike>')\" title='删线'><strike>删线</strike></a>\
<a class='CSSa' onClick=\"Sstyle('<sup>','</sup>')\" title='上标'>上标</a>\
<a class='CSSa' onClick=\"Sstyle('<sub>','</sub>')\" title='下标'>下标</a>\
</div></div>\
<div class='CSSico' style='background-position:-20px' title='字体'><div class='CSScon' style='width:288px;'>\
<a class='CSSa' onClick=\"Sziti(1,'仿宋')\" title='仿宋' style='font-family:仿宋'>仿宋</a>\
<a class='CSSa' onClick=\"Sziti(1,'黑体')\" title='黑体' style='font-family:黑体'>黑体</a>\
<a class='CSSa' onClick=\"Sziti(1,'楷体')\" title='楷体' style='font-family:楷体'>楷体</a>\
<a class='CSSa' onClick=\"Sziti(1,'宋体')\" title='宋体' style='font-family:宋体'>宋体</a>\
<a class='CSSa' onClick=\"Sziti(1,'微软雅黑')\" title='微软雅黑' style='font-family:微软雅黑'>微软雅黑</a>\
<a class='CSSa' onClick=\"Sziti(1,'新宋体')\" title='新宋体' style='font-family:新宋体'>新宋体</a>\
<a class='CSSa' onClick=\"Sziti(1,'Times New Roman')\" title='Times New Roman' style='font-family:Times New Roman'>Times New Roman</a>\
<a class='CSSa' onClick=\"Sziti(1,'Courier New')\" title='Courier New' style='font-family:Courier New'>Courier New</a>\
<a class='CSSa' onClick=\"Sziti(1,'Trebuchet MS')\" title='Trebuchet MS' style='font-family:Trebuchet MS'>Trebuchet MS</a>\
<a class='CSSa' onClick=\"Sziti(1,'Arial Black')\" title='Arial Black' style='font-family:Arial Black'>Arial Black</a>\
<a class='CSSa' onClick=\"Sziti(1,'Times New Roman')\" title='Times New Roman' style='font-family:Times New Roman'>Times New Roman</a>\
<a class='CSSa' onClick=\"Sziti(1,'Palatino Linotype')\" title='Palatino Linotype' style='font-family:Palatino Linotype'>Palatino Linotype</a>\
<a class='CSSa' onClick=\"Sziti(1,'Book Antiqua')\" title='Book Antiqua' style='font-family:Book Antiqua'>Book Antiqua</a>\
<a class='CSSa' onClick=\"Sziti(1,'Lucida Sans Unicode')\" title='Lucida Sans Unicode' style='font-family:Lucida Sans Unicode'>Lucida Sans Unicode</a>\
<a class='CSSa' onClick=\"Sziti(1,'Lucida Grande')\" title='Lucida Grande' style='font-family:Lucida Grande'>Lucida Grande</a>\
<a class='CSSa' onClick=\"Sziti(1,'MS Serif')\" title='MS Serif' style='font-family:MS Serif'>MS Serif</a>\
<a class='CSSa' onClick=\"Sziti(1,'New York')\" title='New York' style='font-family:New York'>New York</a>\
<a class='CSSa' onClick=\"Sziti(1,'Lucida Console')\" title='Lucida Console' style='font-family:Lucida Console'>Lucida Console</a>\
<a class='CSSa' onClick=\"Sziti(1,'Comic Sans MS')\" title='Comic Sans MS' style='font-family:Comic Sans MS'>Comic Sans MS</a>\
<a class='CSSa' onClick=\"Sziti(0,'Verdana')\" title='Verdana' style='font-family:Verdana'>Verdana</a>\
<a class='CSSa' onClick=\"Sziti(0,'Geneva')\" title='Geneva' style='font-family:Geneva'>Geneva</a>\
<a class='CSSa' onClick=\"Sziti(0,'sans-serif')\" title='sans-serif' style='font-family:sans-serif'>sans-serif</a>\
<a class='CSSa' onClick=\"Sziti(0,'Georgia')\" title='Georgia' style='font-family:Georgia'>Georgia</a>\
<a class='CSSa' onClick=\"Sziti(0,'Times')\" title='Times' style='font-family:Times'>Times</a>\
<a class='CSSa' onClick=\"Sziti(0,'serif')\" title='serif' style='font-family:serif'>serif</a>\
<a class='CSSa' onClick=\"Sziti(0,'Courier')\" title='Courier' style='font-family:Courier'>Courier</a>\
<a class='CSSa' onClick=\"Sziti(0,'monospace')\" title='monospace' style='font-family:monospace'>monospace</a>\
<a class='CSSa' onClick=\"Sziti(0,'Arial')\" title='Arial' style='font-family:Arial'>Arial</a>\
<a class='CSSa' onClick=\"Sziti(0,'Helvetica')\" title='Helvetica' style='font-family:Helvetica'>Helvetica</a>\
<a class='CSSa' onClick=\"Sziti(0,'Tahoma')\" title='Tahoma' style='font-family:Tahoma'>Tahoma</a>\
<a class='CSSa' onClick=\"Sziti(0,'Helvetica')\" title='Helvetica' style='font-family:Helvetica'>Helvetica</a>\
<a class='CSSa' onClick=\"Sziti(0,'Gadget')\" title='Gadget' style='font-family:Gadget'>Gadget</a>\
<a class='CSSa' onClick=\"Sziti(0,'Palatino')\" title='Palatino' style='font-family:Palatino'>Palatino</a>\
<a class='CSSa' onClick=\"Sziti(0,'Monaco')\" title='Monaco' style='font-family:Monaco'>Monaco</a>\
<a class='CSSa' onClick=\"Sziti(0,'cursive')\" title='cursive' style='font-family:cursive'>cursive</a>\
</div></div>\
<div class='CSSico' style='background-position:-40px' title='字号'><div class='CSScon' style='width:288px;'>\
<a class='CSSa' onClick=\"Sstyle('<span StylE=font-size:5px>','</span>')\" title='[微号]' style='font-size:12px'>[微号]</a>\
<a class='CSSa' onClick=\"Sstyle('<span StylE=font-size:3px>','</span>')\" title='[小微]' style='font-size:12px'>[小微]</a>\
<a class='CSSa' onClick=\"Sstyle('<span StylE=font-size:1px>','</span>')\" title='[超微]' style='font-size:12px'>[超微]</a>\
<a class='CSSa' onClick=\"Sstyle('<span StylE=font-size:6.7px>','</span>')\" title='八号' style='font-size:6.7px'>八号</a>\
<a class='CSSa' onClick=\"Sstyle('<span StylE=font-size:7.3px>','</span>')\" title='七号' style='font-size:7.3px'>七号</a>\
<a class='CSSa' onClick=\"Sstyle('<span StylE=font-size:10px>','</span>')\" title='六号' style='font-size:10px'>六号</a>\
<a class='CSSa' onClick=\"Sstyle('<span StylE=font-size:8.7px>','</span>')\" title='小六' style='font-size:8.7px'>小六</a>\
<a class='CSSa' onClick=\"Sstyle('<span StylE=font-size:12px>','</span>')\" title='小五' style='font-size:12px'>小五</a>\
<a class='CSSa' onClick=\"Sstyle('<span StylE=font-size:14px>','</span>')\" title='五号' style='font-size:14px'>五号</a>\
<a class='CSSa' onClick=\"Sstyle('<span StylE=font-size:16px>','</span>')\" title='小四' style='font-size:16px'>小四</a>\
<a class='CSSa' onClick=\"Sstyle('<span StylE=font-size:18.7px>','</span>')\" title='四号' style='font-size:18.7px'>四号</a>\
<a class='CSSa' onClick=\"Sstyle('<span StylE=font-size:20px>','</span>')\" title='小三' style='font-size:20px'>小三</a>\
<a class='CSSa' onClick=\"Sstyle('<span StylE=font-size:21.3px>','</span>')\" title='三号' style='font-size:21.3px'>三号</a>\
<a class='CSSa' onClick=\"Sstyle('<span StylE=font-size:24px>','</span>')\" title='小二' style='font-size:24px'>小二</a>\
<a class='CSSa' onClick=\"Sstyle('<span StylE=font-size:29.3px>','</span>')\" title='二号' style='font-size:29.3px'>二号</a>\
<a class='CSSa' onClick=\"Sstyle('<span StylE=font-size:32px>','</span>')\" title='小一' style='font-size:32px'>小一</a>\
<a class='CSSa' onClick=\"Sstyle('<span StylE=font-size:34.7px>','</span>')\" title='一号' style='font-size:34.7px'>一号</a>\
<a class='CSSa' onClick=\"Sstyle('<span StylE=font-size:48px>','</span>')\" title='小初' style='font-size:48px'>小初</a>\
<a class='CSSa' onClick=\"Sstyle('<span StylE=font-size:56px>','</span>')\" title='初号' style='font-size:56px'>初号</a>\
<a class='CSSa' onClick=\"Sstyle('<span StylE=font-size:71.7px>','</span>')\" title='[特号]' style='font-size:12px'>[特号]</a>\
<a class='CSSa' onClick=\"Sstyle('<span StylE=font-size:83.7px>','</span>')\" title='[大特]' style='font-size:12px'>[大特]</a>\
<a class='CSSa' onClick=\"Sstyle('<span StylE=font-size:95.6px>','</span>')\" title='[超大]' style='font-size:12px'>[超大]</a>\
</div></div>\
<div class='CSSico' style='background-position:-60px' title='字体颜色'><div class='CSScon'>"+ESysx+"</div></div>\
<div class='CSSico' style='background-position:-80px' title='背景颜色'><div class='CSScon'>"+ESysxb+"</div></div>\
<div class='CSSico' style='background-position:-380px' title='插入自定义'><div class='CSScon' style='width:108px;'>\
<a class='CSSa' onClick=\"Sinto('0')\" title='分页标志'>分页标志</a>\
<a class='CSSa' onClick=\"Sinto('[eeSai]')\" title='秘密标志'>秘密标志</a>\
<a class='CSSa' onClick=\"Sinto('1')\" title='版权文字'>版权文字</a>\
<a class='CSSa' onClick=\"Sinto('2')\" title='当前时间'>当前时间</a>\
<a class='CSSa' onClick=\"Sinto('<span style=font-weight:bold;font-size:58px;line-height:200%;color:#FF0000;>红头文件标题</span>')\" title='红头标题'>红头标题</a>\
<a class='CSSa' onClick=\"Sinto('<span style=display:block;background-color:#F00;height:5px;></span>')\" title='红头线条'>红头线条</a>\
<a class='CSSa' onClick=\"Sinto('<hr>')\" title='一条横线'>一条横线</a>\
<a class='CSSa' onClick=\"Sinto(document.URL)\" title='插入当前链接'>当前链接</a>\
</div></div>\
<div class='CSSico' style='background-position:-400px' title='插入特殊字符'><div class='CSScon'>"+Ischar+"</div></div>\
<div class='CSSico' style='background-position:-100px' title='加粗' onClick=\"Sformat('Bold')\"></div>\
<div class='CSSico' style='background-position:-120px' title='斜体' onClick=\"Sformat('Italic')\"></div>\
<div class='CSSico' style='background-position:-140px' title='下划线' onClick=\"Sformat('Underline')\"></div>\
<div class='CSSico' style='background-position:-160px' title='将选中的对象左对齐' onClick=\"Sstyle('<p style=text-align:left;display:block;>','</p>')\"></div>\
<div class='CSSico' style='background-position:-180px' title='将选中的对象居中对齐' onClick=\"Sstyle('<p style=text-align:center;display:block;>','</p>')\"></div>\
<div class='CSSico' style='background-position:-200px' title='将选中的对象右对齐' onClick=\"Sstyle('<p style=text-align:right;display:block;>','</p>')\"></div>\
<div class='CSSico' style='background-position:-220px' title='编号列表' onClick=\"Sformat('insertorderedlist')\"></div>\
<div class='CSSico' style='background-position:-240px' title='项目列表' onClick=\"Sformat('insertunorderedlist')\"></div>\
<div class='CSSico' style='background-position:-300px' title='清除HTML格式(纯文本)' onClick=\"Shtml()\"></div>\
<div class='CSSico' style='background-position:-320px' title='清除Word格式' onClick=\"Sword()\"></div>\
<div class='CSSico' style='background-position:-340px' title='自动排版(保留表格、图片、链接、换行,压缩空行,段首加空格。)' onClick=\"Sauto()\"></div>";
//--------精简版可删■■■↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓
ESbar=ESbar+"\
<div class='CSSico' style='background-position:-280px' title='清除选中的连接' onClick=\"Sformat('Unlink')\"></div>\
<div id='"+Eid+"Inlink' class='CSSicox' onMouseOut=\"Inclose();\" onMouseOver=\"InlinkX();\" style='background-position:-260px' title='对选中对象创建链接'></div>\
<div id='"+Eid+"Inemot' class='fa-regular fa-face-meh fa-fade CSSicox' title='插入表情' onMouseOut=\"Inclose();\" onMouseOver=\"InemotX();\"style='color:#ff8000;'></div>\
<div id='"+Eid+"Intable' class='CSSicox' onMouseOut=\"Inclose();\" onMouseOver=\"IntableX()\" style='background-position:-440px' title='插入表格'></div>\
<div id='"+Eid+"Inreplace' class='CSSicox' onMouseOut=\"Inclose();\" onMouseOver=\"InreplaceX();\" style='background-position:-560px' title='查找替换'></div>\
<i id='"+Eid+"Infile' onMouseOut=\"Inclose();\" onMouseOver=\"InfileX();\" class='fa-regular fa-upload CSSicox' title='插入媒体(图片、动画、视频等)' style='color:#029acf;'></i>\
<div class='CSSico' style='background-position:-520px' title='本地化所有图片' onClick=\"Piclocal()\"></div>";
//--------精简版可删■■■↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑
ESbar=ESbar+"<div class='CSSico' style='background-position:-360px' title='参考线' onClick=\"Seborder()\"></div>\
<div class='CSSico' style='background-position:-480px' title='关于编辑器'><div class='CSScon' style='right:0px;width:388px;'>"+ESabout+"</div></div>\
<div class='CSSico' style='background-position:-500px' title='HTML代码' onClick=\"Scodearea()\"></div>\
<div class='CSSico' style='background-position:-540px' title='全屏编辑' onClick=\"Sfullscreen()\"></div>\
<div class='CSSicok' title='恢复操作选择' onClick=\"ESave()\">⊙<div class='CSScon' style='right:0px;width:188px;'>\
<a class='CSSa' onClick=\"ERec('0')\">恢复定时缓存<span id='Ezsv0'></span></a>\
<a class='CSSa' onClick=\"ERec('1')\">恢复手动缓存<span id='Ezsv1'></span></a>\
<a class='CSSa' onClick=\"ERec('2')\">恢复上次缓存<span id='Ezsv2'></span></a>\
</div></div>\
<div class='CSSicok' title='定时保存:单击立即保存。' id='Ezsv' onClick=\"ESave()\"></div>\
<div class='CSSstr' title='编辑器内容字数统计' id='Eztj'></div>\
<div class='EM_CSScr'></div>\
</div>";
    if(document.getElementById(ESan)){InitValue=document.getElementById(ESan).value;InitValue=Ehtmsi(InitValue)}
    document.write(EScss+"<div id='"+Eid+"' class='CSSk'>HTML在线编辑器</div>");
    EDDiv=document.getElementById(Eid);
    EDDiv.innerHTML=ESbar;
    Ktextarea=document.createElement("textarea");
    Ktextarea.style.display="none";
    Ktextarea.style.width=Vrwid;
    Ktextarea.style.height=Vrheic;
    Ktextarea.style.fontSize="12px";
    Ktextarea.style.color=ESsy;
    Ktextarea.style.background=ESqy;
    Ktextarea.style.border="0px";
    EDDiv.appendChild(Ktextarea);
    Kiframe=document.createElement("iframe");
    Kiframe.name=Kiframe.id="Efrm";
    Kiframe.style.width=Vrwid;
    Kiframe.style.height=Vrheic;
    Kiframe.style.background="transparent";
    Kiframe.frameBorder=0;
    Kiframe.marginHeight=0;
    Kiframe.marginWidth=0;
    Kiframe.src="about:blank";
    EDDiv.appendChild(Kiframe);
    EDWindow=Kiframe.contentWindow;
    with(EDWindow.document)
        {
        designMode="On";
        contentEditable=true;
        open();
        writeln("<!DOCTYPE html><html><head><meta name='viewport' content='width=device-width, initial-scale=1, shrink-to-fit=no'><title>HTML在线编辑器</title><style>::-webkit-scrollbar{width:10px;height:10px;}::-webkit-scrollbar-track{background-color:"+ESqy+";}::-webkit-scrollbar-thumb{background-color:"+ESsy+";}::-webkit-scrollbar-button{background-color:"+ESsy+";}::-webkit-scrollbar-corner{background-color:"+ESqy+";}body{scrollbar-face-color:"+ESsy+";scrollbar-shadow-color:"+ESqy+";scrollbar-highlight-color:"+ESqy+";scrollbar-3dlight-color:"+ESsy+";scrollbar-darkshadow-color:"+ESsy+";scrollbar-track-color:"+ESqy+";scrollbar-arrow-color:"+ESsy+";}</style>"+ESfs+"</head><body></body></html>

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值