diff --git a/www/js/jquery/kindeditor/kindeditor.en.js b/www/js/jquery/kindeditor/kindeditor.en.js deleted file mode 100644 index 1c0b9dac00..0000000000 --- a/www/js/jquery/kindeditor/kindeditor.en.js +++ /dev/null @@ -1,169 +0,0 @@ -(function(c){if(window.KindEditor===c){var b={version:"3.5.6 (2011-10-04)"};b.scriptPath=function(){for(var a=document.getElementsByTagName("script"),d=0,b=a.length;d-1&&a.indexOf("opera")==-1,GECKO:a.indexOf("gecko")>-1&& -a.indexOf("khtml")==-1,WEBKIT:a.indexOf("applewebkit")>-1,OPERA:a.indexOf("opera")>-1}}();b.setting={wyswygMode:!0,loadStyleMode:!0,resizeMode:2,filterMode:!1,autoSetDataMode:!1,shadowMode:!0,useContextmenu:!0,urlType:"",skinType:"default",syncType:"form",newlineTag:"p",dialogAlignType:"page",cssPath:"",skinsPath:b.scriptPath+"skins/",pluginsPath:b.scriptPath+"plugins/",minWidth:200,minHeight:100,minChangeSize:5,toolbarLineHeight:24,statusbarHeight:11,items:["source","|","fullscreen","undo","redo", -"print","cut","copy","paste","plainpaste","wordpaste","|","justifyleft","justifycenter","justifyright","justifyfull","insertorderedlist","insertunorderedlist","indent","outdent","subscript","superscript","|","selectall","-","title","fontname","fontsize","|","textcolor","bgcolor","bold","italic","underline","strikethrough","removeformat","|","image","flash","media","advtable","hr","emoticons","link","unlink","|","about"],colorTable:[["#E53333","#E56600","#FF9900","#64451D","#DFC5A4","#FFE500"],["#009900", -"#006600","#99BB00","#B8D100","#60D978","#00D5FF"],["#337FE5","#003399","#4C33E5","#9933E5","#CC33E5","#EE33EE"],["#FFFFFF","#CCCCCC","#999999","#666666","#333333","#000000"]],noEndTags:["br","hr","img","area","col","embed","input","param"],inlineTags:["b","del","em","font","i","span","strike","strong","sub","sup","u"],endlineTags:["br","hr","table","tbody","td","tr","th","div","p","ol","ul","li","blockquote","h1","h2","h3","h4","h5","h6","script","style","marquee"],htmlTags:{font:["color","size", -"face",".background-color"],span:[".color",".background-color",".font-size",".font-family",".background",".font-weight",".font-style",".text-decoration",".vertical-align"],div:["align",".border",".margin",".padding",".text-align",".color",".background-color",".font-size",".font-family",".font-weight",".background",".font-style",".text-decoration",".vertical-align",".margin-left"],table:["border","cellspacing","cellpadding","width","height","align","bordercolor",".padding",".margin",".border","bgcolor", -".text-align",".color",".background-color",".font-size",".font-family",".font-weight",".font-style",".text-decoration",".background",".width",".height"],"td,th":["align","valign","width","height","colspan","rowspan","bgcolor",".text-align",".color",".background-color",".font-size",".font-family",".font-weight",".font-style",".text-decoration",".vertical-align",".background"],a:["href","target","name"],embed:["src","width","height","type","loop","autostart","quality",".width",".height","align","allowscriptaccess", -"/"],img:["src","width","height","border","alt","title",".width",".height","/"],hr:["/"],br:["/"],"p,ol,ul,li,blockquote,h1,h2,h3,h4,h5,h6":["align",".text-align",".color",".background-color",".font-size",".font-family",".background",".font-weight",".font-style",".text-decoration",".vertical-align",".text-indent",".margin-left"],"tbody,tr,strong,b,sub,sup,em,i,u,strike":[]},mediaTypes:{rm:"audio/x-pn-realaudio-plugin",flash:"application/x-shockwave-flash",media:"video/x-ms-asf-plugin"},afterTab:function(a){b.util.setSelection(a); -b.util.insertHtml(a,"    ")}};b.g={};b.plugin={};b.$=function(a,d){return(d||document).getElementById(a)};b.$$=function(a,d){return(d||document).createElement(a)};b.event={add:function(a,d,f,l){a.addEventListener?a.addEventListener(d,f,!1):a.attachEvent&&a.attachEvent("on"+d,f);l!==c&&b.g[l].eventStack.push({el:a,type:d,fn:f})},remove:function(a,d,f,l){a.removeEventListener?a.removeEventListener(d,f,!1):a.detachEvent&&a.detachEvent("on"+d,f);if(l!==c)for(var l=b.g[l].eventStack, -h=0,e=l.length;h18)&&a.keyCode!=116)return d(a),b.event.stop(a),!1},f);a=a.nodeName=="#document"?a.body:a;this.add(a,"paste",c,f);this.add(a,"cut",c,f)},ctrl:function(a,d,f,c){d=d.toString().match(/^\d{2,}$/)?d:d.toUpperCase().charCodeAt(0);this.add(a,"keydown",function(a){if(a.ctrlKey&&a.keyCode==d&&!a.shiftKey&&!a.altKey)return f(a),b.event.stop(a),!1},c)},ready:function(a,d,b,c){var d=d||window,b=b||document,h=!1,e=function(){h|| -(h=!0,a())};if(b.addEventListener)this.add(b,"DOMContentLoaded",e,c);else if(b.attachEvent&&(this.add(b,"readystatechange",function(){b.readyState=="complete"&&e()},c),b.documentElement.doScroll&&typeof d.frameElement==="undefined")){var i=function(){if(!h){try{b.documentElement.doScroll("left")}catch(a){window.setTimeout(i,0);return}e()}};i()}this.add(d,"load",e,c)}};b.each=function(a,d){for(var b in a)a.hasOwnProperty(b)&&d(b,a[b])};b.eachNode=function(a,d){var f=function(a){if(b.util.getNodeType(a)!= -1)return!0;for(a=a.firstChild;a;){var c=a.nextSibling;if(!d(a))return!1;if(!f(a))return!1;a=c}return!0};f(a)};b.selection=function(a){this.keRange=this.range=this.sel=null;this.isControl=!1;var d=a.parentWindow||a.defaultView;this.init=function(){var f=a.selection?a.selection:d.getSelection(),c;try{c=f.rangeCount>0?f.getRangeAt(0):f.createRange()}catch(h){}c||(c=b.util.createRange(a));this.sel=f;this.range=c;var e,i,j;if(b.browser.IE)c.item?(this.isControl=!0,f=i=c.item(0),e=j=0):(this.isControl= -!1,f=function(d){var f=c.duplicate();f.collapse(d);var h=f.parentElement(),e=h.childNodes;if(e.length==0)return{node:h,pos:0};var g,i=0,j=!1,k=c.duplicate();b.util.moveToElementText(k,h);for(var p=0,v=e.length;p0)j=!0;else if(t==0)return d.nodeType==1?(f=new b.range(a),f.selectTextNode(d),{node:f.startNode,pos:0}):{node:d,pos:0};d.nodeType==1?(t=c.duplicate(),b.util.moveToElementText(t,d),k.setEndPoint("StartToEnd",t),j?i+=t.text.replace(/\r\n|\n|\r/g, -"").length:i=0):d.nodeType==3&&typeof d.nodeValue==="string"&&(k.moveStart("character",d.nodeValue.length),i+=d.nodeValue.length);j||(g=d)}if(!j&&g.nodeType==1)return g=h.lastChild,{node:g,pos:g.nodeType==1?1:g.nodeValue.length};k=c.duplicate();b.util.moveToElementText(k,h);k.setEndPoint("StartToEnd",f);i-=k.text.replace(/\r\n|\n|\r/g,"").length;return{node:g,pos:i}},e=f(!0),j=f(!1),f=e.node,e=e.pos,i=j.node,j=j.pos);else{f=c.startContainer;e=c.startOffset;i=c.endContainer;j=c.endOffset;f.nodeType== -1&&typeof f.childNodes[e]!="undefined"&&(f=f.childNodes[e],e=0);i.nodeType==1&&(j=j==0?1:j,typeof i.childNodes[j-1]!="undefined"&&(i=i.childNodes[j-1],j=i.nodeType==1?0:i.nodeValue.length));this.isControl=f.nodeType==1&&f===i&&c.startOffset+1==c.endOffset;if(f.nodeType==1&&i.nodeType==3&&j==0&&i.previousSibling)for(var k=i.previousSibling;k;){if(k===f){i=f;break}if(k.childNodes.length!=1)break;k=k.childNodes[0]}if(c.collapsed)k=new b.range(a),k.setTextStart(f,e),i=k.startNode,j=k.startPos}k=new b.range(a); -k.setTextStart(f,e);k.setTextEnd(i,j);this.keRange=k};this.init();this.addRange=function(d){if(!(b.browser.GECKO&&b.browser.VERSION<3))if(this.keRange=d,b.browser.IE){var c=function(c){var l=b.util.createRange(a),h=c?d.startNode:d.endNode;h.nodeType==1?(b.util.moveToElementText(l,h),l.collapse(c)):h.nodeType==3&&(l=b.util.getNodeStartRange(a,h),l.moveStart("character",c?d.startPos:d.endPos));return l};if(!this.range.item){var h=d.startNode;if(h==d.endNode&&b.util.getNodeType(h)==1&&b.util.getNodeTextLength(h)== -0)c=a.createTextNode(" "),h.appendChild(c),b.util.moveToElementText(this.range,h),this.range.collapse(!1),this.range.select(),h.removeChild(c);else{h.nodeType==3&&d.collapsed()?(this.range=c(!0),this.range.collapse(!0)):(this.range.setEndPoint("StartToStart",c(!0)),this.range.setEndPoint("EndToStart",c(!1)));try{this.range.select()}catch(e){}}}}else{h=function(a){for(var d=0;a;)a=a.previousSibling,d++;return--d};c=new b.range(a);c.setTextStart(d.startNode,d.startPos);c.setTextEnd(d.endNode,d.endPos); -var i=c.startNode,j=c.endNode;b.util.getNodeType(i)==88?this.range.setStart(i.parentNode,h(c.startNode)):this.range.setStart(i,c.startPos);b.util.getNodeType(j)==88?this.range.setEnd(j.parentNode,h(c.endNode)+1):this.range.setEnd(j,c.endPos);this.sel.removeAllRanges();this.sel.addRange(this.range)}};this.focus=function(){try{b.browser.IE&&this.range!=null&&this.range.select()}catch(a){}}};b.range=function(a){this.endPos=this.endNode=this.startPos=this.startNode=null;this.getParentElement=function(){var d= -function(a,d){for(;a&&(!a.tagName||a.tagName.toLowerCase()!="body");)if(a=a.parentNode,d(a))break},f=[];d(this.startNode,function(a){f.push(a)});var c;d(this.endNode,function(a){if(b.util.inArray(a,f))return c=a,!0});return c?c:a.body};this.getNodeList=function(){var d=this,f=this.getParentElement(),c=[],h=!1;f==d.startNode&&(h=!0);h&&c.push(f);b.eachNode(f,function(f){f==d.startNode&&(h=!0);var e=new b.range(a);e.selectTextNode(f);var j=e.comparePoints("START_TO_END",d);if(j>0)return!1;else if(j== -0&&(e.startNode!==e.endNode||e.startPos!==e.endPos))return!1;h&&c.push(f);return!0});return c};this.comparePoints=function(d,f){var c=function(f,c,l,e){if(b.browser.IE){var k=function(d,f,c){var l=b.util.createRange(a),e=b.util.getNodeType(d);e==1?(b.util.moveToElementText(l,d),l.collapse(c)):e==3&&(l=b.util.getNodeStartRange(a,d),l.moveStart("character",f),l.collapse(!0));return l},m;m=d=="START_TO_START"||d=="START_TO_END"?k(f,c,!0):k(f,c,!1);f=d=="START_TO_START"||d=="END_TO_START"?k(l,e,!0):k(l, -e,!1);return m.compareEndPoints("StartToStart",f)}else m=b.util.createRange(a),m.selectNode(f),d=="START_TO_START"||d=="START_TO_END"?m.collapse(!0):m.collapse(!1),f=b.util.createRange(a),f.selectNode(l),d=="START_TO_START"||d=="END_TO_START"?f.collapse(!0):f.collapse(!1),c=m.compareBoundaryPoints(Range.START_TO_START,f)>0?1:m.compareBoundaryPoints(Range.START_TO_START,f)==0?c>e?1:c==e?0:-1:-1;return c};if(d=="START_TO_START")return c(this.startNode,this.startPos,f.startNode,f.startPos);if(d=="START_TO_END")return c(this.startNode, -this.startPos,f.endNode,f.endPos);if(d=="END_TO_START")return c(this.endNode,this.endPos,f.startNode,f.startPos);if(d=="END_TO_END")return c(this.endNode,this.endPos,f.endNode,f.endPos)};this.collapsed=function(){return this.startNode===this.endNode&&this.startPos===this.endPos};this.collapse=function(a){a?this.setEnd(this.startNode,this.startPos):this.setStart(this.endNode,this.endPos)};this.setTextStart=function(a,f){var c=a;b.eachNode(a,function(a){if(b.util.getNodeType(a)==3&&a.nodeValue.length> -0||b.util.getNodeType(a)==88)return c=a,f=0,!1;return!0});this.setStart(c,f)};this.setStart=function(a,b){this.startNode=a;this.startPos=b;if(this.endNode===null)this.endNode=a,this.endPos=b};this.setTextEnd=function(a,f){var c=a;b.eachNode(a,function(a){if(b.util.getNodeType(a)==3&&a.nodeValue.length>0||b.util.getNodeType(a)==88)c=a,f=b.util.getNodeType(a)==3?a.nodeValue.length:0;return!0});this.setEnd(c,f)};this.setEnd=function(a,b){this.endNode=a;this.endPos=b;if(this.startNode===null)this.startNode= -a,this.startPos=b};this.selectNode=function(a){this.setStart(a,0);this.setEnd(a,a.nodeType==1?0:a.nodeValue.length)};this.selectTextNode=function(a){this.setTextStart(a,0);this.setTextEnd(a,a.nodeType==1?0:a.nodeValue.length)};this.extractContents=function(d){function f(a,b,f){var c=a.nodeValue.length,l=a.cloneNode(!0),e=l;b>0&&(e=l.splitText(b));f0&&(l=a.splitText(b)),f/g,"")===""&&q.parentNode&&q.parentNode.removeChild(q);return!0}var d=d===c?!0:d,e=this,g=this.startNode,i=this.startPos,j=this.endNode,k=this.endPos,m=[],o=b.util.arrayToHash(b.setting.noEndTags),n=!1,r=!1,s=this.getParentElement(),q=s.cloneNode(!1);l(s,q);b.each(m,function(a,d){(d.nodeType!=3||d.nodeValue.length>0)&&d.parentNode.removeChild(d)});return q};this.cloneContents= -function(){return this.extractContents(!1)};this.getText=function(){return this.cloneContents().innerHTML.replace(/<.*?>/g,"")}};b.cmd=function(a){this.doc=b.g[a].iframeDoc;this.keSel=b.g[a].keSel;this.keRange=b.g[a].keRange;this.mergeAttributes=function(a,f){for(var c=0,e=f.length;c=0?(this.mergeAttributes(a.parentNode,g),a):(e=e.cloneNode(!0),j?(f=a.cloneNode(!0),e.appendChild(f),a.parentNode.replaceChild(e,a),f):(j=a,f0&&(j=a.splitText(f)),c0?d.parentNode.appendChild(e):d.parentNode.insertBefore(e,d):d.appendChild(e),g.selectNode(e),!1;else if(d==i)g.setStart(d,0);else{if(d==k)return g.setEnd(d,0),!1}else if(d.nodeType==3&&n)if(d==i&&d==k)return d=c.wrapTextNode(d,j,m,e,f),g.selectNode(d),!1;else if(d==i)d=c.wrapTextNode(d,j,d.nodeValue.length,e,f),g.setStart(d,0);else if(d==k)return d=c.wrapTextNode(d,0,m,e,f),g.setEnd(d,d.nodeType==1?0:d.nodeValue.length),!1;else c.wrapTextNode(d,0,d.nodeValue.length,e,f);return!0}); -this.keSel.addRange(g)}};this.getTopParent=function(a,f){for(var c=null;f;)if(f=f.parentNode,b.util.inArray(f.tagName.toLowerCase(),a))c=f;else break;return c};this.splitNodeParent=function(a,f,c){var e=new b.range(this.doc);e.selectNode(a.firstChild);e.setEnd(f,c);f=e.extractContents();a.parentNode.insertBefore(f,a);return{left:f,right:a}};this.remove=function(a){var f=this.keRange,c=f.startNode,e=f.startPos,g=f.endNode,i=f.endPos;this.keSel.focus();if(!b.util.inMarquee(f.getParentElement())){var j= -f.getText().replace(/\s+/g,"")==="";if(!j||b.browser.IE){var k=[];b.each(a,function(a){a!="*"&&k.push(a)});var m=this.getTopParent(k,c),o=this.getTopParent(k,g);if(m){var n=this.splitNodeParent(m,c,e);f.setStart(n.right,0);if(c==g&&b.util.getNodeTextLength(n.right)>0)f.selectNode(n.right),c=new b.range(this.doc),c.selectTextNode(n.left),e>0&&(i-=c.endNode.nodeValue.length),c.selectTextNode(n.right),g=c.startNode}if(j)if(m=f.startNode,m.nodeType==1){if(m.nodeName.toLowerCase()=="br")return;f.selectNode(m)}else return; -else o&&(e=this.splitNodeParent(o,g,i),f.setEnd(e.left,0),m==o&&f.setStart(e.left,0));o=function(a,d){if(d.charAt(0)=="."){var f=b.util.getJsKey(d.substr(1));a.style[f]=""}else b.browser.IE&&b.browser.VERSION<8&&d=="class"&&(d="className"),a.removeAttribute(d)};e=f.getNodeList();f.setTextStart(f.startNode,f.startPos);f.setTextEnd(f.endNode,f.endPos);i=0;for(j=e.length;i0&&paths.pop():f!==""&&f!="."&&paths.push(f)}return"/"+paths.join("/")};a.match(/^\//)?a=f+h(a.substr(1)):a.match(/^\w+:\/\//)||(a=f+h(e+"/"+a));if(d=="relative")var g=function(d,b){if(a.substr(0,d.length)=== -d){for(var f=[],c=0;c0&&(c+="/"+f.join("/"));e=="/"&&(c+="/");return c+a.substr(d.length)}else if(f=d.match(/^(.*)\//))return g(f[1],++b)},a=g(f+e,0).substr(2);else d=="absolute"&&a.substr(0,f.length)===f&&(a=a.substr(f.length));return a},getHtml:function(a,d,f){var c=d?!0:!1,a=a.replace(/(]*>)([\s\S]*?)(<\/pre>)/ig,function(a,d,b,f){return d+b.replace(/]*>/ig,"\n")+f}),e={},g=["xx-small","x-small","small","medium","large","x-large","xx-large"];c&&b.each(d, -function(a,d){for(var f=a.split(","),c=0,l=f.length;c]+)|(?:\s+[\w\-:]+="[^"]*")|(?:\s+[\w\-:]+='[^']*'))*)(\/)?>((?:\r\n|\n|\r)*)/g,function(a,d,m,o,u,w,p){var d=d||"",m=m||"",v=o.toLowerCase(),o=u||"",w=w?" "+w:"",p=p||"";v==="script"&& -m!==""&&(i=!1);if(i)return a;v==="script"&&m===""&&(i=!0);if(c&&typeof e[v]=="undefined")return"";w===""&&typeof j[v]!="undefined"&&(w=" /");if(v in k){if(m||w)p="\n"}else p&&(p=" ");v!=="script"&&v!=="style"&&(d="");if(v==="font"){var t={},x="",o=o.replace(/\s*([\w\-:]+)=([^\s"'<>]+|"[^"]*"|'[^']*')/g,function(a,d,b){d=d.toLowerCase();b=(b||"").replace(/^["']|["']$/g,"");if(d==="color")return t.color=b," ";if(d==="size")return t["font-size"]=g[parseInt(b)-1]||""," ";if(d==="face")return t["font-family"]= -b," ";if(d==="style")return x=b," ";return a});x&&!/;$/.test(x)&&(x+=";");b.each(t,function(a,d){d!==""&&(/\s/.test(d)&&(d="'"+d+"'"),x+=a+":"+d+";")});x&&(o+=' style="'+x+'"');v="span"}return o!==""?(o=o.replace(/\s*([\w\-:]+)=([^\s"'<>]+|"[^"]*"|'[^']*')/g,function(a,d,g){a=d.toLowerCase();g=g||"";if(c&&(a.charAt(0)==="."||a!=="style"&&typeof e[v][a]=="undefined"))return" ";if(g==="")g='""';else{if(a==="style"){g=g.substr(1,g.length-2);g=g.replace(/\s*([^\s]+?)\s*:(.*?)(;|$)/g,function(a,d,f){a= -d.toLowerCase();if(c&&typeof e[v].style=="undefined"&&typeof e[v]["."+a]=="undefined")return"";f=b.util.trim(f);f=b.util.rgbToHex(f);return a+":"+f+";"});g=b.util.trim(g);if(g==="")return"";g='"'+g+'"'}b.util.inArray(a,["src","href"])&&(g.charAt(0)==='"'&&(g=g.substr(1,g.length-2)),g=b.format.getUrl(g,f));g.charAt(0)!=='"'&&(g='"'+g+'"')}return" "+a+"="+g+" "}),o=o.replace(/\s+(checked|selected|disabled|readonly)(\s+|$)/ig,function(a,d){var b=d.toLowerCase();if(c&&(b.charAt(0)==="."||typeof e[v][b]== -"undefined"))return" ";return" "+b+'="'+b+'" '}),o=b.util.trim(o),(o=o.replace(/\s+/g," "))&&(o=" "+o),d+"<"+m+v+o+w+">"+p):d+"<"+m+v+w+">"+p});b.browser.IE||(a=a.replace(/

\n<\/p>/ig,"

 

"),a=a.replace(/\n<\/p>/ig,"

"));var a=a.replace(/\u200B/g,""),m=b.setting.inlineTags.join("|"),o=function(a){var d=a.replace(RegExp("<("+m+")[^>]*><\\/("+m+")>","ig"),function(a,d,b){return d==b?"":a});a!==d&&(d=o(d));return d};return b.util.trim(o(a))}};b.attr=function(a,d,f){b.browser.IE&& -b.browser.VERSION<8&&d.toLowerCase()=="class"&&(d="className");f=""+f;a.setAttribute(d,f);f===""&&a.removeAttribute(d)};b.addClass=function(a,d){if(typeof a=="object"){var b=a.className;if(b){if((" "+b+" ").indexOf(" "+d+" ")<0)a.className=b+" "+d}else a.className=d}else typeof a=="string"&&(a=/\s+class\s*=/.test(a)?a.replace(/(\s+class=["']?)([^"']*)(["']?[\s>])/,function(a,b,f,c){return(" "+f+" ").indexOf(" "+d+" ")<0?f===""?b+d+c:b+f+" "+d+c:a}):a.substr(0,a.length-1)+' class="'+d+'">');return a}; -b.removeClass=function(a,d){var f=a.className||"",f=" "+f+" ",d=" "+d+" ";if(f.indexOf(d)>=0)f=b.util.trim(f.replace(RegExp(d,"ig"),"")),f===""?(f=a.getAttribute("class")?"class":"className",a.removeAttribute(f)):a.className=f;return a};b.getComputedStyle=function(a,d){var f=a.ownerDocument,c=f.parentWindow||f.defaultView,f=b.util.getJsKey(d),e="";c.getComputedStyle?(c=c.getComputedStyle(a,null),e=c[f]||c.getPropertyValue(d)||a.style[f]):a.currentStyle&&(e=a.currentStyle[f]||a.style[f]);return e}; -b.getCommonAncestor=function(a,d){function f(a){for(;a;){if(a.nodeType==1&&a.tagName.toLowerCase()===d)return a;a=a.parentNode}return null}var c=a.range,e=a.keRange,g=e.startNode,e=e.endNode;if(b.util.inArray(d,["table","td","tr"]))b.browser.IE?c.item?c.item(0).nodeName.toLowerCase()===d&&(g=e=c.item(0)):(g=c.duplicate(),g.collapse(!0),c=c.duplicate(),c.collapse(!1),g=g.parentElement(),e=c.parentElement()):(g=c.cloneRange(),g.collapse(!0),c=c.cloneRange(),c.collapse(!1),g=g.startContainer,e=c.startContainer); -c=f(g);g=f(e);if(c&&g&&c===g)return c;return null};b.queryCommandValue=function(a,d){function f(){var b=a.queryCommandValue(d);typeof b!=="string"&&(b="");return b}var d=d.toLowerCase(),c="";if(d==="fontname")c=f(),c=c.replace(/['"]/g,"");else if(d==="formatblock"){c=f();if(c===""){var e=new b.selection(a),g=b.getCommonAncestor(e,"h1");g||(g=b.getCommonAncestor(e,"h2"));g||(g=b.getCommonAncestor(e,"h3"));g||(g=b.getCommonAncestor(e,"h4"));g||(g=b.getCommonAncestor(e,"p"));if(g)c=g.nodeName}c==="Normal"&& -(c="p")}else d==="fontsize"?(e=new b.selection(a),(g=b.getCommonAncestor(e,"span"))&&(c=b.getComputedStyle(g,"font-size"))):d==="textcolor"?(e=new b.selection(a),(g=b.getCommonAncestor(e,"span"))&&(c=b.getComputedStyle(g,"color")),c=b.util.rgbToHex(c),c===""&&(c="default")):d==="bgcolor"&&(e=new b.selection(a),(g=b.getCommonAncestor(e,"span"))&&(c=b.getComputedStyle(g,"background-color")),c=b.util.rgbToHex(c),c===""&&(c="default"));return c.toLowerCase()};b.util={getDocumentElement:function(a){a= -a||document;return a.compatMode!="CSS1Compat"?a.body:a.documentElement},getDocumentHeight:function(a){a=this.getDocumentElement(a);return Math.max(a.scrollHeight,a.clientHeight)},getDocumentWidth:function(a){a=this.getDocumentElement(a);return Math.max(a.scrollWidth,a.clientWidth)},createTable:function(a){a=b.$$("table",a);a.cellPadding=0;a.cellSpacing=0;a.border=0;return{table:a,cell:a.insertRow(0).insertCell(0)}},loadStyle:function(a){var d=b.$$("link");d.setAttribute("type","text/css");d.setAttribute("rel", -"stylesheet");d.setAttribute("href",a);document.getElementsByTagName("head")[0].appendChild(d)},getAttrList:function(a){for(var d=/\s+(?:([\w\-:]+)|(?:([\w\-:]+)=([\w\-:]+))|(?:([\w\-:]+)="([^"]*)")|(?:([\w\-:]+)='([^']*)'))(?=(?:\s|\/|>)+)/g,b,c,e={};b=d.exec(a);)c=b[1]||b[2]||b[4]||b[6],b=b[1]||(b[2]?b[3]:b[4]?b[5]:b[7]),e[c]=b;return e},inArray:function(a,d){for(var b=0;b0?d[b].charAt(0).toUpperCase()+d[b].substr(1):d[b];return a},arrayToHash:function(a){for(var d={},b=0,c=a.length;b/g,">");return a=a.replace(/"/g,""")},unescape:function(a){a=a.replace(/</g,"<");a=a.replace(/>/g,">");a=a.replace(/"/g,'"');return a=a.replace(/&/g,"&")},getScrollPos:function(){var a,d;b.browser.IE||b.browser.OPERA? -(d=this.getDocumentElement(),a=d.scrollLeft,d=d.scrollTop):(a=window.scrollX,d=window.scrollY);return{x:a,y:d}},getElementPos:function(a){var d=0,b=0;if(a.getBoundingClientRect)b=a.getBoundingClientRect(),a=this.getScrollPos(),d=b.left+a.x,b=b.top+a.y;else{d=a.offsetLeft;b=a.offsetTop;for(a=a.offsetParent;a;)d+=a.offsetLeft,b+=a.offsetTop,a=a.offsetParent}return{x:d,y:b}},getCoords:function(a){a=a||window.event;return{x:a.clientX,y:a.clientY}},setOpacity:function(a,d){typeof a.style.opacity=="undefined"? -a.style.filter=d==100?"":"alpha(opacity="+d+")":a.style.opacity=d==100?"":d/100},getIframeDoc:function(a){return a.contentDocument||a.contentWindow.document},rgbToHex:function(a){function d(a){a=parseInt(a).toString(16);return a.length>1?a:"0"+a}return a.replace(/rgb\s*?\(\s*?(\d+)\s*?,\s*?(\d+)\s*?,\s*?(\d+)\s*?\)/ig,function(a,b,c,e){return"#"+d(b)+d(c)+d(e)})},parseJson:function(a){var d;if(d=/\{[\s\S]*\}|\[[\s\S]*\]/.exec(a))a=d[0];d=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g; -d.lastIndex=0;d.test(a)&&(a=a.replace(d,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)}));if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return eval("("+a+")");throw"JSON parse error";},getParam:function(a,d){return a.match(RegExp("[?&]"+d+"=([^?&]+)","i"))?unescape(RegExp.$1):""},createRange:function(a){return a.body.createTextRange? -a.body.createTextRange():a.createRange()},getNodeType:function(a){return a.nodeType==1&&b.util.inArray(a.tagName.toLowerCase(),b.setting.noEndTags)?88:a.nodeType},inMarquee:function(a){for(var d;a;){d=a.nodeName.toLowerCase();if(d=="marquee"||d=="select")return!0;a=a.parentNode}return!1},moveToElementText:function(a,d){this.inMarquee(d)||a.moveToElementText(d)},getNodeTextLength:function(a){var d=b.util.getNodeType(a);if(d==1)return a.innerHTML.replace(/<.*?>/ig,"").length;else if(d==3)return a.nodeValue.length}, -getNodeStartRange:function(a,d){var c=b.util.createRange(a),e=d.nodeType;if(e==1)return b.util.moveToElementText(c,d),c;else if(e==3){for(var e=0,h=d.previousSibling;h;){if(h.nodeType==1){var g=b.util.createRange(a);b.util.moveToElementText(g,h);c.setEndPoint("StartToEnd",g);c.moveStart("character",e);return c}else h.nodeType==3&&(e+=h.nodeValue.length);h=h.previousSibling}b.util.moveToElementText(c,d.parentNode);c.moveStart("character",e);return c}},removeParent:function(a){if(a.hasChildNodes)for(var d= -a.firstChild;d;){var b=d.nextSibling;a.parentNode.insertBefore(d,a);d=b}a.parentNode.removeChild(a)},pluginLang:function(a,d){b.each(b.lang.plugins[a],function(a,c){var e=b.$("lang."+a,d);e&&(e.parentNode.insertBefore(d.createTextNode(c),e),e.parentNode.removeChild(e))})},drag:function(a,d,c,e){var h=b.g[a];d.onmousedown=function(a){function d(a){if(t){var c=b.util.getCoords(a),f=b.util.getScrollPos(),a=parseInt(c.y-u-p+f.y),c=parseInt(c.x-w-v+f.x);e(n,r,s,q,a,c)}}function j(a){if(t){var d=b.util.getCoords(a, -h.iframeDoc),a=parseInt(x.y+d.y-u-p),d=parseInt(x.x+d.x-w-v);e(n,r,s,q,a,d)}}function k(a){t=!1;m.releaseCapture&&m.releaseCapture();b.event.remove(document,"mousemove",d);b.event.remove(document,"mouseup",k);b.event.remove(h.iframeDoc,"mousemove",j);b.event.remove(h.iframeDoc,"mouseup",k);b.event.remove(document,"selectstart",z);b.event.stop(a);return!1}var m=this,a=a||window.event,o=b.util.getCoords(a),n=parseInt(c.style.top),r=parseInt(c.style.left),s=c.style.width,q=c.style.height;s.match(/%$/)&& -(s=c.offsetWidth+"px");q.match(/%$/)&&(q=c.offsetHeight+"px");var s=parseInt(s),q=parseInt(q),u=o.y,w=o.x,o=b.util.getScrollPos(),p=o.y,v=o.x,t=!0,x=b.util.getElementPos(h.iframe),z=function(){return!1};b.event.add(document,"mousemove",d);b.event.add(document,"mouseup",k);b.event.add(h.iframeDoc,"mousemove",j);b.event.add(h.iframeDoc,"mouseup",k);b.event.add(document,"selectstart",z);m.setCapture&&m.setCapture();b.event.stop(a);return!1}},resize:function(a,d,c,e,h){h=typeof h=="undefined"?!0:h;a= -b.g[a];if(a.container&&(!e||!(parseInt(d)<=a.minWidth||parseInt(c)<=a.minHeight))){if(h)a.container.style.width=d;a.container.style.height=c;d=parseInt(c)-a.toolbarHeight-a.statusbarHeight;if(d>=0)a.iframe.style.height=d+"px",a.newTextarea.style.height=((b.browser.IE&&b.browser.VERSION<8||document.compatMode!="CSS1Compat")&&d>=2?d-2:d)+"px"}},hideLoadingPage:function(a){a=b.g[a].dialogStack;a=a[a.length-1];a.loading.style.display="none";a.iframe.style.display=""},showLoadingPage:function(a){a=b.g[a].dialogStack; -a=a[a.length-1];a.loading.style.display="";a.iframe.style.display="none"},setDefaultPlugin:function(){for(var a=["selectall","justifyleft","justifycenter","justifyright","justifyfull","insertorderedlist","insertunorderedlist","indent","outdent","subscript","superscript","bold","italic","underline","strikethrough"],d={bold:"B",italic:"I",underline:"U"},c=0;c';a=b.g[a].cssPath;typeof a=="string"&&(a=[a]);for(var c=0,e=a.length;c'); -d+="";d+='';d+="";return d},getMediaType:function(a){return a.match(/\.(rm|rmvb)(\?|$)/i)?"rm":a.match(/\.(swf|flv)(\?|$)/i)?"flash":"media"},getMediaImage:function(a,d,c){var e=c.width,h=c.height,d=d||this.getMediaType(c.src),c=this.getMediaEmbed(c),g="";e>0&&(g+="width:"+e+"px;");h>0&&(g+="height:"+h+"px;");a='';return a}, -getMediaEmbed:function(a){var d="]*>\s*$/ig, -""),e=e.replace(/^\s*

\s* \s*<\/p>\s*$/ig,"");return c.filterMode?b.format.getHtml(e,c.htmlTags,c.urlType):b.format.getHtml(e,null,c.urlType)},getData:function(a,d){var f=b.g[a];(d=d===c?f.wyswygMode:d)||this.innerHtml(f.iframeDoc.body,b.util.execSetHtmlHooks(a,f.newTextarea.value));return this.toData(a,f.iframeDoc.body.innerHTML)},getSrcData:function(a){var d=b.g[a];d.wyswygMode||this.innerHtml(d.iframeDoc.body,b.util.execSetHtmlHooks(a,d.newTextarea.value));return d.iframeDoc.body.innerHTML}, -getPureData:function(a){return this.extractText(this.getData(a))},extractText:function(a){a=a.replace(/<(?!img|embed).*?>/ig,"");return a=a.replace(/ /ig," ")},isEmpty:function(a){return this.getPureData(a).replace(/\r\n|\n|\r/,"").replace(/^\s+|\s+$/,"")===""},setData:function(a){var d=b.g[a];if(d.srcTextarea)d.srcTextarea.value=this.getData(a)},focus:function(a){a=b.g[a];a.wyswygMode?a.iframeWin.focus():a.newTextarea.focus()},click:function(a,d){this.focus(a);b.hideMenu(a);b.plugin[d].click(a)}, -selection:function(a){(!b.browser.IE||!b.g[a].keRange)&&this.setSelection(a)},setSelection:function(a){var a=b.g[a],d=new b.selection(a.iframeDoc);if(!b.browser.IE||d.range.item||d.range.parentElement().ownerDocument===a.iframeDoc)a.keSel=d,a.keRange=a.keSel.keRange,a.sel=a.keSel.sel,a.range=a.keSel.range},select:function(a){b.browser.IE&&b.g[a].wyswygMode&&b.g[a].range&&b.g[a].range.select()},execCommand:function(a,d,c){b.util.focus(a);b.util.select(a);try{b.g[a].iframeDoc.execCommand(d,!1,c)}catch(e){}b.toolbar.updateState(a); -b.util.execOnchangeHandler(a)},innerHtml:function(a,d){if(b.browser.IE){a.innerHTML=''+d;var c=b.$("__ke_temp_tag__",a.ownerDocument);c&&c.parentNode.removeChild(c)}else a.innerHTML=d},pasteHtml:function(a,d,c){a=b.g[a];c?d=''+d:d+='';b.browser.IE?a.range.item?a.range.item(0).outerHTML=d:a.range.pasteHTML(d):(a.range.deleteContents(),d=a.range.createContextualFragment(d), -a.range.insertNode(d));d=b.$("__ke_temp_tag__",a.iframeDoc);c=a.iframeDoc.createTextNode("");d.parentNode.replaceChild(c,d);a.keRange.selectNode(c);a.keSel.addRange(a.keRange)},insertHtml:function(a,d){if(d!==""){var c=b.g[a];if(c.wyswygMode&&c.range){d=this.execSetHtmlHooks(a,d);if(b.browser.IE)if(this.select(a),c.range.item)try{c.range.item(0).outerHTML=d}catch(e){var c=c.range.item(0),h=c.parentNode;h.removeChild(c);if(h.nodeName.toLowerCase()!="body")h=h.parentNode;this.innerHtml(h,d+h.innerHTML)}else c.range.pasteHTML('\u200b'+ -d),c=b.$("__ke_temp_tag__",c.iframeDoc),c.parentNode.removeChild(c);else if(b.browser.GECKO){this.execCommand(a,"inserthtml",d);return}else this.pasteHtml(a,d);b.util.execOnchangeHandler(a)}}},setFullHtml:function(a,d){var c=b.g[a];!b.browser.IE&&d===""&&(d="
");d=b.util.execSetHtmlHooks(a,d);this.innerHtml(c.iframeDoc.body,d);if(!c.wyswygMode)c.newTextarea.value=b.util.getData(a,!0);b.util.execOnchangeHandler(a)},selectImageWebkit:function(a,d,c){if(b.browser.WEBKIT&&(d=d.srcElement||d.target, -d.tagName.toLowerCase()=="img"))c&&b.util.selection(a),c=b.g[a].keRange,c.selectNode(d),b.g[a].keSel.addRange(c)},addTabEvent:function(a){var d=b.g[a];b.event.add(d.iframeDoc,"keydown",function(c){if(c.keyCode==9)return d.afterTab&&d.afterTab(a),b.event.stop(c),!1},a)},addContextmenuEvent:function(a){var d=b.g[a];d.contextmenuItems.length!=0&&d.useContextmenu&&b.event.add(d.iframeDoc,"contextmenu",function(c){b.hideMenu(a);b.util.setSelection(a);b.util.selectImageWebkit(a,c,!1);for(var e=0,h=[],g= -0,i=d.contextmenuItems.length;ge&&(e=k)}}for(;h.length>0&&h[0]==="-";)h.shift();for(;h.length>0&&h[h.length-1]==="-";)h.pop();j=null;g=0;for(i=h.length;g0){for(var m=new b.menu({id:a,event:c,type:"contextmenu",width:e}),g=0,i=h.length;g");e=d.keRange.startNode.nextSibling;if(b.browser.IE)e||b.util.pasteHtml(a,"
",!0);else if(b.browser.WEBKIT)if(e){var h=new b.range(d.iframeDoc);h.selectNode(e.parentNode);h.setStart(e,0);h.cloneContents().innerHTML.replace(/<(?!img|embed).*?>/ig,"")===""&&b.util.pasteHtml(a,"
",!0)}else b.util.pasteHtml(a,"
",!0);b.event.stop(c);return!1}}else b.util.inArray(e, -["p","h1","h2","h3","h4","h5","h6","pre","div","li"])||b.util.execCommand(a,"formatblock","

");return!0}},a)}};b.layout={hide:function(a){var d=b.g[a];b.hideMenu(a);for(a=d.dialogStack;a.length>0;)a[a.length-1].hide();d.maskDiv.style.display="none"}};b.hideMenu=function(a){a=b.g[a];a.hideDiv.innerHTML="";a.hideDiv.style.display="none"};b.colorpicker=function(a){var d,c=a.x||0,e=a.y||0,h=a.z||0,g=a.colors||b.setting.colorTable,i=a.doc||document,j=a.onclick,k=(a.selectedColor||"").toLowerCase();d= -b.$$("div");d.className="ke-colorpicker";d.style.top=e+"px";d.style.left=c+"px";d.style.zIndex=h;this.remove=function(){i.body.removeChild(d)};this.getElement=function(){function a(d,c,e){k===c.toLowerCase()&&(e+=" ke-colorpicker-cell-selected");d.className=e;d.title=c||b.lang.noColor;d.onmouseover=function(){this.className=e+" ke-colorpicker-cell-on"};d.onmouseout=function(){this.className=e};d.onclick=function(){j(c)};if(c){var f=b.$$("div");f.className="ke-colorpicker-cell-color";f.style.backgroundColor= -c;d.appendChild(f)}else d.innerHTML=b.lang.noColor}var d=b.$$("table");d.className="ke-colorpicker-table";d.cellPadding=0;d.cellSpacing=0;d.border=0;var c=d.insertRow(0),e=c.insertCell(0);e.colSpan=g[0].length;a(e,"","ke-colorpicker-cell-top");for(var f=0;f0||c>0){var e=b.util.getScrollPos(),j=b.util.getDocumentElement(),e=e.x+j.clientWidth-d-2;g>e&&(g=e)}return{x:g,y:i}}(function(){var c=a.width;this.type=a.type&&a.type=="contextmenu"?a.type:"menu";var e=b.$$("div"); -e.className="ke-"+this.type;e.setAttribute("name",a.cmd);var h=d.call(this,0,0);e.style.top=h.y+"px";e.style.left=h.x+"px";if(a.width)e.style.width=/^\d+$/.test(c)?c+"px":c;b.event.bind(e,"click",function(){},a.id);b.event.bind(e,"mousedown",function(){},a.id);this.div=e}).call(this);this.add=function(a,d,e){var g,i,j=!1;if(e!==c)g=e.height,i=e.iconHtml,j=e.checked;var k=this,e=b.$$("div");e.className="ke-"+k.type+"-item";if(g)e.style.height=g;var m=b.$$("div");m.className="ke-"+this.type+"-left"; -var o=b.$$("div");o.className="ke-"+k.type+"-center";if(g)o.style.height=g;var n=b.$$("div");n.className="ke-"+this.type+"-right";if(g)n.style.lineHeight=g;e.onmouseover=function(){this.className="ke-"+k.type+"-item ke-"+k.type+"-item-on";o.className="ke-"+k.type+"-center ke-"+k.type+"-center-on"};e.onmouseout=function(){this.className="ke-"+k.type+"-item";o.className="ke-"+k.type+"-center"};e.onclick=d;e.appendChild(m);e.appendChild(o);e.appendChild(n);j?b.util.innerHtml(m,''): -i&&b.util.innerHtml(m,i);b.util.innerHtml(n,a);this.append(e)};this.addSeparator=function(){var a=b.$$("div");a.className="ke-"+this.type+"-separator";this.append(a)};this.append=function(a){this.div.appendChild(a)};this.insert=function(a){b.util.innerHtml(this.div,a)};this.hide=function(){b.hideMenu(a.id)};this.show=function(){this.hide();var c=a.id;b.g[c].hideDiv.style.display="";b.g[c].hideDiv.appendChild(this.div);c=d.call(this,this.div.clientWidth,this.div.clientHeight);this.div.style.top=c.y+ -"px";this.div.style.left=c.x+"px"};this.picker=function(d){this.append((new b.colorpicker({colors:b.g[a.id].colorTable,onclick:function(d){b.plugin[a.cmd].exec(a.id,d)},selectedColor:d})).getElement());this.show()}};b.button=function(a){a=a||{};doc=a.doc||document;var d=b.$$("span",doc);d.className="ke-button-common ke-button-outer "+(a.className||"");d.title=a.text;btn=b.$$("input",doc);btn.className="ke-button-common ke-button";btn.type="button";btn.value=a.text||"";if(a.clickFn)btn.onclick=a.clickFn; -d.appendChild(btn);return{span:d,btn:btn}};b.dialog=function(a){function d(){b.util.getDocumentElement();var a=b.util.getScrollPos();l=a.y;h=a.x}function e(){var d=this.width+this.widthMargin,c=this.height+this.heightMargin,f=a.id,h=b.g[f],l=0,o=0;h.dialogAlignType=="page"?(h=b.util.getDocumentElement(),f=b.util.getScrollPos(),l=Math.round(f.x+(h.clientWidth-d)/2),o=Math.round(f.y+(h.clientHeight-c)/2)):(f=b.util.getElementPos(b.g[f].container),h=h.container,l=Math.round(h.clientWidth/2)-Math.round(d/ -2),c=Math.round(h.clientHeight/2)-Math.round(c/2),l=l<0?f.x:f.x+l,o=c<0?f.y:f.y+c);return{x:l<0?0:l,y:o<0?0:o}}this.widthMargin=30;this.heightMargin=100;this.zIndex=19811214;this.width=a.width;this.height=a.height;var l,h;this.beforeHide=a.beforeHide;this.afterHide=a.afterHide;this.beforeShow=a.beforeShow;this.afterShow=a.afterShow;this.ondrag=a.ondrag;this.resize=function(a,d){if(a)this.width=a;if(d)this.height=d;this.hide();this.show()};this.hide=function(){var c=a.id;this.beforeHide&&this.beforeHide(c); -var e=b.g[c].dialogStack;if(e[e.length-1]==this){var f=e.pop().iframe;f.src="javascript:false";f.parentNode.removeChild(f);document.body.removeChild(this.div);if(e.length<1)b.g[c].maskDiv.style.display="none";b.event.remove(window,"resize",d);b.event.remove(window,"scroll",d);this.afterHide&&this.afterHide(c);b.util.focus(c)}};this.show=function(){this.beforeShow&&this.beforeShow(i);var g=this,i=a.id,j=b.$$("div");j.className="ke-dialog";b.event.bind(j,"click",function(){},i);var k=b.g[i].dialogStack; -if(k.length>0)this.zIndex=k[k.length-1].zIndex+1;j.style.zIndex=this.zIndex;k=e.call(this);j.style.top=k.y+"px";j.style.left=k.x+"px";b.g[i].shadowMode?b.addClass(j,"ke-dialog-shadow"):b.addClass(j,"ke-dialog-no-shadow");k=b.$$("div");k.className="ke-dialog-title";k.innerHTML=a.title;var m=b.$$("span");m.className="ke-dialog-close";m.alt=b.lang.close;m.title=b.lang.close;m.onclick=function(){g.hide();b.util.select(i)};k.appendChild(m);d();b.event.add(window,"resize",d);b.event.add(window,"scroll", -d);b.util.drag(i,k,j,function(a,c,b,e,f,k){if(g.ondrag)g.ondrag(i);d();f=a+f;k=c+k;f0&&(c=a[a.length-1]);(a.length==0||d!==c)&&a.push(d)},add:function(a,d){var c=b.g[a],e=b.util.getSrcData(a);c.undoStack.length>0&&Math.abs(e.length-c.undoStack[c.undoStack.length-1].length)0&&(l=c.undoStack.pop());l=b.util.toData(a,l);c.wyswygMode?b.util.innerHtml(c.iframeDoc.body, -b.util.execSetHtmlHooks(a,l)):c.newTextarea.value=l}},redo:function(a){var c=b.g[a];if(c.redoStack.length!=0){var e=b.util.getSrcData(a);this.addStackData(c.undoStack,e);e=c.redoStack.pop();e=b.util.toData(a,e);c.wyswygMode?b.util.innerHtml(c.iframeDoc.body,b.util.execSetHtmlHooks(a,e)):c.newTextarea.value=e}}};b.readonly=function(a,d){var d=d==c?!0:d,e=b.g[a];b.browser.IE?e.iframeDoc.body.contentEditable=d?"false":"true":e.iframeDoc.designMode=d?"off":"on"};b.focus=function(a,c){c=(c||"").toLowerCase(); -if(b.g[a].container&&(b.util.focus(a),c==="end"&&(b.util.setSelection(a),b.g[a].sel))){var e=b.g[a].keSel,l=b.g[a].keRange;l.selectTextNode(b.g[a].iframeDoc.body);l.collapse(!1);e.addRange(l)}};b.blur=function(a){a=b.g[a];if(a.container)if(b.browser.IE){var c=b.$$("input");c.type="text";a.container.appendChild(c);c.focus();a.container.removeChild(c)}else a.wyswygMode?a.iframeWin.blur():a.newTextarea.blur()};b.html=function(a,d){if(d===c)return b.util.getData(a);else b.g[a].container&&(b.util.setFullHtml(a, -d),b.focus(a))};b.text=function(a,d){if(d===c)return d=b.html(a),d=d.replace(/<.*?>/ig,""),d=d.replace(/ /ig," "),d=b.util.trim(d);else b.html(a,b.util.escape(d))};b.insertHtml=function(a,c){b.g[a].container&&(b.g[a].range?(b.focus(a),b.util.selection(a),b.util.insertHtml(a,c)):b.appendHtml(a,c))};b.appendHtml=function(a,c){b.html(a,b.html(a)+c)};b.isEmpty=function(a){return b.util.isEmpty(a)};b.selectedHtml=function(a){var c=b.g[a].range;if(!c)return"";var e="";b.browser.IE?e=c.item?c.item(0).outerHTML: -c.htmlText:(e=b.$$("div",b.g[a].iframeDoc),e.appendChild(c.cloneContents()),e=e.innerHTML);return b.util.toData(a,e)};b.count=function(a,c){c=(c||"html").toLowerCase();if(c==="html")return b.html(a).length;else if(c==="text"){var e=b.util.getPureData(a),e=e.replace(/<(?:img|embed).*?>/ig,"K"),e=e.replace(/\r\n|\n|\r/g,""),e=b.util.trim(e);return e.length}return 0};b.sync=function(a){return b.util.setData(a)};b.remove=function(a,c){var e=b.g[a];if(!e.container)return!1;c=typeof c=="undefined"?0:c; -b.util.setData(a);for(var l=e.container,h=e.eventStack,g=0,i=h.length;g0&&b.g[a].afterDrag&&b.g[a].afterDrag(a)});b.util.drag(a,t,r,function(c,d,e,f,g){b.g[a].resizeMode>0&&(b.util.resize(a,e+"px",f+g+"px",!0,!1),b.g[a].afterDrag&&b.g[a].afterDrag(a))});b.each(b.plugin,function(c,d){d.init&&d.init(a)});b.g[a].getHtmlHooks.push(function(a){a=a.replace(/(<[^>]*)kesrc="([^"]+)"([^>]*>)/ig, -function(a,c,d){a=a.replace(/(\s+(?:href|src)=")[^"]+(")/i,"$1"+d+"$2");return a=a.replace(/\s+kesrc="[^"]+"/i,"")});return a=a.replace(/(<[^>]+\s)ke-(on\w+="[^"]+"[^>]*>)/ig,function(a,c,d){return c+d})});b.g[a].setHtmlHooks.push(function(a){a=a.replace(/(<[^>]*)(href|src)="([^"]+)"([^>]*>)/ig,function(a,c,d,b,e){if(a.match(/\skesrc="[^"]+"/i))return a;return c+d+'="'+b+'" kesrc="'+b+'"'+e});return a=a.replace(/(<[^>]+\s)(on\w+="[^"]+"[^>]*>)/ig,function(a,c,d){return c+"ke-"+d})});b.util.addContextmenuEvent(a); -b.util.addNewlineEvent(a);b.util.addTabEvent(a);b.event.input(y,i,a);b.event.add(y,"mouseup",i,a);b.event.add(document,"mousedown",i,a);b.onchange(a,function(a){if(b.g[a].autoSetDataMode||b.g[a].syncType=="auto")b.util.setData(a),b.g[a].afterSetData&&b.g[a].afterSetData(a);b.g[a].afterChange&&b.g[a].afterChange(a);b.history.add(a,b.g[a].minChangeSize)});if(b.browser.IE)y.body.disabled=!0,b.readonly(a,!1),y.body.removeAttribute("disabled");b.util.setFullHtml(a,k.value);b.history.add(a,0);c>0&&b.util.focus(a); -b.g[a].afterCreate&&b.g[a].afterCreate(a)}};b.onchange=function(a,c){function e(){c(a)}var l=b.g[a];l.onchangeHandlerStack.push(e);b.event.input(l.iframeDoc,e,a);b.event.input(l.newTextarea,e,a);b.event.add(l.iframeDoc,"mouseup",function(){window.setTimeout(function(){c(a)},0)},a)};var e=!0;b.init=function(a){var c=b.g[a.id]=a;c.config={};c.undoStack=[];c.redoStack=[];c.dialogStack=[];c.contextmenuItems=[];c.getHtmlHooks=[];c.setHtmlHooks=[];c.onchangeHandlerStack=[];c.eventStack=[];b.each(b.setting, -function(b,e){c[b]=typeof a[b]=="undefined"?e:a[b];c.config[b]=c[b]});c.loadStyleMode&&e&&(b.util.loadStyle(c.skinsPath+c.skinType+".css"),e=!1)};b.show=function(a){b.init(a);b.event.ready(function(){b.create(a.id)})};if(window.KE===c)window.KE=b;window.KindEditor=b}})(); -(function(c){c.langType="en";c.lang={source:"Source",undo:"Undo(Ctrl+Z)",redo:"Redo(Ctrl+Y)",cut:"Cut(Ctrl+X)",copy:"Copy(Ctrl+C)",paste:"Paste(Ctrl+V)",plainpaste:"Paste as plain text",wordpaste:"Paste from Word",selectall:"Select all",justifyleft:"Align left",justifycenter:"Align center",justifyright:"Align right",justifyfull:"Align full",insertorderedlist:"Ordered list",insertunorderedlist:"Unordered list",indent:"Increase indent",outdent:"Decrease indent",subscript:"Subscript",superscript:"Superscript", -title:"Paragraph format",fontname:"Font family",fontsize:"Font size",textcolor:"Text color",bgcolor:"Highlight color",bold:"Bold(Ctrl+B)",italic:"Italic(Ctrl+I)",underline:"Underline(Ctrl+U)",strikethrough:"Strikethrough",removeformat:"Remove format",image:"Image",flash:"Insert Flash",media:"Insert embeded media",table:"Insert table",hr:"Insert horizontal line",emoticons:"Insert emoticon",link:"Link",unlink:"Unlink",fullscreen:"Toggle fullscreen mode",about:"About",print:"Print",fileManager:"File Manager", -advtable:"Table",tablecell:"Cell",yes:"OK",no:"Cancel",close:"Close",editImage:"Image properties",deleteImage:"Delete image",editLink:"Link properties",deleteLink:"Unlink",tableprop:"Table properties",tablecellprop:"Cell properties",tableinsert:"Insert table",tabledelete:"Delete table",tablecolinsertleft:"Insert column left",tablecolinsertright:"Insert column right",tablerowinsertabove:"Insert row above",tablerowinsertbelow:"Insert row below",tablecoldelete:"Delete column",tablerowdelete:"Delete row", -noColor:"Default",invalidImg:"Please type valid URL.\nAllowed file extension: jpg,gif,bmp,png",invalidMedia:"Please type valid URL.\nAllowed file extension: swf,flv,mp3,wav,wma,wmv,mid,avi,mpg,asf,rm,rmvb",invalidWidth:"The width must be number.",invalidHeight:"The height must be number.",invalidBorder:"The border must be number.",invalidUrl:"Please type valid URL.",invalidRows:"Invalid rows.",invalidCols:"Invalid columns.",invalidPadding:"The padding must be number.",invalidSpacing:"The spacing must be number.", -invalidBorder:"The border width must be number.",pleaseInput:"Please type content.",invalidJson:"Invalid JSON string.",cutError:"Currently not supported by your browser, use keyboard shortcut(Ctrl+X) instead.",copyError:"Currently not supported by your browser, use keyboard shortcut(Ctrl+C) instead.",pasteError:"Currently not supported by your browser, use keyboard shortcut(Ctrl+V) instead."};var b=c.lang.plugins={};b.about={version:c.version,title:"WYSIWYG Editor"};b.plainpaste={comment:"Use keyboard shortcut(Ctrl+V) to paste the text into the window."}; -b.wordpaste={comment:"Use keyboard shortcut(Ctrl+V) to paste the text into the window."};b.link={url:"Link URL",linkType:"Target",newWindow:"New window",selfWindow:"Same window"};b.flash={url:"Flash URL",width:"Width",height:"Height"};b.media={url:"Media URL",width:"Width",height:"Height",autostart:"Auto start"};b.image={remoteImage:"Insert URL",localImage:"Upload",remoteUrl:"URL",localUrl:"File",size:"Size",width:"Width",height:"Height",resetSize:"Reset dimensions",align:"Align",defaultAlign:"Default", -leftAlign:"Left",rightAlign:"Right",imgTitle:"Title",viewServer:"Browse"};b.file_manager={emptyFolder:"Blank",moveup:"Parent folder",viewType:"Display: ",viewImage:"Thumbnails",listImage:"List",orderType:"Sorting: ",fileName:"By name",fileSize:"By size",fileType:"By type"};b.advtable={cells:"Cells",rows:"Rows",cols:"Columns",size:"Size",width:"Width",height:"Height",percent:"%",px:"px",space:"Space",padding:"Padding",spacing:"Spacing",align:"Align",textAlign:"Horizontal",verticalAlign:"Vertical", -alignDefault:"Default",alignLeft:"Left",alignCenter:"Center",alignRight:"Right",alignTop:"Top",alignMiddle:"Middle",alignBottom:"Bottom",alignBaseline:"Baseline",border:"Border",borderWidth:"Width",borderColor:"Color",backgroundColor:"Background"};b.title={h1:"Heading 1",h2:"Heading 2",h3:"Heading 3",h4:"Heading 4",p:"Normal"};b.fontname={fontName:{Arial:"Arial","Arial Black":"Arial Black","Comic Sans MS":"Comic Sans MS","Courier New":"Courier New",Garamond:"Garamond",Georgia:"Georgia",Tahoma:"Tahoma", -"Times New Roman":"Times New Roman","Trebuchet MS":"Trebuchet MS",Verdana:"Verdana"}}})(KindEditor); -(function(c,b){c.plugin.about={click:function(b){c.util.selection(b);(new c.dialog({id:b,cmd:"about",file:"about.html",width:300,height:70,loadingMode:!0,title:c.lang.about,noButton:c.lang.close})).show()}};c.plugin.undo={init:function(b){c.event.ctrl(c.g[b].iframeDoc,"Z",function(){c.plugin.undo.click(b);c.util.focus(b)},b);c.event.ctrl(c.g[b].newTextarea,"Z",function(){c.plugin.undo.click(b);c.util.focus(b)},b)},click:function(b){c.history.undo(b);c.util.execOnchangeHandler(b)}};c.plugin.redo={init:function(b){c.event.ctrl(c.g[b].iframeDoc, -"Y",function(){c.plugin.redo.click(b);c.util.focus(b)},b);c.event.ctrl(c.g[b].newTextarea,"Y",function(){c.plugin.redo.click(b);c.util.focus(b)},b)},click:function(b){c.history.redo(b);c.util.execOnchangeHandler(b)}};c.plugin.cut={click:function(b){try{if(!c.g[b].iframeDoc.queryCommandSupported("cut"))throw"e";}catch(a){alert(c.lang.cutError);return}c.util.execCommand(b,"cut",null)}};c.plugin.copy={click:function(b){try{if(!c.g[b].iframeDoc.queryCommandSupported("copy"))throw"e";}catch(a){alert(c.lang.copyError); -return}c.util.execCommand(b,"copy",null)}};c.plugin.paste={click:function(b){try{if(!c.g[b].iframeDoc.queryCommandSupported("paste"))throw"e";}catch(a){alert(c.lang.pasteError);return}c.util.execCommand(b,"paste",null)}};c.plugin.plainpaste={click:function(b){c.util.selection(b);this.dialog=new c.dialog({id:b,cmd:"plainpaste",file:"plainpaste.html",width:450,height:300,loadingMode:!0,title:c.lang.plainpaste,yesButton:c.lang.yes,noButton:c.lang.no});this.dialog.show()},exec:function(b){var a=c.util.getIframeDoc(this.dialog.iframe), -a=c.$("textArea",a).value,a=c.util.escape(a),a=a.replace(/ /g," "),a=c.g[b].newlineTag=="p"?a.replace(/^/,"

").replace(/$/,"

").replace(/\r\n|\n|\r/g,"

"):a.replace(/\r\n|\n|\r/g,"
$&");c.util.insertHtml(b,a);this.dialog.hide();c.util.focus(b)}};c.plugin.wordpaste={click:function(b){c.util.selection(b);this.dialog=new c.dialog({id:b,cmd:"wordpaste",file:"wordpaste.html",width:450,height:300,loadingMode:!0,title:c.lang.wordpaste,yesButton:c.lang.yes,noButton:c.lang.no});this.dialog.show()}, -exec:function(b){var a=c.util.getIframeDoc(this.dialog.iframe),a=c.$("wordIframe",a),a=c.util.getIframeDoc(a).body.innerHTML,a=a.replace(//ig,""),a=a.replace(//ig,""),a=a.replace(/]*>(\n|.)*?<\/style>/ig,""),a=a.replace(/]*>(\n|.)*?<\/script>/ig,""),a=a.replace(/]+>(\n|.)*?<\/w:[^>]+>/ig,""),a=a.replace(/(\n|.)*?<\/xml>/ig,""),a=a.replace(/\r\n|\n|\r/ig,""),a=c.util.execGetHtmlHooks(b,a),a=c.format.getHtml(a,c.g[b].htmlTags,c.g[b].urlType);c.util.insertHtml(b, -a);this.dialog.hide();c.util.focus(b)}};c.plugin.fullscreen={click:function(b){var a=c.g[b],d=this,f=function(){var b=c.util.getDocumentElement();a.width=b.clientWidth+"px";a.height=b.clientHeight-(c.util.inArray("-",a.items)?4:6)+"px"},l="",h=function(){if(d.isSelected){var g=c.util.getDocumentElement(),g=[g.clientWidth,g.clientHeight].join("");l!=g&&(l=g,f(),c.util.resize(b,a.width,a.height))}};if(this.isSelected)this.isSelected=!1,c.util.setData(b),c.remove(b,1),a.width=this.width,a.height=this.height, -c.create(b,2),document.body.style.height="",document.body.style.overflow="",document.body.parentNode.style.overflow="",window.scrollTo(this.scrollPos.x,this.scrollPos.y),c.event.remove(window,"resize",h),a.resizeMode=a.config.resizeMode,c.toolbar.unselect(b,"fullscreen");else{this.isSelected=!0;this.width=a.container.style.width;this.height=a.container.style.height;c.util.setData(b);c.remove(b,2);this.scrollPos=c.util.getScrollPos();window.scrollTo(0,0);document.body.style.height=0;document.body.style.overflow= -"hidden";document.body.parentNode.style.overflow="hidden";f();c.create(b,1);var g=a.container;g.style.position="absolute";g.style.left=0;g.style.top=0;g.style.zIndex=19811211;c.event.add(window,"resize",h);a.resizeMode=0;c.toolbar.select(b,"fullscreen")}}};c.plugin.bgcolor={click:function(b){c.util.selection(b);var a=c.queryCommandValue(c.g[b].iframeDoc,"bgcolor");this.menu=new c.menu({id:b,cmd:"bgcolor"});this.menu.picker(a)},exec:function(b,a){var d=new c.cmd(b);a==""?d.remove({span:[".background-color"]}): -d.wrap("span",[{".background-color":a}]);c.util.execOnchangeHandler(b);this.menu.hide();c.util.focus(b)}};c.plugin.fontname={click:function(b){var a=c.lang.plugins.fontname.fontName;c.util.selection(b);var d=new c.menu({id:b,cmd:"fontname",width:150}),f=c.queryCommandValue(c.g[b].iframeDoc,"fontname");c.each(a,function(a,h){d.add(''+h+"",function(){c.plugin.fontname.exec(b,a)},{checked:f===a.toLowerCase()||f===h.toLowerCase()})});d.show(); -this.menu=d},exec:function(b,a){(new c.cmd(b)).wrap("span",[{".font-family":a}]);c.util.execOnchangeHandler(b);this.menu.hide();c.util.focus(b)}};c.plugin.fontsize={click:function(b){var a=["9px","10px","12px","14px","16px","18px","24px","32px"];c.util.selection(b);for(var d=c.queryCommandValue(c.g[b].iframeDoc,"fontsize"),f=new c.menu({id:b,cmd:"fontsize",width:120}),l=0,h=a.length;l'+g+"",function(a){return function(){c.plugin.fontsize.exec(b, -a)}}(g),{height:parseInt(g)+12+"px",checked:d===g})}f.show();this.menu=f},exec:function(b,a){(new c.cmd(b)).wrap("span",[{".font-size":a}]);c.util.execOnchangeHandler(b);this.menu.hide();c.util.focus(b)}};c.plugin.hr={click:function(b){c.util.selection(b);c.util.insertHtml(b,"


");c.util.focus(b)}};c.plugin.print={click:function(b){c.util.selection(b);c.g[b].iframeWin.print()}};c.plugin.removeformat={click:function(b){c.util.selection(b);for(var a=new c.cmd(b),d={"*":["class","style"]},f=0,l= -c.g[b].inlineTags.length;f'+g+"",function(){c.plugin.title.exec(b,"<"+a+">")},{height:d[a]+12+ -"px",checked:f===a.toLowerCase()||f===g.toLowerCase()})});l.show();this.menu=l},exec:function(b,a){c.util.select(b);c.util.execCommand(b,"formatblock",a);this.menu.hide();c.util.focus(b)}};c.plugin.emoticons={click:function(e){function a(a){var b=c.$$("table");if(r)b.onmouseover=function(){r.style.display="block"},b.onmouseout=function(){r.style.display="none"};b.className="ke-plugin-emoticons-table";b.cellPadding=0;b.cellSpacing=0;b.border=0;for(var a=(a-1)*i+g,d=0;dk?(r.style.left=0,r.style.right=""):(r.style.left="",r.style.right=0);s.src=o+c+".gif";this.className="ke-plugin-emoticons-cell ke-plugin-emoticons-cell-on"}}(m,a):function(){this.className="ke-plugin-emoticons-cell ke-plugin-emoticons-cell-on"};n.onmouseout=function(){this.className="ke-plugin-emoticons-cell"};n.onclick=function(a){return function(){f.exec(e,a);return!1}}(a); -var q=c.$$("span");q.className="ke-plugin-emoticons-img";q.style.backgroundPosition="-"+24*a+"px 0px";n.appendChild(q);a++}return b}function d(b){for(var e=1;e<=j;e++){if(b!==e){var f=c.$$("a");f.href="javascript:;";f.innerHTML="["+e+"]";f.onclick=function(c){return function(){n.removeChild(q);var b=a(c);n.insertBefore(b,u);q=b;u.innerHTML="";d(c);return!1}}(e);u.appendChild(f)}else u.appendChild(document.createTextNode("["+e+"]"));u.appendChild(document.createTextNode(" "))}}var f=this,l=5,h=9,g= -0,i=l*h,j=Math.ceil(135/i),k=Math.floor(h/2),m=c.g[e],o=m.pluginsPath+"emoticons/",m=m.allowPreviewEmoticons===b?!0:m.allowPreviewEmoticons;c.util.selection(e);var n=c.$$("div");n.className="ke-plugin-emoticons-wrapper";var r,s;if(m)r=c.$$("div"),r.className="ke-plugin-emoticons-preview",r.style.right=0,s=c.$$("img"),s.className="ke-reset",s.src=o+"0.gif",s.border=0,r.appendChild(s),n.appendChild(r);var q=a(1);n.appendChild(q);var u=c.$$("div");u.className="ke-plugin-emoticons-page";n.appendChild(u); -d(1);m=new c.menu({id:e,cmd:"emoticons"});m.append(n);m.show();this.menu=m},exec:function(b,a){var d=c.g[b].pluginsPath+"emoticons/"+a+".gif";c.util.insertHtml(b,'');this.menu.hide();c.util.focus(b)}};c.plugin.flash={init:function(b){c.g[b].getHtmlHooks.push(function(a){return a.replace(/]*class="?ke-flash"?[^>]*>/ig,function(a){var b=a.match(/style="[^"]*;?\s*width:\s*(\d+)/i)?RegExp.$1:0,e=a.match(/style="[^"]*;?\s*height:\s*(\d+)/i)?RegExp.$1:0,b= -b||(a.match(/width="([^"]+)"/i)?RegExp.$1:0),e=e||(a.match(/height="([^"]+)"/i)?RegExp.$1:0);if(a.match(/kesrctag="([^"]+)"/i))return a=c.util.getAttrList(unescape(RegExp.$1)),a.width=b||a.width||0,a.height=e||a.height||0,a.kesrc=a.src,c.util.getMediaEmbed(a)})});c.g[b].setHtmlHooks.push(function(a){return a.replace(/]*type="application\/x-shockwave-flash"[^>]*>(?:<\/embed>)?/ig,function(a){var f=a.match(/\s+src="([^"]+)"/i)?RegExp.$1:"";if(a.match(/\s+kesrc="([^"]+)"/i))f=RegExp.$1;var l= -a.match(/\s+width="([^"]+)"/i)?RegExp.$1:0,h=a.match(/\s+height="([^"]+)"/i)?RegExp.$1:0,a=c.util.getAttrList(a);a.src=f;a.width=l;a.height=h;return c.util.getMediaImage(b,"flash",a)})})},click:function(b){c.util.selection(b);this.dialog=new c.dialog({id:b,cmd:"flash",file:"flash.html",width:400,height:140,loadingMode:!0,title:c.lang.flash,yesButton:c.lang.yes,noButton:c.lang.no});this.dialog.show()},check:function(b,a,d,f){b=c.util.getIframeDoc(this.dialog.iframe);if(!a.match(/^.{3,}$/))return alert(c.lang.invalidUrl), -c.$("url",b).focus(),!1;if(!d.match(/^\d*$/))return alert(c.lang.invalidWidth),c.$("width",b).focus(),!1;if(!f.match(/^\d*$/))return alert(c.lang.invalidHeight),c.$("height",b).focus(),!1;return!0},exec:function(b){var a=c.util.getIframeDoc(this.dialog.iframe),d=c.$("url",a).value,f=c.$("width",a).value,a=c.$("height",a).value;if(!this.check(b,d,f,a))return!1;d=c.util.getMediaImage(b,"flash",{src:d,type:c.g[b].mediaTypes.flash,width:f,height:a,quality:"high"});c.util.insertHtml(b,d);this.dialog.hide(); -c.util.focus(b)}};c.plugin.image={getSelectedNode:function(b){var b=c.g[b],a=b.keRange.startNode,d=b.keRange.endNode;if((c.browser.WEBKIT||b.keSel.isControl)&&a.nodeType==1&&a.tagName.toLowerCase()=="img"&&a==d&&!a.className.match(/^ke-\w+/i))return a},init:function(b){var a=this,b=c.g[b];b.contextmenuItems.push({text:c.lang.editImage,click:function(b,e){c.util.select(b);e.hide();a.click(b)},cond:function(b){return a.getSelectedNode(b)},options:{width:"150px",iconHtml:''}}); -b.contextmenuItems.push({text:c.lang.deleteImage,click:function(b,e){c.util.select(b);e.hide();var l=a.getSelectedNode(b);l.parentNode.removeChild(l);c.util.execOnchangeHandler(b)},cond:function(b){return a.getSelectedNode(b)},options:{width:"150px"}});b.contextmenuItems.push("-")},click:function(b){c.util.selection(b);this.dialog=new c.dialog({id:b,cmd:"image",file:"image/image.html",width:400,height:220,loadingMode:!0,title:c.lang.image,yesButton:c.lang.yes,noButton:c.lang.no});this.dialog.show()}, -check:function(){var b=c.util.getIframeDoc(this.dialog.iframe),a=c.$("type",b).value,d=c.$("imgWidth",b).value,f=c.$("imgHeight",b).value;c.$("imgTitle",b);a=a==2?c.$("imgFile",b):c.$("url",b);if(!a.value.match(/\.(jpg|jpeg|gif|bmp|png)(\s|\?|$)/i))return alert(c.lang.invalidImg),a.focus(),!1;if(!d.match(/^\d*$/))return alert(c.lang.invalidWidth),c.$("imgWidth",b).focus(),!1;if(!f.match(/^\d*$/))return alert(c.lang.invalidHeight),c.$("imgHeight",b).focus(),!1;return!0},exec:function(b){for(var a= -this,d=c.util.getIframeDoc(this.dialog.iframe),f=c.$("type",d).value,l=c.$("imgWidth",d).value,h=c.$("imgHeight",d).value,g=c.$("imgTitle",d).value,i=d.getElementsByName("align"),j="",k=0,m=i.length;k0&&(a+='width="'+f+'" ');l>0&&(a+='height="'+l+'" ');d&&(a+='title="'+d+'" ');g&&(a+='align="'+g+'" ');a+='alt="'+d+'" ';h&&(a+='border="'+h+'" ');a+="/>";c.util.insertHtml(b, -a);this.dialog.hide();c.util.focus(b)}};c.plugin.link={getSelectedNode:function(b){return c.getCommonAncestor(c.g[b].keSel,"a")},init:function(b){var a=this;c.g[b].contextmenuItems.push({text:c.lang.editLink,click:function(b,e){c.util.select(b);e.hide();a.click(b)},cond:function(b){return a.getSelectedNode(b)},options:{width:"150px",iconHtml:''}})},click:function(b){c.util.selection(b);this.dialog=new c.dialog({id:b,cmd:"link",file:"link/link.html", -width:400,height:90,loadingMode:!0,title:c.lang.link,yesButton:c.lang.yes,noButton:c.lang.no});this.dialog.show()},exec:function(b){var a=c.g[b];c.util.select(b);var d=a.keRange,f=d.startNode,l=d.endNode,h=a.iframeDoc,g=c.util.getIframeDoc(this.dialog.iframe),i=c.$("hyperLink",g).value,j=c.$("linkType",g).value;if(!i.match(/.+/)||i.match(/^\w+:\/\/\/?$/))return alert(c.lang.invalidUrl),c.$("hyperLink",g).focus(),!1;for(g=d.getParentElement();g;){if(g.tagName.toLowerCase()=="a"||g.tagName.toLowerCase()== -"body")break;g=g.parentNode}var g=g.parentNode,l=c.browser.IE?!!a.range.item:f.nodeType==1&&f===l&&f.nodeName.toLowerCase()!="br",k=!l;l||(k=c.browser.IE?a.range.text==="":a.range.toString()==="");if(k||c.util.isEmpty(b))a='",c.util.insertHtml(b,a);else{h.execCommand("createlink",!1,"__ke_temp_url__");for(var g=g.getElementsByTagName("a"),k=0,m=g.length;k'}});c.g[b].contextmenuItems.push("-")},click:function(b){var a=c.g[b],d=a.iframeDoc;c.util.selection(b);var f=a.keRange,l=f.startNode,f=f.endNode,f=l.nodeType==1&&l===f,h=!f;f||(h=c.browser.IE?a.range.text==="":a.range.toString()==="");if(h){h=c.plugin.link.getSelectedNode(b);if(!h)return;f=a.keRange;f.selectTextNode(h); -a.keSel.addRange(f);c.util.select(b);d.execCommand("unlink",!1,null);if(c.browser.WEBKIT&&l.tagName.toLowerCase()=="img")d=l.parentNode,d.tagName.toLowerCase()=="a"&&(c.util.removeParent(d),a.keSel.addRange(f))}else d.execCommand("unlink",!1,null);c.util.execOnchangeHandler(b);c.toolbar.updateState(b);c.util.focus(b)}};c.plugin.media={init:function(b){var a={};c.each(c.g[b].mediaTypes,function(b,c){a[c]=b});c.g[b].getHtmlHooks.push(function(a){return a.replace(/]*class="?ke-\w+"?[^>]*>/ig, -function(a){var b=a.match(/style="[^"]*;?\s*width:\s*(\d+)/i)?RegExp.$1:0,d=a.match(/style="[^"]*;?\s*height:\s*(\d+)/i)?RegExp.$1:0,b=b||(a.match(/width="([^"]+)"/i)?RegExp.$1:0),d=d||(a.match(/height="([^"]+)"/i)?RegExp.$1:0);if(a.match(/\s+kesrctag="([^"]+)"/i))return a=c.util.getAttrList(unescape(RegExp.$1)),a.width=b||a.width||0,a.height=d||a.height||0,a.kesrc=a.src,c.util.getMediaEmbed(a)})});c.g[b].setHtmlHooks.push(function(d){return d.replace(/]*type="([^"]+)"[^>]*>(?:<\/embed>)?/ig, -function(d,l){if(typeof a[l]=="undefined")return d;var h=d.match(/\s+src="([^"]+)"/i)?RegExp.$1:"";if(d.match(/\s+kesrc="([^"]+)"/i))h=RegExp.$1;var g=d.match(/\s+width="([^"]+)"/i)?RegExp.$1:0,i=d.match(/\s+height="([^"]+)"/i)?RegExp.$1:0,j=c.util.getAttrList(d);j.src=h;j.width=g;j.height=i;return c.util.getMediaImage(b,"",j)})})},click:function(b){c.util.selection(b);this.dialog=new c.dialog({id:b,cmd:"media",file:"media.html",width:400,height:170,loadingMode:!0,title:c.lang.media,yesButton:c.lang.yes, -noButton:c.lang.no});this.dialog.show()},check:function(b,a,d,f){b=c.util.getIframeDoc(this.dialog.iframe);if(!a.match(/^.{3,}\.(swf|flv|mp3|wav|wma|wmv|mid|avi|mpg|mpeg|asf|rm|rmvb)(\?|$)/i))return alert(c.lang.invalidMedia),c.$("url",b).focus(),!1;if(!d.match(/^\d*$/))return alert(c.lang.invalidWidth),c.$("width",b).focus(),!1;if(!f.match(/^\d*$/))return alert(c.lang.invalidHeight),c.$("height",b).focus(),!1;return!0},exec:function(b){var a=c.util.getIframeDoc(this.dialog.iframe),d=c.$("url",a).value, -f=c.$("width",a).value,l=c.$("height",a).value;if(!this.check(b,d,f,l))return!1;a=c.$("autostart",a).checked?"true":"false";d=c.util.getMediaImage(b,"",{src:d,type:c.g[b].mediaTypes[c.util.getMediaType(d)],width:f,height:l,autostart:a,loop:"true"});c.util.insertHtml(b,d);this.dialog.hide();c.util.focus(b)}};c.plugin.advtable={getSelectedTable:function(b){return c.getCommonAncestor(c.g[b].keSel,"table")},getSelectedRow:function(b){return c.getCommonAncestor(c.g[b].keSel,"tr")},getSelectedCell:function(b){return c.getCommonAncestor(c.g[b].keSel, -"td")},tableprop:function(b){this.click(b)},tablecellprop:function(b){var a=this;c.util.selection(b);var d=new c.dialog({id:b,cmd:"advtable",file:"advtable/cell.html",width:420,height:150,loadingMode:!0,title:c.lang.tablecell,yesButton:c.lang.yes,noButton:c.lang.no,yesClickFn:function(b){var e=c.util.getIframeDoc(d.iframe),h=c.$("width",e),g=c.$("height",e),i=c.$("widthType",e),j=c.$("heightType",e),k=c.$("textAlign",e),m=c.$("verticalAlign",e),o=c.$("border",e),n=c.$("borderColor",e),r=c.$("backgroundColor", -e),e=h.value,s=g.value,i=i.value,j=j.value,k=k.value,m=m.value,q=o.value,n=n.innerHTML,r=r.innerHTML;if(!e.match(/^\d*$/))return alert(c.lang.invalidWidth),h.focus(),!1;if(!s.match(/^\d*$/))return alert(c.lang.invalidHeight),g.focus(),!1;if(!q.match(/^\d*$/))return alert(c.lang.invalidBorder),o.focus(),!1;h=a.getSelectedCell(b);h.style.width=e!==""?e+i:"";h.style.height=s!==""?s+j:"";h.style.backgroundColor=r;h.style.textAlign=k;h.style.verticalAlign=m;h.style.borderWidth=q;h.style.borderStyle=q!== -""?"solid":"";h.style.borderColor=n;c.util.execOnchangeHandler(b);d.hide();c.util.focus(b)}});d.show()},tableinsert:function(b){this.click(b,"insert")},tabledelete:function(b){b=this.getSelectedTable(b);b.parentNode.removeChild(b)},tablecolinsert:function(b,a){for(var c=this.getSelectedTable(b),f=this.getSelectedCell(b).cellIndex+a,l=0,h=c.rows.length;l'}})}c.g[e].contextmenuItems.push("-");c.g[e].setHtmlHooks.push(function(a){return a.replace(/]*)>/ig,function(a,b){if(b.match(/\s+border=["']?(\d*)["']?/ig)){var d=RegExp.$1;return b.indexOf("ke-zeroborder")<0&&(d===""||d==="0")?c.addClass(a,"ke-zeroborder"):a}else return c.addClass(a,"ke-zeroborder")})})},click:function(b,a){a=a||"default"; -c.util.selection(b);this.dialog=new c.dialog({id:b,cmd:"advtable",file:"advtable/advtable.html?mode="+a,width:420,height:220,loadingMode:!0,title:c.lang.advtable,yesButton:c.lang.yes,noButton:c.lang.no});this.dialog.show()},exec:function(b){var a=c.util.getIframeDoc(this.dialog.iframe),d=c.$("mode",a),f=c.$("rows",a),l=c.$("cols",a),h=c.$("width",a),g=c.$("height",a),i=c.$("widthType",a),j=c.$("heightType",a),k=c.$("padding",a),m=c.$("spacing",a),o=c.$("align",a),n=c.$("border",a),r=c.$("borderColor", -a),s=c.$("backgroundColor",a),a=f.value,q=l.value,u=h.value,w=g.value,i=i.value,p=j.value,j=k.value,v=m.value,o=o.value,t=n.value,r=r.innerHTML,s=s.innerHTML;if(a==""||a==0||!a.match(/^\d*$/))return alert(c.lang.invalidRows),f.focus(),!1;if(q==""||q==0||!q.match(/^\d*$/))return alert(c.lang.invalidCols),l.focus(),!1;if(!u.match(/^\d*$/))return alert(c.lang.invalidWidth),h.focus(),!1;if(!w.match(/^\d*$/))return alert(c.lang.invalidHeight),g.focus(),!1;if(!j.match(/^\d*$/))return alert(c.lang.invalidPadding), -k.focus(),!1;if(!v.match(/^\d*$/))return alert(c.lang.invalidSpacing),m.focus(),!1;if(!t.match(/^\d*$/))return alert(c.lang.invalidBorder),n.focus(),!1;if(d.value==="update")a=this.getSelectedTable(b),a.style.width=u!==""?u+i:"",a.style.height=w!==""?w+p:"",a.style.backgroundColor=s,c.attr(a,"width",""),c.attr(a,"height",""),c.attr(a,"bgColor",""),c.attr(a,"cellPadding",j),c.attr(a,"cellSpacing",v),c.attr(a,"align",o),t===""||t==="0"?c.addClass(a,"ke-zeroborder"):c.removeClass(a,"ke-zeroborder"), -c.attr(a,"border",t),c.attr(a,"borderColor",r),c.util.execOnchangeHandler(b);else{d="";u!==""&&(d+="width:"+u+i+";");w!==""&&(d+="height:"+w+p+";");s!==""&&(d+="background-color:"+s+";");u="";for(d=0;d "; -u+=""}u+="";c.util.insertHtml(b,u)}this.dialog.hide();c.util.focus(b)}}})(KindEditor); diff --git a/www/js/jquery/kindeditor/kindeditor.zh-cn.js b/www/js/jquery/kindeditor/kindeditor.zh-cn.js deleted file mode 100755 index 3dcc16a64c..0000000000 --- a/www/js/jquery/kindeditor/kindeditor.zh-cn.js +++ /dev/null @@ -1,173 +0,0 @@ -(function(c){if(window.KindEditor===c){var b={version:"3.5.6 (2011-10-04)"};b.scriptPath=function(){for(var a=document.getElementsByTagName("script"),d=0,b=a.length;d-1&&a.indexOf("opera")==-1,GECKO:a.indexOf("gecko")>-1&& -a.indexOf("khtml")==-1,WEBKIT:a.indexOf("applewebkit")>-1,OPERA:a.indexOf("opera")>-1}}();b.setting={wyswygMode:!0,loadStyleMode:!0,resizeMode:2,filterMode:!1,autoSetDataMode:!1,shadowMode:!0,useContextmenu:!0,urlType:"",skinType:"default",syncType:"form",newlineTag:"p",dialogAlignType:"page",cssPath:"",skinsPath:b.scriptPath+"skins/",pluginsPath:b.scriptPath+"plugins/",minWidth:200,minHeight:100,minChangeSize:5,toolbarLineHeight:24,statusbarHeight:11,items:["source","|","fullscreen","undo","redo", -"print","cut","copy","paste","plainpaste","wordpaste","|","justifyleft","justifycenter","justifyright","justifyfull","insertorderedlist","insertunorderedlist","indent","outdent","subscript","superscript","|","selectall","-","title","fontname","fontsize","|","textcolor","bgcolor","bold","italic","underline","strikethrough","removeformat","|","image","flash","media","advtable","hr","emoticons","link","unlink","|","about"],colorTable:[["#E53333","#E56600","#FF9900","#64451D","#DFC5A4","#FFE500"],["#009900", -"#006600","#99BB00","#B8D100","#60D978","#00D5FF"],["#337FE5","#003399","#4C33E5","#9933E5","#CC33E5","#EE33EE"],["#FFFFFF","#CCCCCC","#999999","#666666","#333333","#000000"]],noEndTags:["br","hr","img","area","col","embed","input","param"],inlineTags:["b","del","em","font","i","span","strike","strong","sub","sup","u"],endlineTags:["br","hr","table","tbody","td","tr","th","div","p","ol","ul","li","blockquote","h1","h2","h3","h4","h5","h6","script","style","marquee"],htmlTags:{font:["color","size", -"face",".background-color"],span:[".color",".background-color",".font-size",".font-family",".background",".font-weight",".font-style",".text-decoration",".vertical-align"],div:["align",".border",".margin",".padding",".text-align",".color",".background-color",".font-size",".font-family",".font-weight",".background",".font-style",".text-decoration",".vertical-align",".margin-left"],table:["border","cellspacing","cellpadding","width","height","align","bordercolor",".padding",".margin",".border","bgcolor", -".text-align",".color",".background-color",".font-size",".font-family",".font-weight",".font-style",".text-decoration",".background",".width",".height"],"td,th":["align","valign","width","height","colspan","rowspan","bgcolor",".text-align",".color",".background-color",".font-size",".font-family",".font-weight",".font-style",".text-decoration",".vertical-align",".background"],a:["href","target","name"],embed:["src","width","height","type","loop","autostart","quality",".width",".height","align","allowscriptaccess", -"/"],img:["src","width","height","border","alt","title",".width",".height","/"],hr:["/"],br:["/"],"p,ol,ul,li,blockquote,h1,h2,h3,h4,h5,h6":["align",".text-align",".color",".background-color",".font-size",".font-family",".background",".font-weight",".font-style",".text-decoration",".vertical-align",".text-indent",".margin-left"],"tbody,tr,strong,b,sub,sup,em,i,u,strike":[]},mediaTypes:{rm:"audio/x-pn-realaudio-plugin",flash:"application/x-shockwave-flash",media:"video/x-ms-asf-plugin"},afterTab:function(a){b.util.setSelection(a); -b.util.insertHtml(a,"    ")}};b.g={};b.plugin={};b.$=function(a,d){return(d||document).getElementById(a)};b.$$=function(a,d){return(d||document).createElement(a)};b.event={add:function(a,d,f,l){a.addEventListener?a.addEventListener(d,f,!1):a.attachEvent&&a.attachEvent("on"+d,f);l!==c&&b.g[l].eventStack.push({el:a,type:d,fn:f})},remove:function(a,d,f,l){a.removeEventListener?a.removeEventListener(d,f,!1):a.detachEvent&&a.detachEvent("on"+d,f);if(l!==c)for(var l=b.g[l].eventStack, -h=0,e=l.length;h18)&&a.keyCode!=116)return d(a),b.event.stop(a),!1},f);a=a.nodeName=="#document"?a.body:a;this.add(a,"paste",c,f);this.add(a,"cut",c,f)},ctrl:function(a,d,f,c){d=d.toString().match(/^\d{2,}$/)?d:d.toUpperCase().charCodeAt(0);this.add(a,"keydown",function(a){if(a.ctrlKey&&a.keyCode==d&&!a.shiftKey&&!a.altKey)return f(a),b.event.stop(a),!1},c)},ready:function(a,d,b,c){var d=d||window,b=b||document,h=!1,e=function(){h|| -(h=!0,a())};if(b.addEventListener)this.add(b,"DOMContentLoaded",e,c);else if(b.attachEvent&&(this.add(b,"readystatechange",function(){b.readyState=="complete"&&e()},c),b.documentElement.doScroll&&typeof d.frameElement==="undefined")){var i=function(){if(!h){try{b.documentElement.doScroll("left")}catch(a){window.setTimeout(i,0);return}e()}};i()}this.add(d,"load",e,c)}};b.each=function(a,d){for(var b in a)a.hasOwnProperty(b)&&d(b,a[b])};b.eachNode=function(a,d){var f=function(a){if(b.util.getNodeType(a)!= -1)return!0;for(a=a.firstChild;a;){var c=a.nextSibling;if(!d(a))return!1;if(!f(a))return!1;a=c}return!0};f(a)};b.selection=function(a){this.keRange=this.range=this.sel=null;this.isControl=!1;var d=a.parentWindow||a.defaultView;this.init=function(){var f=a.selection?a.selection:d.getSelection(),c;try{c=f.rangeCount>0?f.getRangeAt(0):f.createRange()}catch(h){}c||(c=b.util.createRange(a));this.sel=f;this.range=c;var e,i,j;if(b.browser.IE)c.item?(this.isControl=!0,f=i=c.item(0),e=j=0):(this.isControl= -!1,f=function(d){var f=c.duplicate();f.collapse(d);var h=f.parentElement(),e=h.childNodes;if(e.length==0)return{node:h,pos:0};var g,i=0,j=!1,k=c.duplicate();b.util.moveToElementText(k,h);for(var p=0,v=e.length;p0)j=!0;else if(t==0)return d.nodeType==1?(f=new b.range(a),f.selectTextNode(d),{node:f.startNode,pos:0}):{node:d,pos:0};d.nodeType==1?(t=c.duplicate(),b.util.moveToElementText(t,d),k.setEndPoint("StartToEnd",t),j?i+=t.text.replace(/\r\n|\n|\r/g, -"").length:i=0):d.nodeType==3&&typeof d.nodeValue==="string"&&(k.moveStart("character",d.nodeValue.length),i+=d.nodeValue.length);j||(g=d)}if(!j&&g.nodeType==1)return g=h.lastChild,{node:g,pos:g.nodeType==1?1:g.nodeValue.length};k=c.duplicate();b.util.moveToElementText(k,h);k.setEndPoint("StartToEnd",f);i-=k.text.replace(/\r\n|\n|\r/g,"").length;return{node:g,pos:i}},e=f(!0),j=f(!1),f=e.node,e=e.pos,i=j.node,j=j.pos);else{f=c.startContainer;e=c.startOffset;i=c.endContainer;j=c.endOffset;f.nodeType== -1&&typeof f.childNodes[e]!="undefined"&&(f=f.childNodes[e],e=0);i.nodeType==1&&(j=j==0?1:j,typeof i.childNodes[j-1]!="undefined"&&(i=i.childNodes[j-1],j=i.nodeType==1?0:i.nodeValue.length));this.isControl=f.nodeType==1&&f===i&&c.startOffset+1==c.endOffset;if(f.nodeType==1&&i.nodeType==3&&j==0&&i.previousSibling)for(var k=i.previousSibling;k;){if(k===f){i=f;break}if(k.childNodes.length!=1)break;k=k.childNodes[0]}if(c.collapsed)k=new b.range(a),k.setTextStart(f,e),i=k.startNode,j=k.startPos}k=new b.range(a); -k.setTextStart(f,e);k.setTextEnd(i,j);this.keRange=k};this.init();this.addRange=function(d){if(!(b.browser.GECKO&&b.browser.VERSION<3))if(this.keRange=d,b.browser.IE){var c=function(c){var l=b.util.createRange(a),h=c?d.startNode:d.endNode;h.nodeType==1?(b.util.moveToElementText(l,h),l.collapse(c)):h.nodeType==3&&(l=b.util.getNodeStartRange(a,h),l.moveStart("character",c?d.startPos:d.endPos));return l};if(!this.range.item){var h=d.startNode;if(h==d.endNode&&b.util.getNodeType(h)==1&&b.util.getNodeTextLength(h)== -0)c=a.createTextNode(" "),h.appendChild(c),b.util.moveToElementText(this.range,h),this.range.collapse(!1),this.range.select(),h.removeChild(c);else{h.nodeType==3&&d.collapsed()?(this.range=c(!0),this.range.collapse(!0)):(this.range.setEndPoint("StartToStart",c(!0)),this.range.setEndPoint("EndToStart",c(!1)));try{this.range.select()}catch(e){}}}}else{h=function(a){for(var d=0;a;)a=a.previousSibling,d++;return--d};c=new b.range(a);c.setTextStart(d.startNode,d.startPos);c.setTextEnd(d.endNode,d.endPos); -var i=c.startNode,j=c.endNode;b.util.getNodeType(i)==88?this.range.setStart(i.parentNode,h(c.startNode)):this.range.setStart(i,c.startPos);b.util.getNodeType(j)==88?this.range.setEnd(j.parentNode,h(c.endNode)+1):this.range.setEnd(j,c.endPos);this.sel.removeAllRanges();this.sel.addRange(this.range)}};this.focus=function(){try{b.browser.IE&&this.range!=null&&this.range.select()}catch(a){}}};b.range=function(a){this.endPos=this.endNode=this.startPos=this.startNode=null;this.getParentElement=function(){var d= -function(a,d){for(;a&&(!a.tagName||a.tagName.toLowerCase()!="body");)if(a=a.parentNode,d(a))break},f=[];d(this.startNode,function(a){f.push(a)});var c;d(this.endNode,function(a){if(b.util.inArray(a,f))return c=a,!0});return c?c:a.body};this.getNodeList=function(){var d=this,f=this.getParentElement(),c=[],h=!1;f==d.startNode&&(h=!0);h&&c.push(f);b.eachNode(f,function(f){f==d.startNode&&(h=!0);var e=new b.range(a);e.selectTextNode(f);var j=e.comparePoints("START_TO_END",d);if(j>0)return!1;else if(j== -0&&(e.startNode!==e.endNode||e.startPos!==e.endPos))return!1;h&&c.push(f);return!0});return c};this.comparePoints=function(d,f){var c=function(f,c,l,e){if(b.browser.IE){var k=function(d,f,c){var l=b.util.createRange(a),e=b.util.getNodeType(d);e==1?(b.util.moveToElementText(l,d),l.collapse(c)):e==3&&(l=b.util.getNodeStartRange(a,d),l.moveStart("character",f),l.collapse(!0));return l},m;m=d=="START_TO_START"||d=="START_TO_END"?k(f,c,!0):k(f,c,!1);f=d=="START_TO_START"||d=="END_TO_START"?k(l,e,!0):k(l, -e,!1);return m.compareEndPoints("StartToStart",f)}else m=b.util.createRange(a),m.selectNode(f),d=="START_TO_START"||d=="START_TO_END"?m.collapse(!0):m.collapse(!1),f=b.util.createRange(a),f.selectNode(l),d=="START_TO_START"||d=="END_TO_START"?f.collapse(!0):f.collapse(!1),c=m.compareBoundaryPoints(Range.START_TO_START,f)>0?1:m.compareBoundaryPoints(Range.START_TO_START,f)==0?c>e?1:c==e?0:-1:-1;return c};if(d=="START_TO_START")return c(this.startNode,this.startPos,f.startNode,f.startPos);if(d=="START_TO_END")return c(this.startNode, -this.startPos,f.endNode,f.endPos);if(d=="END_TO_START")return c(this.endNode,this.endPos,f.startNode,f.startPos);if(d=="END_TO_END")return c(this.endNode,this.endPos,f.endNode,f.endPos)};this.collapsed=function(){return this.startNode===this.endNode&&this.startPos===this.endPos};this.collapse=function(a){a?this.setEnd(this.startNode,this.startPos):this.setStart(this.endNode,this.endPos)};this.setTextStart=function(a,f){var c=a;b.eachNode(a,function(a){if(b.util.getNodeType(a)==3&&a.nodeValue.length> -0||b.util.getNodeType(a)==88)return c=a,f=0,!1;return!0});this.setStart(c,f)};this.setStart=function(a,b){this.startNode=a;this.startPos=b;if(this.endNode===null)this.endNode=a,this.endPos=b};this.setTextEnd=function(a,f){var c=a;b.eachNode(a,function(a){if(b.util.getNodeType(a)==3&&a.nodeValue.length>0||b.util.getNodeType(a)==88)c=a,f=b.util.getNodeType(a)==3?a.nodeValue.length:0;return!0});this.setEnd(c,f)};this.setEnd=function(a,b){this.endNode=a;this.endPos=b;if(this.startNode===null)this.startNode= -a,this.startPos=b};this.selectNode=function(a){this.setStart(a,0);this.setEnd(a,a.nodeType==1?0:a.nodeValue.length)};this.selectTextNode=function(a){this.setTextStart(a,0);this.setTextEnd(a,a.nodeType==1?0:a.nodeValue.length)};this.extractContents=function(d){function f(a,b,f){var c=a.nodeValue.length,l=a.cloneNode(!0),e=l;b>0&&(e=l.splitText(b));f0&&(l=a.splitText(b)),f/g,"")===""&&q.parentNode&&q.parentNode.removeChild(q);return!0}var d=d===c?!0:d,e=this,g=this.startNode,i=this.startPos,j=this.endNode,k=this.endPos,m=[],o=b.util.arrayToHash(b.setting.noEndTags),n=!1,r=!1,s=this.getParentElement(),q=s.cloneNode(!1);l(s,q);b.each(m,function(a,d){(d.nodeType!=3||d.nodeValue.length>0)&&d.parentNode.removeChild(d)});return q};this.cloneContents= -function(){return this.extractContents(!1)};this.getText=function(){return this.cloneContents().innerHTML.replace(/<.*?>/g,"")}};b.cmd=function(a){this.doc=b.g[a].iframeDoc;this.keSel=b.g[a].keSel;this.keRange=b.g[a].keRange;this.mergeAttributes=function(a,f){for(var c=0,e=f.length;c=0?(this.mergeAttributes(a.parentNode,g),a):(e=e.cloneNode(!0),j?(f=a.cloneNode(!0),e.appendChild(f),a.parentNode.replaceChild(e,a),f):(j=a,f0&&(j=a.splitText(f)),c0?d.parentNode.appendChild(e):d.parentNode.insertBefore(e,d):d.appendChild(e),g.selectNode(e),!1;else if(d==i)g.setStart(d,0);else{if(d==k)return g.setEnd(d,0),!1}else if(d.nodeType==3&&n)if(d==i&&d==k)return d=c.wrapTextNode(d,j,m,e,f),g.selectNode(d),!1;else if(d==i)d=c.wrapTextNode(d,j,d.nodeValue.length,e,f),g.setStart(d,0);else if(d==k)return d=c.wrapTextNode(d,0,m,e,f),g.setEnd(d,d.nodeType==1?0:d.nodeValue.length),!1;else c.wrapTextNode(d,0,d.nodeValue.length,e,f);return!0}); -this.keSel.addRange(g)}};this.getTopParent=function(a,f){for(var c=null;f;)if(f=f.parentNode,b.util.inArray(f.tagName.toLowerCase(),a))c=f;else break;return c};this.splitNodeParent=function(a,f,c){var e=new b.range(this.doc);e.selectNode(a.firstChild);e.setEnd(f,c);f=e.extractContents();a.parentNode.insertBefore(f,a);return{left:f,right:a}};this.remove=function(a){var f=this.keRange,c=f.startNode,e=f.startPos,g=f.endNode,i=f.endPos;this.keSel.focus();if(!b.util.inMarquee(f.getParentElement())){var j= -f.getText().replace(/\s+/g,"")==="";if(!j||b.browser.IE){var k=[];b.each(a,function(a){a!="*"&&k.push(a)});var m=this.getTopParent(k,c),o=this.getTopParent(k,g);if(m){var n=this.splitNodeParent(m,c,e);f.setStart(n.right,0);if(c==g&&b.util.getNodeTextLength(n.right)>0)f.selectNode(n.right),c=new b.range(this.doc),c.selectTextNode(n.left),e>0&&(i-=c.endNode.nodeValue.length),c.selectTextNode(n.right),g=c.startNode}if(j)if(m=f.startNode,m.nodeType==1){if(m.nodeName.toLowerCase()=="br")return;f.selectNode(m)}else return; -else o&&(e=this.splitNodeParent(o,g,i),f.setEnd(e.left,0),m==o&&f.setStart(e.left,0));o=function(a,d){if(d.charAt(0)=="."){var f=b.util.getJsKey(d.substr(1));a.style[f]=""}else b.browser.IE&&b.browser.VERSION<8&&d=="class"&&(d="className"),a.removeAttribute(d)};e=f.getNodeList();f.setTextStart(f.startNode,f.startPos);f.setTextEnd(f.endNode,f.endPos);i=0;for(j=e.length;i0&&paths.pop():f!==""&&f!="."&&paths.push(f)}return"/"+paths.join("/")};a.match(/^\//)?a=f+h(a.substr(1)):a.match(/^\w+:\/\//)||(a=f+h(e+"/"+a));if(d=="relative")var g=function(d,b){if(a.substr(0,d.length)=== -d){for(var f=[],c=0;c0&&(c+="/"+f.join("/"));e=="/"&&(c+="/");return c+a.substr(d.length)}else if(f=d.match(/^(.*)\//))return g(f[1],++b)},a=g(f+e,0).substr(2);else d=="absolute"&&a.substr(0,f.length)===f&&(a=a.substr(f.length));return a},getHtml:function(a,d,f){var c=d?!0:!1,a=a.replace(/(]*>)([\s\S]*?)(<\/pre>)/ig,function(a,d,b,f){return d+b.replace(/]*>/ig,"\n")+f}),e={},g=["xx-small","x-small","small","medium","large","x-large","xx-large"];c&&b.each(d, -function(a,d){for(var f=a.split(","),c=0,l=f.length;c]+)|(?:\s+[\w\-:]+="[^"]*")|(?:\s+[\w\-:]+='[^']*'))*)(\/)?>((?:\r\n|\n|\r)*)/g,function(a,d,m,o,u,w,p){var d=d||"",m=m||"",v=o.toLowerCase(),o=u||"",w=w?" "+w:"",p=p||"";v==="script"&& -m!==""&&(i=!1);if(i)return a;v==="script"&&m===""&&(i=!0);if(c&&typeof e[v]=="undefined")return"";w===""&&typeof j[v]!="undefined"&&(w=" /");if(v in k){if(m||w)p="\n"}else p&&(p=" ");v!=="script"&&v!=="style"&&(d="");if(v==="font"){var t={},x="",o=o.replace(/\s*([\w\-:]+)=([^\s"'<>]+|"[^"]*"|'[^']*')/g,function(a,d,b){d=d.toLowerCase();b=(b||"").replace(/^["']|["']$/g,"");if(d==="color")return t.color=b," ";if(d==="size")return t["font-size"]=g[parseInt(b)-1]||""," ";if(d==="face")return t["font-family"]= -b," ";if(d==="style")return x=b," ";return a});x&&!/;$/.test(x)&&(x+=";");b.each(t,function(a,d){d!==""&&(/\s/.test(d)&&(d="'"+d+"'"),x+=a+":"+d+";")});x&&(o+=' style="'+x+'"');v="span"}return o!==""?(o=o.replace(/\s*([\w\-:]+)=([^\s"'<>]+|"[^"]*"|'[^']*')/g,function(a,d,g){a=d.toLowerCase();g=g||"";if(c&&(a.charAt(0)==="."||a!=="style"&&typeof e[v][a]=="undefined"))return" ";if(g==="")g='""';else{if(a==="style"){g=g.substr(1,g.length-2);g=g.replace(/\s*([^\s]+?)\s*:(.*?)(;|$)/g,function(a,d,f){a= -d.toLowerCase();if(c&&typeof e[v].style=="undefined"&&typeof e[v]["."+a]=="undefined")return"";f=b.util.trim(f);f=b.util.rgbToHex(f);return a+":"+f+";"});g=b.util.trim(g);if(g==="")return"";g='"'+g+'"'}b.util.inArray(a,["src","href"])&&(g.charAt(0)==='"'&&(g=g.substr(1,g.length-2)),g=b.format.getUrl(g,f));g.charAt(0)!=='"'&&(g='"'+g+'"')}return" "+a+"="+g+" "}),o=o.replace(/\s+(checked|selected|disabled|readonly)(\s+|$)/ig,function(a,d){var b=d.toLowerCase();if(c&&(b.charAt(0)==="."||typeof e[v][b]== -"undefined"))return" ";return" "+b+'="'+b+'" '}),o=b.util.trim(o),(o=o.replace(/\s+/g," "))&&(o=" "+o),d+"<"+m+v+o+w+">"+p):d+"<"+m+v+w+">"+p});b.browser.IE||(a=a.replace(/

\n<\/p>/ig,"

 

"),a=a.replace(/\n<\/p>/ig,"

"));var a=a.replace(/\u200B/g,""),m=b.setting.inlineTags.join("|"),o=function(a){var d=a.replace(RegExp("<("+m+")[^>]*><\\/("+m+")>","ig"),function(a,d,b){return d==b?"":a});a!==d&&(d=o(d));return d};return b.util.trim(o(a))}};b.attr=function(a,d,f){b.browser.IE&& -b.browser.VERSION<8&&d.toLowerCase()=="class"&&(d="className");f=""+f;a.setAttribute(d,f);f===""&&a.removeAttribute(d)};b.addClass=function(a,d){if(typeof a=="object"){var b=a.className;if(b){if((" "+b+" ").indexOf(" "+d+" ")<0)a.className=b+" "+d}else a.className=d}else typeof a=="string"&&(a=/\s+class\s*=/.test(a)?a.replace(/(\s+class=["']?)([^"']*)(["']?[\s>])/,function(a,b,f,c){return(" "+f+" ").indexOf(" "+d+" ")<0?f===""?b+d+c:b+f+" "+d+c:a}):a.substr(0,a.length-1)+' class="'+d+'">');return a}; -b.removeClass=function(a,d){var f=a.className||"",f=" "+f+" ",d=" "+d+" ";if(f.indexOf(d)>=0)f=b.util.trim(f.replace(RegExp(d,"ig"),"")),f===""?(f=a.getAttribute("class")?"class":"className",a.removeAttribute(f)):a.className=f;return a};b.getComputedStyle=function(a,d){var f=a.ownerDocument,c=f.parentWindow||f.defaultView,f=b.util.getJsKey(d),e="";c.getComputedStyle?(c=c.getComputedStyle(a,null),e=c[f]||c.getPropertyValue(d)||a.style[f]):a.currentStyle&&(e=a.currentStyle[f]||a.style[f]);return e}; -b.getCommonAncestor=function(a,d){function f(a){for(;a;){if(a.nodeType==1&&a.tagName.toLowerCase()===d)return a;a=a.parentNode}return null}var c=a.range,e=a.keRange,g=e.startNode,e=e.endNode;if(b.util.inArray(d,["table","td","tr"]))b.browser.IE?c.item?c.item(0).nodeName.toLowerCase()===d&&(g=e=c.item(0)):(g=c.duplicate(),g.collapse(!0),c=c.duplicate(),c.collapse(!1),g=g.parentElement(),e=c.parentElement()):(g=c.cloneRange(),g.collapse(!0),c=c.cloneRange(),c.collapse(!1),g=g.startContainer,e=c.startContainer); -c=f(g);g=f(e);if(c&&g&&c===g)return c;return null};b.queryCommandValue=function(a,d){function f(){var b=a.queryCommandValue(d);typeof b!=="string"&&(b="");return b}var d=d.toLowerCase(),c="";if(d==="fontname")c=f(),c=c.replace(/['"]/g,"");else if(d==="formatblock"){c=f();if(c===""){var e=new b.selection(a),g=b.getCommonAncestor(e,"h1");g||(g=b.getCommonAncestor(e,"h2"));g||(g=b.getCommonAncestor(e,"h3"));g||(g=b.getCommonAncestor(e,"h4"));g||(g=b.getCommonAncestor(e,"p"));if(g)c=g.nodeName}c==="Normal"&& -(c="p")}else d==="fontsize"?(e=new b.selection(a),(g=b.getCommonAncestor(e,"span"))&&(c=b.getComputedStyle(g,"font-size"))):d==="textcolor"?(e=new b.selection(a),(g=b.getCommonAncestor(e,"span"))&&(c=b.getComputedStyle(g,"color")),c=b.util.rgbToHex(c),c===""&&(c="default")):d==="bgcolor"&&(e=new b.selection(a),(g=b.getCommonAncestor(e,"span"))&&(c=b.getComputedStyle(g,"background-color")),c=b.util.rgbToHex(c),c===""&&(c="default"));return c.toLowerCase()};b.util={getDocumentElement:function(a){a= -a||document;return a.compatMode!="CSS1Compat"?a.body:a.documentElement},getDocumentHeight:function(a){a=this.getDocumentElement(a);return Math.max(a.scrollHeight,a.clientHeight)},getDocumentWidth:function(a){a=this.getDocumentElement(a);return Math.max(a.scrollWidth,a.clientWidth)},createTable:function(a){a=b.$$("table",a);a.cellPadding=0;a.cellSpacing=0;a.border=0;return{table:a,cell:a.insertRow(0).insertCell(0)}},loadStyle:function(a){var d=b.$$("link");d.setAttribute("type","text/css");d.setAttribute("rel", -"stylesheet");d.setAttribute("href",a);document.getElementsByTagName("head")[0].appendChild(d)},getAttrList:function(a){for(var d=/\s+(?:([\w\-:]+)|(?:([\w\-:]+)=([\w\-:]+))|(?:([\w\-:]+)="([^"]*)")|(?:([\w\-:]+)='([^']*)'))(?=(?:\s|\/|>)+)/g,b,c,e={};b=d.exec(a);)c=b[1]||b[2]||b[4]||b[6],b=b[1]||(b[2]?b[3]:b[4]?b[5]:b[7]),e[c]=b;return e},inArray:function(a,d){for(var b=0;b0?d[b].charAt(0).toUpperCase()+d[b].substr(1):d[b];return a},arrayToHash:function(a){for(var d={},b=0,c=a.length;b/g,">");return a=a.replace(/"/g,""")},unescape:function(a){a=a.replace(/</g,"<");a=a.replace(/>/g,">");a=a.replace(/"/g,'"');return a=a.replace(/&/g,"&")},getScrollPos:function(){var a,d;b.browser.IE||b.browser.OPERA? -(d=this.getDocumentElement(),a=d.scrollLeft,d=d.scrollTop):(a=window.scrollX,d=window.scrollY);return{x:a,y:d}},getElementPos:function(a){var d=0,b=0;if(a.getBoundingClientRect)b=a.getBoundingClientRect(),a=this.getScrollPos(),d=b.left+a.x,b=b.top+a.y;else{d=a.offsetLeft;b=a.offsetTop;for(a=a.offsetParent;a;)d+=a.offsetLeft,b+=a.offsetTop,a=a.offsetParent}return{x:d,y:b}},getCoords:function(a){a=a||window.event;return{x:a.clientX,y:a.clientY}},setOpacity:function(a,d){typeof a.style.opacity=="undefined"? -a.style.filter=d==100?"":"alpha(opacity="+d+")":a.style.opacity=d==100?"":d/100},getIframeDoc:function(a){return a.contentDocument||a.contentWindow.document},rgbToHex:function(a){function d(a){a=parseInt(a).toString(16);return a.length>1?a:"0"+a}return a.replace(/rgb\s*?\(\s*?(\d+)\s*?,\s*?(\d+)\s*?,\s*?(\d+)\s*?\)/ig,function(a,b,c,e){return"#"+d(b)+d(c)+d(e)})},parseJson:function(a){var d;if(d=/\{[\s\S]*\}|\[[\s\S]*\]/.exec(a))a=d[0];d=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g; -d.lastIndex=0;d.test(a)&&(a=a.replace(d,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)}));if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return eval("("+a+")");throw"JSON parse error";},getParam:function(a,d){return a.match(RegExp("[?&]"+d+"=([^?&]+)","i"))?unescape(RegExp.$1):""},createRange:function(a){return a.body.createTextRange? -a.body.createTextRange():a.createRange()},getNodeType:function(a){return a.nodeType==1&&b.util.inArray(a.tagName.toLowerCase(),b.setting.noEndTags)?88:a.nodeType},inMarquee:function(a){for(var d;a;){d=a.nodeName.toLowerCase();if(d=="marquee"||d=="select")return!0;a=a.parentNode}return!1},moveToElementText:function(a,d){this.inMarquee(d)||a.moveToElementText(d)},getNodeTextLength:function(a){var d=b.util.getNodeType(a);if(d==1)return a.innerHTML.replace(/<.*?>/ig,"").length;else if(d==3)return a.nodeValue.length}, -getNodeStartRange:function(a,d){var c=b.util.createRange(a),e=d.nodeType;if(e==1)return b.util.moveToElementText(c,d),c;else if(e==3){for(var e=0,h=d.previousSibling;h;){if(h.nodeType==1){var g=b.util.createRange(a);b.util.moveToElementText(g,h);c.setEndPoint("StartToEnd",g);c.moveStart("character",e);return c}else h.nodeType==3&&(e+=h.nodeValue.length);h=h.previousSibling}b.util.moveToElementText(c,d.parentNode);c.moveStart("character",e);return c}},removeParent:function(a){if(a.hasChildNodes)for(var d= -a.firstChild;d;){var b=d.nextSibling;a.parentNode.insertBefore(d,a);d=b}a.parentNode.removeChild(a)},pluginLang:function(a,d){b.each(b.lang.plugins[a],function(a,c){var e=b.$("lang."+a,d);e&&(e.parentNode.insertBefore(d.createTextNode(c),e),e.parentNode.removeChild(e))})},drag:function(a,d,c,e){var h=b.g[a];d.onmousedown=function(a){function d(a){if(t){var c=b.util.getCoords(a),f=b.util.getScrollPos(),a=parseInt(c.y-u-p+f.y),c=parseInt(c.x-w-v+f.x);e(n,r,s,q,a,c)}}function j(a){if(t){var d=b.util.getCoords(a, -h.iframeDoc),a=parseInt(x.y+d.y-u-p),d=parseInt(x.x+d.x-w-v);e(n,r,s,q,a,d)}}function k(a){t=!1;m.releaseCapture&&m.releaseCapture();b.event.remove(document,"mousemove",d);b.event.remove(document,"mouseup",k);b.event.remove(h.iframeDoc,"mousemove",j);b.event.remove(h.iframeDoc,"mouseup",k);b.event.remove(document,"selectstart",z);b.event.stop(a);return!1}var m=this,a=a||window.event,o=b.util.getCoords(a),n=parseInt(c.style.top),r=parseInt(c.style.left),s=c.style.width,q=c.style.height;s.match(/%$/)&& -(s=c.offsetWidth+"px");q.match(/%$/)&&(q=c.offsetHeight+"px");var s=parseInt(s),q=parseInt(q),u=o.y,w=o.x,o=b.util.getScrollPos(),p=o.y,v=o.x,t=!0,x=b.util.getElementPos(h.iframe),z=function(){return!1};b.event.add(document,"mousemove",d);b.event.add(document,"mouseup",k);b.event.add(h.iframeDoc,"mousemove",j);b.event.add(h.iframeDoc,"mouseup",k);b.event.add(document,"selectstart",z);m.setCapture&&m.setCapture();b.event.stop(a);return!1}},resize:function(a,d,c,e,h){h=typeof h=="undefined"?!0:h;a= -b.g[a];if(a.container&&(!e||!(parseInt(d)<=a.minWidth||parseInt(c)<=a.minHeight))){if(h)a.container.style.width=d;a.container.style.height=c;d=parseInt(c)-a.toolbarHeight-a.statusbarHeight;if(d>=0)a.iframe.style.height=d+"px",a.newTextarea.style.height=((b.browser.IE&&b.browser.VERSION<8||document.compatMode!="CSS1Compat")&&d>=2?d-2:d)+"px"}},hideLoadingPage:function(a){a=b.g[a].dialogStack;a=a[a.length-1];a.loading.style.display="none";a.iframe.style.display=""},showLoadingPage:function(a){a=b.g[a].dialogStack; -a=a[a.length-1];a.loading.style.display="";a.iframe.style.display="none"},setDefaultPlugin:function(){for(var a=["selectall","justifyleft","justifycenter","justifyright","justifyfull","insertorderedlist","insertunorderedlist","indent","outdent","subscript","superscript","bold","italic","underline","strikethrough"],d={bold:"B",italic:"I",underline:"U"},c=0;c';a=b.g[a].cssPath;typeof a=="string"&&(a=[a]);for(var c=0,e=a.length;c'); -d+="";d+='';d+="";return d},getMediaType:function(a){return a.match(/\.(rm|rmvb)(\?|$)/i)?"rm":a.match(/\.(swf|flv)(\?|$)/i)?"flash":"media"},getMediaImage:function(a,d,c){var e=c.width,h=c.height,d=d||this.getMediaType(c.src),c=this.getMediaEmbed(c),g="";e>0&&(g+="width:"+e+"px;");h>0&&(g+="height:"+h+"px;");a='';return a}, -getMediaEmbed:function(a){var d="]*>\s*$/ig, -""),e=e.replace(/^\s*

\s* \s*<\/p>\s*$/ig,"");return c.filterMode?b.format.getHtml(e,c.htmlTags,c.urlType):b.format.getHtml(e,null,c.urlType)},getData:function(a,d){var f=b.g[a];(d=d===c?f.wyswygMode:d)||this.innerHtml(f.iframeDoc.body,b.util.execSetHtmlHooks(a,f.newTextarea.value));return this.toData(a,f.iframeDoc.body.innerHTML)},getSrcData:function(a){var d=b.g[a];d.wyswygMode||this.innerHtml(d.iframeDoc.body,b.util.execSetHtmlHooks(a,d.newTextarea.value));return d.iframeDoc.body.innerHTML}, -getPureData:function(a){return this.extractText(this.getData(a))},extractText:function(a){a=a.replace(/<(?!img|embed).*?>/ig,"");return a=a.replace(/ /ig," ")},isEmpty:function(a){return this.getPureData(a).replace(/\r\n|\n|\r/,"").replace(/^\s+|\s+$/,"")===""},setData:function(a){var d=b.g[a];if(d.srcTextarea)d.srcTextarea.value=this.getData(a)},focus:function(a){a=b.g[a];a.wyswygMode?a.iframeWin.focus():a.newTextarea.focus()},click:function(a,d){this.focus(a);b.hideMenu(a);b.plugin[d].click(a)}, -selection:function(a){(!b.browser.IE||!b.g[a].keRange)&&this.setSelection(a)},setSelection:function(a){var a=b.g[a],d=new b.selection(a.iframeDoc);if(!b.browser.IE||d.range.item||d.range.parentElement().ownerDocument===a.iframeDoc)a.keSel=d,a.keRange=a.keSel.keRange,a.sel=a.keSel.sel,a.range=a.keSel.range},select:function(a){b.browser.IE&&b.g[a].wyswygMode&&b.g[a].range&&b.g[a].range.select()},execCommand:function(a,d,c){b.util.focus(a);b.util.select(a);try{b.g[a].iframeDoc.execCommand(d,!1,c)}catch(e){}b.toolbar.updateState(a); -b.util.execOnchangeHandler(a)},innerHtml:function(a,d){if(b.browser.IE){a.innerHTML=''+d;var c=b.$("__ke_temp_tag__",a.ownerDocument);c&&c.parentNode.removeChild(c)}else a.innerHTML=d},pasteHtml:function(a,d,c){a=b.g[a];c?d=''+d:d+='';b.browser.IE?a.range.item?a.range.item(0).outerHTML=d:a.range.pasteHTML(d):(a.range.deleteContents(),d=a.range.createContextualFragment(d), -a.range.insertNode(d));d=b.$("__ke_temp_tag__",a.iframeDoc);c=a.iframeDoc.createTextNode("");d.parentNode.replaceChild(c,d);a.keRange.selectNode(c);a.keSel.addRange(a.keRange)},insertHtml:function(a,d){if(d!==""){var c=b.g[a];if(c.wyswygMode&&c.range){d=this.execSetHtmlHooks(a,d);if(b.browser.IE)if(this.select(a),c.range.item)try{c.range.item(0).outerHTML=d}catch(e){var c=c.range.item(0),h=c.parentNode;h.removeChild(c);if(h.nodeName.toLowerCase()!="body")h=h.parentNode;this.innerHtml(h,d+h.innerHTML)}else c.range.pasteHTML('\u200b'+ -d),c=b.$("__ke_temp_tag__",c.iframeDoc),c.parentNode.removeChild(c);else if(b.browser.GECKO){this.execCommand(a,"inserthtml",d);return}else this.pasteHtml(a,d);b.util.execOnchangeHandler(a)}}},setFullHtml:function(a,d){var c=b.g[a];!b.browser.IE&&d===""&&(d="
");d=b.util.execSetHtmlHooks(a,d);this.innerHtml(c.iframeDoc.body,d);if(!c.wyswygMode)c.newTextarea.value=b.util.getData(a,!0);b.util.execOnchangeHandler(a)},selectImageWebkit:function(a,d,c){if(b.browser.WEBKIT&&(d=d.srcElement||d.target, -d.tagName.toLowerCase()=="img"))c&&b.util.selection(a),c=b.g[a].keRange,c.selectNode(d),b.g[a].keSel.addRange(c)},addTabEvent:function(a){var d=b.g[a];b.event.add(d.iframeDoc,"keydown",function(c){if(c.keyCode==9)return d.afterTab&&d.afterTab(a),b.event.stop(c),!1},a)},addContextmenuEvent:function(a){var d=b.g[a];d.contextmenuItems.length!=0&&d.useContextmenu&&b.event.add(d.iframeDoc,"contextmenu",function(c){b.hideMenu(a);b.util.setSelection(a);b.util.selectImageWebkit(a,c,!1);for(var e=0,h=[],g= -0,i=d.contextmenuItems.length;ge&&(e=k)}}for(;h.length>0&&h[0]==="-";)h.shift();for(;h.length>0&&h[h.length-1]==="-";)h.pop();j=null;g=0;for(i=h.length;g0){for(var m=new b.menu({id:a,event:c,type:"contextmenu",width:e}),g=0,i=h.length;g");e=d.keRange.startNode.nextSibling;if(b.browser.IE)e||b.util.pasteHtml(a,"
",!0);else if(b.browser.WEBKIT)if(e){var h=new b.range(d.iframeDoc);h.selectNode(e.parentNode);h.setStart(e,0);h.cloneContents().innerHTML.replace(/<(?!img|embed).*?>/ig,"")===""&&b.util.pasteHtml(a,"
",!0)}else b.util.pasteHtml(a,"
",!0);b.event.stop(c);return!1}}else b.util.inArray(e, -["p","h1","h2","h3","h4","h5","h6","pre","div","li"])||b.util.execCommand(a,"formatblock","

");return!0}},a)}};b.layout={hide:function(a){var d=b.g[a];b.hideMenu(a);for(a=d.dialogStack;a.length>0;)a[a.length-1].hide();d.maskDiv.style.display="none"}};b.hideMenu=function(a){a=b.g[a];a.hideDiv.innerHTML="";a.hideDiv.style.display="none"};b.colorpicker=function(a){var d,c=a.x||0,e=a.y||0,h=a.z||0,g=a.colors||b.setting.colorTable,i=a.doc||document,j=a.onclick,k=(a.selectedColor||"").toLowerCase();d= -b.$$("div");d.className="ke-colorpicker";d.style.top=e+"px";d.style.left=c+"px";d.style.zIndex=h;this.remove=function(){i.body.removeChild(d)};this.getElement=function(){function a(d,c,e){k===c.toLowerCase()&&(e+=" ke-colorpicker-cell-selected");d.className=e;d.title=c||b.lang.noColor;d.onmouseover=function(){this.className=e+" ke-colorpicker-cell-on"};d.onmouseout=function(){this.className=e};d.onclick=function(){j(c)};if(c){var f=b.$$("div");f.className="ke-colorpicker-cell-color";f.style.backgroundColor= -c;d.appendChild(f)}else d.innerHTML=b.lang.noColor}var d=b.$$("table");d.className="ke-colorpicker-table";d.cellPadding=0;d.cellSpacing=0;d.border=0;var c=d.insertRow(0),e=c.insertCell(0);e.colSpan=g[0].length;a(e,"","ke-colorpicker-cell-top");for(var f=0;f0||c>0){var e=b.util.getScrollPos(),j=b.util.getDocumentElement(),e=e.x+j.clientWidth-d-2;g>e&&(g=e)}return{x:g,y:i}}(function(){var c=a.width;this.type=a.type&&a.type=="contextmenu"?a.type:"menu";var e=b.$$("div"); -e.className="ke-"+this.type;e.setAttribute("name",a.cmd);var h=d.call(this,0,0);e.style.top=h.y+"px";e.style.left=h.x+"px";if(a.width)e.style.width=/^\d+$/.test(c)?c+"px":c;b.event.bind(e,"click",function(){},a.id);b.event.bind(e,"mousedown",function(){},a.id);this.div=e}).call(this);this.add=function(a,d,e){var g,i,j=!1;if(e!==c)g=e.height,i=e.iconHtml,j=e.checked;var k=this,e=b.$$("div");e.className="ke-"+k.type+"-item";if(g)e.style.height=g;var m=b.$$("div");m.className="ke-"+this.type+"-left"; -var o=b.$$("div");o.className="ke-"+k.type+"-center";if(g)o.style.height=g;var n=b.$$("div");n.className="ke-"+this.type+"-right";if(g)n.style.lineHeight=g;e.onmouseover=function(){this.className="ke-"+k.type+"-item ke-"+k.type+"-item-on";o.className="ke-"+k.type+"-center ke-"+k.type+"-center-on"};e.onmouseout=function(){this.className="ke-"+k.type+"-item";o.className="ke-"+k.type+"-center"};e.onclick=d;e.appendChild(m);e.appendChild(o);e.appendChild(n);j?b.util.innerHtml(m,''): -i&&b.util.innerHtml(m,i);b.util.innerHtml(n,a);this.append(e)};this.addSeparator=function(){var a=b.$$("div");a.className="ke-"+this.type+"-separator";this.append(a)};this.append=function(a){this.div.appendChild(a)};this.insert=function(a){b.util.innerHtml(this.div,a)};this.hide=function(){b.hideMenu(a.id)};this.show=function(){this.hide();var c=a.id;b.g[c].hideDiv.style.display="";b.g[c].hideDiv.appendChild(this.div);c=d.call(this,this.div.clientWidth,this.div.clientHeight);this.div.style.top=c.y+ -"px";this.div.style.left=c.x+"px"};this.picker=function(d){this.append((new b.colorpicker({colors:b.g[a.id].colorTable,onclick:function(d){b.plugin[a.cmd].exec(a.id,d)},selectedColor:d})).getElement());this.show()}};b.button=function(a){a=a||{};doc=a.doc||document;var d=b.$$("span",doc);d.className="ke-button-common ke-button-outer "+(a.className||"");d.title=a.text;btn=b.$$("input",doc);btn.className="ke-button-common ke-button";btn.type="button";btn.value=a.text||"";if(a.clickFn)btn.onclick=a.clickFn; -d.appendChild(btn);return{span:d,btn:btn}};b.dialog=function(a){function d(){b.util.getDocumentElement();var a=b.util.getScrollPos();l=a.y;h=a.x}function e(){var d=this.width+this.widthMargin,c=this.height+this.heightMargin,f=a.id,h=b.g[f],l=0,o=0;h.dialogAlignType=="page"?(h=b.util.getDocumentElement(),f=b.util.getScrollPos(),l=Math.round(f.x+(h.clientWidth-d)/2),o=Math.round(f.y+(h.clientHeight-c)/2)):(f=b.util.getElementPos(b.g[f].container),h=h.container,l=Math.round(h.clientWidth/2)-Math.round(d/ -2),c=Math.round(h.clientHeight/2)-Math.round(c/2),l=l<0?f.x:f.x+l,o=c<0?f.y:f.y+c);return{x:l<0?0:l,y:o<0?0:o}}this.widthMargin=30;this.heightMargin=100;this.zIndex=19811214;this.width=a.width;this.height=a.height;var l,h;this.beforeHide=a.beforeHide;this.afterHide=a.afterHide;this.beforeShow=a.beforeShow;this.afterShow=a.afterShow;this.ondrag=a.ondrag;this.resize=function(a,d){if(a)this.width=a;if(d)this.height=d;this.hide();this.show()};this.hide=function(){var c=a.id;this.beforeHide&&this.beforeHide(c); -var e=b.g[c].dialogStack;if(e[e.length-1]==this){var f=e.pop().iframe;f.src="javascript:false";f.parentNode.removeChild(f);document.body.removeChild(this.div);if(e.length<1)b.g[c].maskDiv.style.display="none";b.event.remove(window,"resize",d);b.event.remove(window,"scroll",d);this.afterHide&&this.afterHide(c);b.util.focus(c)}};this.show=function(){this.beforeShow&&this.beforeShow(i);var g=this,i=a.id,j=b.$$("div");j.className="ke-dialog";b.event.bind(j,"click",function(){},i);var k=b.g[i].dialogStack; -if(k.length>0)this.zIndex=k[k.length-1].zIndex+1;j.style.zIndex=this.zIndex;k=e.call(this);j.style.top=k.y+"px";j.style.left=k.x+"px";b.g[i].shadowMode?b.addClass(j,"ke-dialog-shadow"):b.addClass(j,"ke-dialog-no-shadow");k=b.$$("div");k.className="ke-dialog-title";k.innerHTML=a.title;var m=b.$$("span");m.className="ke-dialog-close";m.alt=b.lang.close;m.title=b.lang.close;m.onclick=function(){g.hide();b.util.select(i)};k.appendChild(m);d();b.event.add(window,"resize",d);b.event.add(window,"scroll", -d);b.util.drag(i,k,j,function(a,c,b,e,f,k){if(g.ondrag)g.ondrag(i);d();f=a+f;k=c+k;f0&&(c=a[a.length-1]);(a.length==0||d!==c)&&a.push(d)},add:function(a,d){var c=b.g[a],e=b.util.getSrcData(a);c.undoStack.length>0&&Math.abs(e.length-c.undoStack[c.undoStack.length-1].length)0&&(l=c.undoStack.pop());l=b.util.toData(a,l);c.wyswygMode?b.util.innerHtml(c.iframeDoc.body, -b.util.execSetHtmlHooks(a,l)):c.newTextarea.value=l}},redo:function(a){var c=b.g[a];if(c.redoStack.length!=0){var e=b.util.getSrcData(a);this.addStackData(c.undoStack,e);e=c.redoStack.pop();e=b.util.toData(a,e);c.wyswygMode?b.util.innerHtml(c.iframeDoc.body,b.util.execSetHtmlHooks(a,e)):c.newTextarea.value=e}}};b.readonly=function(a,d){var d=d==c?!0:d,e=b.g[a];b.browser.IE?e.iframeDoc.body.contentEditable=d?"false":"true":e.iframeDoc.designMode=d?"off":"on"};b.focus=function(a,c){c=(c||"").toLowerCase(); -if(b.g[a].container&&(b.util.focus(a),c==="end"&&(b.util.setSelection(a),b.g[a].sel))){var e=b.g[a].keSel,l=b.g[a].keRange;l.selectTextNode(b.g[a].iframeDoc.body);l.collapse(!1);e.addRange(l)}};b.blur=function(a){a=b.g[a];if(a.container)if(b.browser.IE){var c=b.$$("input");c.type="text";a.container.appendChild(c);c.focus();a.container.removeChild(c)}else a.wyswygMode?a.iframeWin.blur():a.newTextarea.blur()};b.html=function(a,d){if(d===c)return b.util.getData(a);else b.g[a].container&&(b.util.setFullHtml(a, -d),b.focus(a))};b.text=function(a,d){if(d===c)return d=b.html(a),d=d.replace(/<.*?>/ig,""),d=d.replace(/ /ig," "),d=b.util.trim(d);else b.html(a,b.util.escape(d))};b.insertHtml=function(a,c){b.g[a].container&&(b.g[a].range?(b.focus(a),b.util.selection(a),b.util.insertHtml(a,c)):b.appendHtml(a,c))};b.appendHtml=function(a,c){b.html(a,b.html(a)+c)};b.isEmpty=function(a){return b.util.isEmpty(a)};b.selectedHtml=function(a){var c=b.g[a].range;if(!c)return"";var e="";b.browser.IE?e=c.item?c.item(0).outerHTML: -c.htmlText:(e=b.$$("div",b.g[a].iframeDoc),e.appendChild(c.cloneContents()),e=e.innerHTML);return b.util.toData(a,e)};b.count=function(a,c){c=(c||"html").toLowerCase();if(c==="html")return b.html(a).length;else if(c==="text"){var e=b.util.getPureData(a),e=e.replace(/<(?:img|embed).*?>/ig,"K"),e=e.replace(/\r\n|\n|\r/g,""),e=b.util.trim(e);return e.length}return 0};b.sync=function(a){return b.util.setData(a)};b.remove=function(a,c){var e=b.g[a];if(!e.container)return!1;c=typeof c=="undefined"?0:c; -b.util.setData(a);for(var l=e.container,h=e.eventStack,g=0,i=h.length;g0&&b.g[a].afterDrag&&b.g[a].afterDrag(a)});b.util.drag(a,t,r,function(c,d,e,f,g){b.g[a].resizeMode>0&&(b.util.resize(a,e+"px",f+g+"px",!0,!1),b.g[a].afterDrag&&b.g[a].afterDrag(a))});b.each(b.plugin,function(c,d){d.init&&d.init(a)});b.g[a].getHtmlHooks.push(function(a){a=a.replace(/(<[^>]*)kesrc="([^"]+)"([^>]*>)/ig, -function(a,c,d){a=a.replace(/(\s+(?:href|src)=")[^"]+(")/i,"$1"+d+"$2");return a=a.replace(/\s+kesrc="[^"]+"/i,"")});return a=a.replace(/(<[^>]+\s)ke-(on\w+="[^"]+"[^>]*>)/ig,function(a,c,d){return c+d})});b.g[a].setHtmlHooks.push(function(a){a=a.replace(/(<[^>]*)(href|src)="([^"]+)"([^>]*>)/ig,function(a,c,d,b,e){if(a.match(/\skesrc="[^"]+"/i))return a;return c+d+'="'+b+'" kesrc="'+b+'"'+e});return a=a.replace(/(<[^>]+\s)(on\w+="[^"]+"[^>]*>)/ig,function(a,c,d){return c+"ke-"+d})});b.util.addContextmenuEvent(a); -b.util.addNewlineEvent(a);b.util.addTabEvent(a);b.event.input(y,i,a);b.event.add(y,"mouseup",i,a);b.event.add(document,"mousedown",i,a);b.onchange(a,function(a){if(b.g[a].autoSetDataMode||b.g[a].syncType=="auto")b.util.setData(a),b.g[a].afterSetData&&b.g[a].afterSetData(a);b.g[a].afterChange&&b.g[a].afterChange(a);b.history.add(a,b.g[a].minChangeSize)});if(b.browser.IE)y.body.disabled=!0,b.readonly(a,!1),y.body.removeAttribute("disabled");b.util.setFullHtml(a,k.value);b.history.add(a,0);c>0&&b.util.focus(a); -b.g[a].afterCreate&&b.g[a].afterCreate(a)}};b.onchange=function(a,c){function e(){c(a)}var l=b.g[a];l.onchangeHandlerStack.push(e);b.event.input(l.iframeDoc,e,a);b.event.input(l.newTextarea,e,a);b.event.add(l.iframeDoc,"mouseup",function(){window.setTimeout(function(){c(a)},0)},a)};var e=!0;b.init=function(a){var c=b.g[a.id]=a;c.config={};c.undoStack=[];c.redoStack=[];c.dialogStack=[];c.contextmenuItems=[];c.getHtmlHooks=[];c.setHtmlHooks=[];c.onchangeHandlerStack=[];c.eventStack=[];b.each(b.setting, -function(b,e){c[b]=typeof a[b]=="undefined"?e:a[b];c.config[b]=c[b]});c.loadStyleMode&&e&&(b.util.loadStyle(c.skinsPath+c.skinType+".css"),e=!1)};b.show=function(a){b.init(a);b.event.ready(function(){b.create(a.id)})};if(window.KE===c)window.KE=b;window.KindEditor=b}})(); -(function(c){c.langType="zh_CN";c.lang={source:"HTML\u4ee3\u7801",undo:"\u540e\u9000(Ctrl+Z)",redo:"\u524d\u8fdb(Ctrl+Y)",cut:"\u526a\u5207(Ctrl+X)",copy:"\u590d\u5236(Ctrl+C)",paste:"\u7c98\u8d34(Ctrl+V)",plainpaste:"\u7c98\u8d34\u4e3a\u65e0\u683c\u5f0f\u6587\u672c",wordpaste:"\u4eceWord\u7c98\u8d34",selectall:"\u5168\u9009",justifyleft:"\u5de6\u5bf9\u9f50",justifycenter:"\u5c45\u4e2d",justifyright:"\u53f3\u5bf9\u9f50",justifyfull:"\u4e24\u7aef\u5bf9\u9f50",insertorderedlist:"\u7f16\u53f7",insertunorderedlist:"\u9879\u76ee\u7b26\u53f7", -indent:"\u589e\u52a0\u7f29\u8fdb",outdent:"\u51cf\u5c11\u7f29\u8fdb",subscript:"\u4e0b\u6807",superscript:"\u4e0a\u6807",title:"\u6807\u9898",fontname:"\u5b57\u4f53",fontsize:"\u6587\u5b57\u5927\u5c0f",textcolor:"\u6587\u5b57\u989c\u8272",bgcolor:"\u6587\u5b57\u80cc\u666f",bold:"\u7c97\u4f53(Ctrl+B)",italic:"\u659c\u4f53(Ctrl+I)",underline:"\u4e0b\u5212\u7ebf(Ctrl+U)",strikethrough:"\u5220\u9664\u7ebf",removeformat:"\u5220\u9664\u683c\u5f0f",image:"\u56fe\u7247",flash:"\u63d2\u5165Flash",media:"\u63d2\u5165\u591a\u5a92\u4f53", -table:"\u63d2\u5165\u8868\u683c",hr:"\u63d2\u5165\u6a2a\u7ebf",emoticons:"\u63d2\u5165\u8868\u60c5",link:"\u8d85\u7ea7\u94fe\u63a5",unlink:"\u53d6\u6d88\u8d85\u7ea7\u94fe\u63a5",fullscreen:"\u5168\u5c4f\u663e\u793a",about:"\u5173\u4e8e",print:"\u6253\u5370",fileManager:"\u6d4f\u89c8\u670d\u52a1\u5668",advtable:"\u8868\u683c",tablecell:"\u5355\u5143\u683c",yes:"\u786e\u5b9a",no:"\u53d6\u6d88",close:"\u5173\u95ed",editImage:"\u56fe\u7247\u5c5e\u6027",deleteImage:"\u5220\u9664\u56fe\u7247",editLink:"\u8d85\u7ea7\u94fe\u63a5\u5c5e\u6027", -deleteLink:"\u53d6\u6d88\u8d85\u7ea7\u94fe\u63a5",tableprop:"\u8868\u683c\u5c5e\u6027",tablecellprop:"\u5355\u5143\u683c\u5c5e\u6027",tableinsert:"\u63d2\u5165\u8868\u683c",tabledelete:"\u5220\u9664\u8868\u683c",tablecolinsertleft:"\u5de6\u4fa7\u63d2\u5165\u5217",tablecolinsertright:"\u53f3\u4fa7\u63d2\u5165\u5217",tablerowinsertabove:"\u4e0a\u65b9\u63d2\u5165\u884c",tablerowinsertbelow:"\u4e0b\u65b9\u63d2\u5165\u884c",tablecoldelete:"\u5220\u9664\u5217",tablerowdelete:"\u5220\u9664\u884c",noColor:"\u65e0\u989c\u8272", -invalidImg:"\u8bf7\u8f93\u5165\u6709\u6548\u7684URL\u5730\u5740\u3002\n\u53ea\u5141\u8bb8jpg,gif,bmp,png\u683c\u5f0f\u3002",invalidMedia:"\u8bf7\u8f93\u5165\u6709\u6548\u7684URL\u5730\u5740\u3002\n\u53ea\u5141\u8bb8swf,flv,mp3,wav,wma,wmv,mid,avi,mpg,asf,rm,rmvb\u683c\u5f0f\u3002",invalidWidth:"\u5bbd\u5ea6\u5fc5\u987b\u4e3a\u6570\u5b57\u3002",invalidHeight:"\u9ad8\u5ea6\u5fc5\u987b\u4e3a\u6570\u5b57\u3002",invalidBorder:"\u8fb9\u6846\u5fc5\u987b\u4e3a\u6570\u5b57\u3002",invalidUrl:"\u8bf7\u8f93\u5165\u6709\u6548\u7684URL\u5730\u5740\u3002", -invalidRows:"\u884c\u6570\u4e3a\u5fc5\u9009\u9879\uff0c\u53ea\u5141\u8bb8\u8f93\u5165\u5927\u4e8e0\u7684\u6570\u5b57\u3002",invalidCols:"\u5217\u6570\u4e3a\u5fc5\u9009\u9879\uff0c\u53ea\u5141\u8bb8\u8f93\u5165\u5927\u4e8e0\u7684\u6570\u5b57\u3002",invalidPadding:"\u8fb9\u8ddd\u5fc5\u987b\u4e3a\u6570\u5b57\u3002",invalidSpacing:"\u95f4\u8ddd\u5fc5\u987b\u4e3a\u6570\u5b57\u3002",invalidBorder:"\u8fb9\u6846\u5fc5\u987b\u4e3a\u6570\u5b57\u3002",pleaseInput:"\u8bf7\u8f93\u5165\u5185\u5bb9\u3002",invalidJson:"\u670d\u52a1\u5668\u53d1\u751f\u6545\u969c\u3002", -cutError:"\u60a8\u7684\u6d4f\u89c8\u5668\u5b89\u5168\u8bbe\u7f6e\u4e0d\u5141\u8bb8\u4f7f\u7528\u526a\u5207\u64cd\u4f5c\uff0c\u8bf7\u4f7f\u7528\u5feb\u6377\u952e(Ctrl+X)\u6765\u5b8c\u6210\u3002",copyError:"\u60a8\u7684\u6d4f\u89c8\u5668\u5b89\u5168\u8bbe\u7f6e\u4e0d\u5141\u8bb8\u4f7f\u7528\u590d\u5236\u64cd\u4f5c\uff0c\u8bf7\u4f7f\u7528\u5feb\u6377\u952e(Ctrl+C)\u6765\u5b8c\u6210\u3002",pasteError:"\u60a8\u7684\u6d4f\u89c8\u5668\u5b89\u5168\u8bbe\u7f6e\u4e0d\u5141\u8bb8\u4f7f\u7528\u7c98\u8d34\u64cd\u4f5c\uff0c\u8bf7\u4f7f\u7528\u5feb\u6377\u952e(Ctrl+V)\u6765\u5b8c\u6210\u3002"}; -var b=c.lang.plugins={};b.about={version:c.version,title:"HTML\u53ef\u89c6\u5316\u7f16\u8f91\u5668"};b.plainpaste={comment:"\u8bf7\u4f7f\u7528\u5feb\u6377\u952e(Ctrl+V)\u628a\u5185\u5bb9\u7c98\u8d34\u5230\u4e0b\u9762\u7684\u65b9\u6846\u91cc\u3002"};b.wordpaste={comment:"\u8bf7\u4f7f\u7528\u5feb\u6377\u952e(Ctrl+V)\u628a\u5185\u5bb9\u7c98\u8d34\u5230\u4e0b\u9762\u7684\u65b9\u6846\u91cc\u3002"};b.link={url:"URL\u5730\u5740",linkType:"\u6253\u5f00\u7c7b\u578b",newWindow:"\u65b0\u7a97\u53e3",selfWindow:"\u5f53\u524d\u7a97\u53e3"}; -b.flash={url:"Flash\u5730\u5740",width:"\u5bbd\u5ea6",height:"\u9ad8\u5ea6"};b.media={url:"\u5a92\u4f53\u6587\u4ef6\u5730\u5740",width:"\u5bbd\u5ea6",height:"\u9ad8\u5ea6",autostart:"\u81ea\u52a8\u64ad\u653e"};b.image={remoteImage:"\u8fdc\u7a0b\u56fe\u7247",localImage:"\u672c\u5730\u4e0a\u4f20",remoteUrl:"\u56fe\u7247\u5730\u5740",localUrl:"\u56fe\u7247\u5730\u5740",size:"\u56fe\u7247\u5927\u5c0f",width:"\u5bbd",height:"\u9ad8",resetSize:"\u91cd\u7f6e\u5927\u5c0f",align:"\u5bf9\u9f50\u65b9\u5f0f", -defaultAlign:"\u9ed8\u8ba4\u65b9\u5f0f",leftAlign:"\u5de6\u5bf9\u9f50",rightAlign:"\u53f3\u5bf9\u9f50",imgTitle:"\u56fe\u7247\u8bf4\u660e",viewServer:"\u6d4f\u89c8..."};b.file_manager={emptyFolder:"\u7a7a\u6587\u4ef6\u5939",moveup:"\u79fb\u5230\u4e0a\u4e00\u7ea7\u6587\u4ef6\u5939",viewType:"\u663e\u793a\u65b9\u5f0f\uff1a",viewImage:"\u7f29\u7565\u56fe",listImage:"\u8be6\u7ec6\u4fe1\u606f",orderType:"\u6392\u5e8f\u65b9\u5f0f\uff1a",fileName:"\u540d\u79f0",fileSize:"\u5927\u5c0f",fileType:"\u7c7b\u578b"}; -b.advtable={cells:"\u5355\u5143\u683c\u6570",rows:"\u884c\u6570",cols:"\u5217\u6570",size:"\u5927\u5c0f",width:"\u5bbd\u5ea6",height:"\u9ad8\u5ea6",percent:"%",px:"px",space:"\u8fb9\u8ddd\u95f4\u8ddd",padding:"\u8fb9\u8ddd",spacing:"\u95f4\u8ddd",align:"\u5bf9\u9f50\u65b9\u5f0f",textAlign:"\u6c34\u5e73\u5bf9\u9f50",verticalAlign:"\u5782\u76f4\u5bf9\u9f50",alignDefault:"\u9ed8\u8ba4",alignLeft:"\u5de6\u5bf9\u9f50",alignCenter:"\u5c45\u4e2d",alignRight:"\u53f3\u5bf9\u9f50",alignTop:"\u9876\u90e8",alignMiddle:"\u4e2d\u90e8", -alignBottom:"\u5e95\u90e8",alignBaseline:"\u57fa\u7ebf",border:"\u8fb9\u6846",borderWidth:"\u8fb9\u6846",borderColor:"\u989c\u8272",backgroundColor:"\u80cc\u666f\u989c\u8272"};b.title={h1:"\u6807\u9898 1",h2:"\u6807\u9898 2",h3:"\u6807\u9898 3",h4:"\u6807\u9898 4",p:"\u6b63 \u6587"};b.fontname={fontName:{SimSun:"\u5b8b\u4f53",NSimSun:"\u65b0\u5b8b\u4f53",FangSong_GB2312:"\u4eff\u5b8b_GB2312",KaiTi_GB2312:"\u6977\u4f53_GB2312",SimHei:"\u9ed1\u4f53","Microsoft YaHei":"\u5fae\u8f6f\u96c5\u9ed1",Arial:"Arial", -"Arial Black":"Arial Black","Times New Roman":"Times New Roman","Courier New":"Courier New",Tahoma:"Tahoma",Verdana:"Verdana"}}})(KindEditor); -(function(c,b){c.plugin.about={click:function(b){c.util.selection(b);(new c.dialog({id:b,cmd:"about",file:"about.html",width:300,height:70,loadingMode:!0,title:c.lang.about,noButton:c.lang.close})).show()}};c.plugin.undo={init:function(b){c.event.ctrl(c.g[b].iframeDoc,"Z",function(){c.plugin.undo.click(b);c.util.focus(b)},b);c.event.ctrl(c.g[b].newTextarea,"Z",function(){c.plugin.undo.click(b);c.util.focus(b)},b)},click:function(b){c.history.undo(b);c.util.execOnchangeHandler(b)}};c.plugin.redo={init:function(b){c.event.ctrl(c.g[b].iframeDoc, -"Y",function(){c.plugin.redo.click(b);c.util.focus(b)},b);c.event.ctrl(c.g[b].newTextarea,"Y",function(){c.plugin.redo.click(b);c.util.focus(b)},b)},click:function(b){c.history.redo(b);c.util.execOnchangeHandler(b)}};c.plugin.cut={click:function(b){try{if(!c.g[b].iframeDoc.queryCommandSupported("cut"))throw"e";}catch(a){alert(c.lang.cutError);return}c.util.execCommand(b,"cut",null)}};c.plugin.copy={click:function(b){try{if(!c.g[b].iframeDoc.queryCommandSupported("copy"))throw"e";}catch(a){alert(c.lang.copyError); -return}c.util.execCommand(b,"copy",null)}};c.plugin.paste={click:function(b){try{if(!c.g[b].iframeDoc.queryCommandSupported("paste"))throw"e";}catch(a){alert(c.lang.pasteError);return}c.util.execCommand(b,"paste",null)}};c.plugin.plainpaste={click:function(b){c.util.selection(b);this.dialog=new c.dialog({id:b,cmd:"plainpaste",file:"plainpaste.html",width:450,height:300,loadingMode:!0,title:c.lang.plainpaste,yesButton:c.lang.yes,noButton:c.lang.no});this.dialog.show()},exec:function(b){var a=c.util.getIframeDoc(this.dialog.iframe), -a=c.$("textArea",a).value,a=c.util.escape(a),a=a.replace(/ /g," "),a=c.g[b].newlineTag=="p"?a.replace(/^/,"

").replace(/$/,"

").replace(/\r\n|\n|\r/g,"

"):a.replace(/\r\n|\n|\r/g,"
$&");c.util.insertHtml(b,a);this.dialog.hide();c.util.focus(b)}};c.plugin.wordpaste={click:function(b){c.util.selection(b);this.dialog=new c.dialog({id:b,cmd:"wordpaste",file:"wordpaste.html",width:450,height:300,loadingMode:!0,title:c.lang.wordpaste,yesButton:c.lang.yes,noButton:c.lang.no});this.dialog.show()}, -exec:function(b){var a=c.util.getIframeDoc(this.dialog.iframe),a=c.$("wordIframe",a),a=c.util.getIframeDoc(a).body.innerHTML,a=a.replace(//ig,""),a=a.replace(//ig,""),a=a.replace(/]*>(\n|.)*?<\/style>/ig,""),a=a.replace(/]*>(\n|.)*?<\/script>/ig,""),a=a.replace(/]+>(\n|.)*?<\/w:[^>]+>/ig,""),a=a.replace(/(\n|.)*?<\/xml>/ig,""),a=a.replace(/\r\n|\n|\r/ig,""),a=c.util.execGetHtmlHooks(b,a),a=c.format.getHtml(a,c.g[b].htmlTags,c.g[b].urlType);c.util.insertHtml(b, -a);this.dialog.hide();c.util.focus(b)}};c.plugin.fullscreen={click:function(b){var a=c.g[b],d=this,f=function(){var b=c.util.getDocumentElement();a.width=b.clientWidth+"px";a.height=b.clientHeight-(c.util.inArray("-",a.items)?4:6)+"px"},l="",h=function(){if(d.isSelected){var g=c.util.getDocumentElement(),g=[g.clientWidth,g.clientHeight].join("");l!=g&&(l=g,f(),c.util.resize(b,a.width,a.height))}};if(this.isSelected)this.isSelected=!1,c.util.setData(b),c.remove(b,1),a.width=this.width,a.height=this.height, -c.create(b,2),document.body.style.height="",document.body.style.overflow="",document.body.parentNode.style.overflow="",window.scrollTo(this.scrollPos.x,this.scrollPos.y),c.event.remove(window,"resize",h),a.resizeMode=a.config.resizeMode,c.toolbar.unselect(b,"fullscreen");else{this.isSelected=!0;this.width=a.container.style.width;this.height=a.container.style.height;c.util.setData(b);c.remove(b,2);this.scrollPos=c.util.getScrollPos();window.scrollTo(0,0);document.body.style.height=0;document.body.style.overflow= -"hidden";document.body.parentNode.style.overflow="hidden";f();c.create(b,1);var g=a.container;g.style.position="absolute";g.style.left=0;g.style.top=0;g.style.zIndex=19811211;c.event.add(window,"resize",h);a.resizeMode=0;c.toolbar.select(b,"fullscreen")}}};c.plugin.bgcolor={click:function(b){c.util.selection(b);var a=c.queryCommandValue(c.g[b].iframeDoc,"bgcolor");this.menu=new c.menu({id:b,cmd:"bgcolor"});this.menu.picker(a)},exec:function(b,a){var d=new c.cmd(b);a==""?d.remove({span:[".background-color"]}): -d.wrap("span",[{".background-color":a}]);c.util.execOnchangeHandler(b);this.menu.hide();c.util.focus(b)}};c.plugin.fontname={click:function(b){var a=c.lang.plugins.fontname.fontName;c.util.selection(b);var d=new c.menu({id:b,cmd:"fontname",width:150}),f=c.queryCommandValue(c.g[b].iframeDoc,"fontname");c.each(a,function(a,h){d.add(''+h+"",function(){c.plugin.fontname.exec(b,a)},{checked:f===a.toLowerCase()||f===h.toLowerCase()})});d.show(); -this.menu=d},exec:function(b,a){(new c.cmd(b)).wrap("span",[{".font-family":a}]);c.util.execOnchangeHandler(b);this.menu.hide();c.util.focus(b)}};c.plugin.fontsize={click:function(b){var a=["9px","10px","12px","14px","16px","18px","24px","32px"];c.util.selection(b);for(var d=c.queryCommandValue(c.g[b].iframeDoc,"fontsize"),f=new c.menu({id:b,cmd:"fontsize",width:120}),l=0,h=a.length;l'+g+"",function(a){return function(){c.plugin.fontsize.exec(b, -a)}}(g),{height:parseInt(g)+12+"px",checked:d===g})}f.show();this.menu=f},exec:function(b,a){(new c.cmd(b)).wrap("span",[{".font-size":a}]);c.util.execOnchangeHandler(b);this.menu.hide();c.util.focus(b)}};c.plugin.hr={click:function(b){c.util.selection(b);c.util.insertHtml(b,"


");c.util.focus(b)}};c.plugin.print={click:function(b){c.util.selection(b);c.g[b].iframeWin.print()}};c.plugin.removeformat={click:function(b){c.util.selection(b);for(var a=new c.cmd(b),d={"*":["class","style"]},f=0,l= -c.g[b].inlineTags.length;f'+g+"",function(){c.plugin.title.exec(b,"<"+a+">")},{height:d[a]+12+ -"px",checked:f===a.toLowerCase()||f===g.toLowerCase()})});l.show();this.menu=l},exec:function(b,a){c.util.select(b);c.util.execCommand(b,"formatblock",a);this.menu.hide();c.util.focus(b)}};c.plugin.emoticons={click:function(e){function a(a){var b=c.$$("table");if(r)b.onmouseover=function(){r.style.display="block"},b.onmouseout=function(){r.style.display="none"};b.className="ke-plugin-emoticons-table";b.cellPadding=0;b.cellSpacing=0;b.border=0;for(var a=(a-1)*i+g,d=0;dk?(r.style.left=0,r.style.right=""):(r.style.left="",r.style.right=0);s.src=o+c+".gif";this.className="ke-plugin-emoticons-cell ke-plugin-emoticons-cell-on"}}(m,a):function(){this.className="ke-plugin-emoticons-cell ke-plugin-emoticons-cell-on"};n.onmouseout=function(){this.className="ke-plugin-emoticons-cell"};n.onclick=function(a){return function(){f.exec(e,a);return!1}}(a); -var q=c.$$("span");q.className="ke-plugin-emoticons-img";q.style.backgroundPosition="-"+24*a+"px 0px";n.appendChild(q);a++}return b}function d(b){for(var e=1;e<=j;e++){if(b!==e){var f=c.$$("a");f.href="javascript:;";f.innerHTML="["+e+"]";f.onclick=function(c){return function(){n.removeChild(q);var b=a(c);n.insertBefore(b,u);q=b;u.innerHTML="";d(c);return!1}}(e);u.appendChild(f)}else u.appendChild(document.createTextNode("["+e+"]"));u.appendChild(document.createTextNode(" "))}}var f=this,l=5,h=9,g= -0,i=l*h,j=Math.ceil(135/i),k=Math.floor(h/2),m=c.g[e],o=m.pluginsPath+"emoticons/",m=m.allowPreviewEmoticons===b?!0:m.allowPreviewEmoticons;c.util.selection(e);var n=c.$$("div");n.className="ke-plugin-emoticons-wrapper";var r,s;if(m)r=c.$$("div"),r.className="ke-plugin-emoticons-preview",r.style.right=0,s=c.$$("img"),s.className="ke-reset",s.src=o+"0.gif",s.border=0,r.appendChild(s),n.appendChild(r);var q=a(1);n.appendChild(q);var u=c.$$("div");u.className="ke-plugin-emoticons-page";n.appendChild(u); -d(1);m=new c.menu({id:e,cmd:"emoticons"});m.append(n);m.show();this.menu=m},exec:function(b,a){var d=c.g[b].pluginsPath+"emoticons/"+a+".gif";c.util.insertHtml(b,'');this.menu.hide();c.util.focus(b)}};c.plugin.flash={init:function(b){c.g[b].getHtmlHooks.push(function(a){return a.replace(/]*class="?ke-flash"?[^>]*>/ig,function(a){var b=a.match(/style="[^"]*;?\s*width:\s*(\d+)/i)?RegExp.$1:0,e=a.match(/style="[^"]*;?\s*height:\s*(\d+)/i)?RegExp.$1:0,b= -b||(a.match(/width="([^"]+)"/i)?RegExp.$1:0),e=e||(a.match(/height="([^"]+)"/i)?RegExp.$1:0);if(a.match(/kesrctag="([^"]+)"/i))return a=c.util.getAttrList(unescape(RegExp.$1)),a.width=b||a.width||0,a.height=e||a.height||0,a.kesrc=a.src,c.util.getMediaEmbed(a)})});c.g[b].setHtmlHooks.push(function(a){return a.replace(/]*type="application\/x-shockwave-flash"[^>]*>(?:<\/embed>)?/ig,function(a){var f=a.match(/\s+src="([^"]+)"/i)?RegExp.$1:"";if(a.match(/\s+kesrc="([^"]+)"/i))f=RegExp.$1;var l= -a.match(/\s+width="([^"]+)"/i)?RegExp.$1:0,h=a.match(/\s+height="([^"]+)"/i)?RegExp.$1:0,a=c.util.getAttrList(a);a.src=f;a.width=l;a.height=h;return c.util.getMediaImage(b,"flash",a)})})},click:function(b){c.util.selection(b);this.dialog=new c.dialog({id:b,cmd:"flash",file:"flash.html",width:400,height:140,loadingMode:!0,title:c.lang.flash,yesButton:c.lang.yes,noButton:c.lang.no});this.dialog.show()},check:function(b,a,d,f){b=c.util.getIframeDoc(this.dialog.iframe);if(!a.match(/^.{3,}$/))return alert(c.lang.invalidUrl), -c.$("url",b).focus(),!1;if(!d.match(/^\d*$/))return alert(c.lang.invalidWidth),c.$("width",b).focus(),!1;if(!f.match(/^\d*$/))return alert(c.lang.invalidHeight),c.$("height",b).focus(),!1;return!0},exec:function(b){var a=c.util.getIframeDoc(this.dialog.iframe),d=c.$("url",a).value,f=c.$("width",a).value,a=c.$("height",a).value;if(!this.check(b,d,f,a))return!1;d=c.util.getMediaImage(b,"flash",{src:d,type:c.g[b].mediaTypes.flash,width:f,height:a,quality:"high"});c.util.insertHtml(b,d);this.dialog.hide(); -c.util.focus(b)}};c.plugin.image={getSelectedNode:function(b){var b=c.g[b],a=b.keRange.startNode,d=b.keRange.endNode;if((c.browser.WEBKIT||b.keSel.isControl)&&a.nodeType==1&&a.tagName.toLowerCase()=="img"&&a==d&&!a.className.match(/^ke-\w+/i))return a},init:function(b){var a=this,b=c.g[b];b.contextmenuItems.push({text:c.lang.editImage,click:function(b,e){c.util.select(b);e.hide();a.click(b)},cond:function(b){return a.getSelectedNode(b)},options:{width:"150px",iconHtml:''}}); -b.contextmenuItems.push({text:c.lang.deleteImage,click:function(b,e){c.util.select(b);e.hide();var l=a.getSelectedNode(b);l.parentNode.removeChild(l);c.util.execOnchangeHandler(b)},cond:function(b){return a.getSelectedNode(b)},options:{width:"150px"}});b.contextmenuItems.push("-")},click:function(b){c.util.selection(b);this.dialog=new c.dialog({id:b,cmd:"image",file:"image/image.html",width:400,height:220,loadingMode:!0,title:c.lang.image,yesButton:c.lang.yes,noButton:c.lang.no});this.dialog.show()}, -check:function(){var b=c.util.getIframeDoc(this.dialog.iframe),a=c.$("type",b).value,d=c.$("imgWidth",b).value,f=c.$("imgHeight",b).value;c.$("imgTitle",b);a=a==2?c.$("imgFile",b):c.$("url",b);if(!a.value.match(/\.(jpg|jpeg|gif|bmp|png)(\s|\?|$)/i))return alert(c.lang.invalidImg),a.focus(),!1;if(!d.match(/^\d*$/))return alert(c.lang.invalidWidth),c.$("imgWidth",b).focus(),!1;if(!f.match(/^\d*$/))return alert(c.lang.invalidHeight),c.$("imgHeight",b).focus(),!1;return!0},exec:function(b){for(var a= -this,d=c.util.getIframeDoc(this.dialog.iframe),f=c.$("type",d).value,l=c.$("imgWidth",d).value,h=c.$("imgHeight",d).value,g=c.$("imgTitle",d).value,i=d.getElementsByName("align"),j="",k=0,m=i.length;k0&&(a+='width="'+f+'" ');l>0&&(a+='height="'+l+'" ');d&&(a+='title="'+d+'" ');g&&(a+='align="'+g+'" ');a+='alt="'+d+'" ';h&&(a+='border="'+h+'" ');a+="/>";c.util.insertHtml(b, -a);this.dialog.hide();c.util.focus(b)}};c.plugin.link={getSelectedNode:function(b){return c.getCommonAncestor(c.g[b].keSel,"a")},init:function(b){var a=this;c.g[b].contextmenuItems.push({text:c.lang.editLink,click:function(b,e){c.util.select(b);e.hide();a.click(b)},cond:function(b){return a.getSelectedNode(b)},options:{width:"150px",iconHtml:''}})},click:function(b){c.util.selection(b);this.dialog=new c.dialog({id:b,cmd:"link",file:"link/link.html", -width:400,height:90,loadingMode:!0,title:c.lang.link,yesButton:c.lang.yes,noButton:c.lang.no});this.dialog.show()},exec:function(b){var a=c.g[b];c.util.select(b);var d=a.keRange,f=d.startNode,l=d.endNode,h=a.iframeDoc,g=c.util.getIframeDoc(this.dialog.iframe),i=c.$("hyperLink",g).value,j=c.$("linkType",g).value;if(!i.match(/.+/)||i.match(/^\w+:\/\/\/?$/))return alert(c.lang.invalidUrl),c.$("hyperLink",g).focus(),!1;for(g=d.getParentElement();g;){if(g.tagName.toLowerCase()=="a"||g.tagName.toLowerCase()== -"body")break;g=g.parentNode}var g=g.parentNode,l=c.browser.IE?!!a.range.item:f.nodeType==1&&f===l&&f.nodeName.toLowerCase()!="br",k=!l;l||(k=c.browser.IE?a.range.text==="":a.range.toString()==="");if(k||c.util.isEmpty(b))a='
",c.util.insertHtml(b,a);else{h.execCommand("createlink",!1,"__ke_temp_url__");for(var g=g.getElementsByTagName("a"),k=0,m=g.length;k'}});c.g[b].contextmenuItems.push("-")},click:function(b){var a=c.g[b],d=a.iframeDoc;c.util.selection(b);var f=a.keRange,l=f.startNode,f=f.endNode,f=l.nodeType==1&&l===f,h=!f;f||(h=c.browser.IE?a.range.text==="":a.range.toString()==="");if(h){h=c.plugin.link.getSelectedNode(b);if(!h)return;f=a.keRange;f.selectTextNode(h); -a.keSel.addRange(f);c.util.select(b);d.execCommand("unlink",!1,null);if(c.browser.WEBKIT&&l.tagName.toLowerCase()=="img")d=l.parentNode,d.tagName.toLowerCase()=="a"&&(c.util.removeParent(d),a.keSel.addRange(f))}else d.execCommand("unlink",!1,null);c.util.execOnchangeHandler(b);c.toolbar.updateState(b);c.util.focus(b)}};c.plugin.media={init:function(b){var a={};c.each(c.g[b].mediaTypes,function(b,c){a[c]=b});c.g[b].getHtmlHooks.push(function(a){return a.replace(/]*class="?ke-\w+"?[^>]*>/ig, -function(a){var b=a.match(/style="[^"]*;?\s*width:\s*(\d+)/i)?RegExp.$1:0,d=a.match(/style="[^"]*;?\s*height:\s*(\d+)/i)?RegExp.$1:0,b=b||(a.match(/width="([^"]+)"/i)?RegExp.$1:0),d=d||(a.match(/height="([^"]+)"/i)?RegExp.$1:0);if(a.match(/\s+kesrctag="([^"]+)"/i))return a=c.util.getAttrList(unescape(RegExp.$1)),a.width=b||a.width||0,a.height=d||a.height||0,a.kesrc=a.src,c.util.getMediaEmbed(a)})});c.g[b].setHtmlHooks.push(function(d){return d.replace(/]*type="([^"]+)"[^>]*>(?:<\/embed>)?/ig, -function(d,l){if(typeof a[l]=="undefined")return d;var h=d.match(/\s+src="([^"]+)"/i)?RegExp.$1:"";if(d.match(/\s+kesrc="([^"]+)"/i))h=RegExp.$1;var g=d.match(/\s+width="([^"]+)"/i)?RegExp.$1:0,i=d.match(/\s+height="([^"]+)"/i)?RegExp.$1:0,j=c.util.getAttrList(d);j.src=h;j.width=g;j.height=i;return c.util.getMediaImage(b,"",j)})})},click:function(b){c.util.selection(b);this.dialog=new c.dialog({id:b,cmd:"media",file:"media.html",width:400,height:170,loadingMode:!0,title:c.lang.media,yesButton:c.lang.yes, -noButton:c.lang.no});this.dialog.show()},check:function(b,a,d,f){b=c.util.getIframeDoc(this.dialog.iframe);if(!a.match(/^.{3,}\.(swf|flv|mp3|wav|wma|wmv|mid|avi|mpg|mpeg|asf|rm|rmvb)(\?|$)/i))return alert(c.lang.invalidMedia),c.$("url",b).focus(),!1;if(!d.match(/^\d*$/))return alert(c.lang.invalidWidth),c.$("width",b).focus(),!1;if(!f.match(/^\d*$/))return alert(c.lang.invalidHeight),c.$("height",b).focus(),!1;return!0},exec:function(b){var a=c.util.getIframeDoc(this.dialog.iframe),d=c.$("url",a).value, -f=c.$("width",a).value,l=c.$("height",a).value;if(!this.check(b,d,f,l))return!1;a=c.$("autostart",a).checked?"true":"false";d=c.util.getMediaImage(b,"",{src:d,type:c.g[b].mediaTypes[c.util.getMediaType(d)],width:f,height:l,autostart:a,loop:"true"});c.util.insertHtml(b,d);this.dialog.hide();c.util.focus(b)}};c.plugin.advtable={getSelectedTable:function(b){return c.getCommonAncestor(c.g[b].keSel,"table")},getSelectedRow:function(b){return c.getCommonAncestor(c.g[b].keSel,"tr")},getSelectedCell:function(b){return c.getCommonAncestor(c.g[b].keSel, -"td")},tableprop:function(b){this.click(b)},tablecellprop:function(b){var a=this;c.util.selection(b);var d=new c.dialog({id:b,cmd:"advtable",file:"advtable/cell.html",width:420,height:150,loadingMode:!0,title:c.lang.tablecell,yesButton:c.lang.yes,noButton:c.lang.no,yesClickFn:function(b){var e=c.util.getIframeDoc(d.iframe),h=c.$("width",e),g=c.$("height",e),i=c.$("widthType",e),j=c.$("heightType",e),k=c.$("textAlign",e),m=c.$("verticalAlign",e),o=c.$("border",e),n=c.$("borderColor",e),r=c.$("backgroundColor", -e),e=h.value,s=g.value,i=i.value,j=j.value,k=k.value,m=m.value,q=o.value,n=n.innerHTML,r=r.innerHTML;if(!e.match(/^\d*$/))return alert(c.lang.invalidWidth),h.focus(),!1;if(!s.match(/^\d*$/))return alert(c.lang.invalidHeight),g.focus(),!1;if(!q.match(/^\d*$/))return alert(c.lang.invalidBorder),o.focus(),!1;h=a.getSelectedCell(b);h.style.width=e!==""?e+i:"";h.style.height=s!==""?s+j:"";h.style.backgroundColor=r;h.style.textAlign=k;h.style.verticalAlign=m;h.style.borderWidth=q;h.style.borderStyle=q!== -""?"solid":"";h.style.borderColor=n;c.util.execOnchangeHandler(b);d.hide();c.util.focus(b)}});d.show()},tableinsert:function(b){this.click(b,"insert")},tabledelete:function(b){b=this.getSelectedTable(b);b.parentNode.removeChild(b)},tablecolinsert:function(b,a){for(var c=this.getSelectedTable(b),f=this.getSelectedCell(b).cellIndex+a,l=0,h=c.rows.length;l'}})}c.g[e].contextmenuItems.push("-");c.g[e].setHtmlHooks.push(function(a){return a.replace(/]*)>/ig,function(a,b){if(b.match(/\s+border=["']?(\d*)["']?/ig)){var d=RegExp.$1;return b.indexOf("ke-zeroborder")<0&&(d===""||d==="0")?c.addClass(a,"ke-zeroborder"):a}else return c.addClass(a,"ke-zeroborder")})})},click:function(b,a){a=a||"default"; -c.util.selection(b);this.dialog=new c.dialog({id:b,cmd:"advtable",file:"advtable/advtable.html?mode="+a,width:420,height:220,loadingMode:!0,title:c.lang.advtable,yesButton:c.lang.yes,noButton:c.lang.no});this.dialog.show()},exec:function(b){var a=c.util.getIframeDoc(this.dialog.iframe),d=c.$("mode",a),f=c.$("rows",a),l=c.$("cols",a),h=c.$("width",a),g=c.$("height",a),i=c.$("widthType",a),j=c.$("heightType",a),k=c.$("padding",a),m=c.$("spacing",a),o=c.$("align",a),n=c.$("border",a),r=c.$("borderColor", -a),s=c.$("backgroundColor",a),a=f.value,q=l.value,u=h.value,w=g.value,i=i.value,p=j.value,j=k.value,v=m.value,o=o.value,t=n.value,r=r.innerHTML,s=s.innerHTML;if(a==""||a==0||!a.match(/^\d*$/))return alert(c.lang.invalidRows),f.focus(),!1;if(q==""||q==0||!q.match(/^\d*$/))return alert(c.lang.invalidCols),l.focus(),!1;if(!u.match(/^\d*$/))return alert(c.lang.invalidWidth),h.focus(),!1;if(!w.match(/^\d*$/))return alert(c.lang.invalidHeight),g.focus(),!1;if(!j.match(/^\d*$/))return alert(c.lang.invalidPadding), -k.focus(),!1;if(!v.match(/^\d*$/))return alert(c.lang.invalidSpacing),m.focus(),!1;if(!t.match(/^\d*$/))return alert(c.lang.invalidBorder),n.focus(),!1;if(d.value==="update")a=this.getSelectedTable(b),a.style.width=u!==""?u+i:"",a.style.height=w!==""?w+p:"",a.style.backgroundColor=s,c.attr(a,"width",""),c.attr(a,"height",""),c.attr(a,"bgColor",""),c.attr(a,"cellPadding",j),c.attr(a,"cellSpacing",v),c.attr(a,"align",o),t===""||t==="0"?c.addClass(a,"ke-zeroborder"):c.removeClass(a,"ke-zeroborder"), -c.attr(a,"border",t),c.attr(a,"borderColor",r),c.util.execOnchangeHandler(b);else{d="";u!==""&&(d+="width:"+u+i+";");w!==""&&(d+="height:"+w+p+";");s!==""&&(d+="background-color:"+s+";");u="";for(d=0;d "; -u+=""}u+="";c.util.insertHtml(b,u)}this.dialog.hide();c.util.focus(b)}}})(KindEditor); diff --git a/www/js/jquery/kindeditor/kindeditor.zh-tw.js b/www/js/jquery/kindeditor/kindeditor.zh-tw.js deleted file mode 100644 index dc8ff60d49..0000000000 --- a/www/js/jquery/kindeditor/kindeditor.zh-tw.js +++ /dev/null @@ -1,173 +0,0 @@ -(function(c){if(window.KindEditor===c){var b={version:"3.5.6 (2011-10-04)"};b.scriptPath=function(){for(var a=document.getElementsByTagName("script"),d=0,b=a.length;d-1&&a.indexOf("opera")==-1,GECKO:a.indexOf("gecko")>-1&& -a.indexOf("khtml")==-1,WEBKIT:a.indexOf("applewebkit")>-1,OPERA:a.indexOf("opera")>-1}}();b.setting={wyswygMode:!0,loadStyleMode:!0,resizeMode:2,filterMode:!1,autoSetDataMode:!1,shadowMode:!0,useContextmenu:!0,urlType:"",skinType:"default",syncType:"form",newlineTag:"p",dialogAlignType:"page",cssPath:"",skinsPath:b.scriptPath+"skins/",pluginsPath:b.scriptPath+"plugins/",minWidth:200,minHeight:100,minChangeSize:5,toolbarLineHeight:24,statusbarHeight:11,items:["source","|","fullscreen","undo","redo", -"print","cut","copy","paste","plainpaste","wordpaste","|","justifyleft","justifycenter","justifyright","justifyfull","insertorderedlist","insertunorderedlist","indent","outdent","subscript","superscript","|","selectall","-","title","fontname","fontsize","|","textcolor","bgcolor","bold","italic","underline","strikethrough","removeformat","|","image","flash","media","advtable","hr","emoticons","link","unlink","|","about"],colorTable:[["#E53333","#E56600","#FF9900","#64451D","#DFC5A4","#FFE500"],["#009900", -"#006600","#99BB00","#B8D100","#60D978","#00D5FF"],["#337FE5","#003399","#4C33E5","#9933E5","#CC33E5","#EE33EE"],["#FFFFFF","#CCCCCC","#999999","#666666","#333333","#000000"]],noEndTags:["br","hr","img","area","col","embed","input","param"],inlineTags:["b","del","em","font","i","span","strike","strong","sub","sup","u"],endlineTags:["br","hr","table","tbody","td","tr","th","div","p","ol","ul","li","blockquote","h1","h2","h3","h4","h5","h6","script","style","marquee"],htmlTags:{font:["color","size", -"face",".background-color"],span:[".color",".background-color",".font-size",".font-family",".background",".font-weight",".font-style",".text-decoration",".vertical-align"],div:["align",".border",".margin",".padding",".text-align",".color",".background-color",".font-size",".font-family",".font-weight",".background",".font-style",".text-decoration",".vertical-align",".margin-left"],table:["border","cellspacing","cellpadding","width","height","align","bordercolor",".padding",".margin",".border","bgcolor", -".text-align",".color",".background-color",".font-size",".font-family",".font-weight",".font-style",".text-decoration",".background",".width",".height"],"td,th":["align","valign","width","height","colspan","rowspan","bgcolor",".text-align",".color",".background-color",".font-size",".font-family",".font-weight",".font-style",".text-decoration",".vertical-align",".background"],a:["href","target","name"],embed:["src","width","height","type","loop","autostart","quality",".width",".height","align","allowscriptaccess", -"/"],img:["src","width","height","border","alt","title",".width",".height","/"],hr:["/"],br:["/"],"p,ol,ul,li,blockquote,h1,h2,h3,h4,h5,h6":["align",".text-align",".color",".background-color",".font-size",".font-family",".background",".font-weight",".font-style",".text-decoration",".vertical-align",".text-indent",".margin-left"],"tbody,tr,strong,b,sub,sup,em,i,u,strike":[]},mediaTypes:{rm:"audio/x-pn-realaudio-plugin",flash:"application/x-shockwave-flash",media:"video/x-ms-asf-plugin"},afterTab:function(a){b.util.setSelection(a); -b.util.insertHtml(a,"    ")}};b.g={};b.plugin={};b.$=function(a,d){return(d||document).getElementById(a)};b.$$=function(a,d){return(d||document).createElement(a)};b.event={add:function(a,d,f,l){a.addEventListener?a.addEventListener(d,f,!1):a.attachEvent&&a.attachEvent("on"+d,f);l!==c&&b.g[l].eventStack.push({el:a,type:d,fn:f})},remove:function(a,d,f,l){a.removeEventListener?a.removeEventListener(d,f,!1):a.detachEvent&&a.detachEvent("on"+d,f);if(l!==c)for(var l=b.g[l].eventStack, -h=0,e=l.length;h18)&&a.keyCode!=116)return d(a),b.event.stop(a),!1},f);a=a.nodeName=="#document"?a.body:a;this.add(a,"paste",c,f);this.add(a,"cut",c,f)},ctrl:function(a,d,f,c){d=d.toString().match(/^\d{2,}$/)?d:d.toUpperCase().charCodeAt(0);this.add(a,"keydown",function(a){if(a.ctrlKey&&a.keyCode==d&&!a.shiftKey&&!a.altKey)return f(a),b.event.stop(a),!1},c)},ready:function(a,d,b,c){var d=d||window,b=b||document,h=!1,e=function(){h|| -(h=!0,a())};if(b.addEventListener)this.add(b,"DOMContentLoaded",e,c);else if(b.attachEvent&&(this.add(b,"readystatechange",function(){b.readyState=="complete"&&e()},c),b.documentElement.doScroll&&typeof d.frameElement==="undefined")){var i=function(){if(!h){try{b.documentElement.doScroll("left")}catch(a){window.setTimeout(i,0);return}e()}};i()}this.add(d,"load",e,c)}};b.each=function(a,d){for(var b in a)a.hasOwnProperty(b)&&d(b,a[b])};b.eachNode=function(a,d){var f=function(a){if(b.util.getNodeType(a)!= -1)return!0;for(a=a.firstChild;a;){var c=a.nextSibling;if(!d(a))return!1;if(!f(a))return!1;a=c}return!0};f(a)};b.selection=function(a){this.keRange=this.range=this.sel=null;this.isControl=!1;var d=a.parentWindow||a.defaultView;this.init=function(){var f=a.selection?a.selection:d.getSelection(),c;try{c=f.rangeCount>0?f.getRangeAt(0):f.createRange()}catch(h){}c||(c=b.util.createRange(a));this.sel=f;this.range=c;var e,i,j;if(b.browser.IE)c.item?(this.isControl=!0,f=i=c.item(0),e=j=0):(this.isControl= -!1,f=function(d){var f=c.duplicate();f.collapse(d);var h=f.parentElement(),e=h.childNodes;if(e.length==0)return{node:h,pos:0};var g,i=0,j=!1,k=c.duplicate();b.util.moveToElementText(k,h);for(var p=0,v=e.length;p0)j=!0;else if(t==0)return d.nodeType==1?(f=new b.range(a),f.selectTextNode(d),{node:f.startNode,pos:0}):{node:d,pos:0};d.nodeType==1?(t=c.duplicate(),b.util.moveToElementText(t,d),k.setEndPoint("StartToEnd",t),j?i+=t.text.replace(/\r\n|\n|\r/g, -"").length:i=0):d.nodeType==3&&typeof d.nodeValue==="string"&&(k.moveStart("character",d.nodeValue.length),i+=d.nodeValue.length);j||(g=d)}if(!j&&g.nodeType==1)return g=h.lastChild,{node:g,pos:g.nodeType==1?1:g.nodeValue.length};k=c.duplicate();b.util.moveToElementText(k,h);k.setEndPoint("StartToEnd",f);i-=k.text.replace(/\r\n|\n|\r/g,"").length;return{node:g,pos:i}},e=f(!0),j=f(!1),f=e.node,e=e.pos,i=j.node,j=j.pos);else{f=c.startContainer;e=c.startOffset;i=c.endContainer;j=c.endOffset;f.nodeType== -1&&typeof f.childNodes[e]!="undefined"&&(f=f.childNodes[e],e=0);i.nodeType==1&&(j=j==0?1:j,typeof i.childNodes[j-1]!="undefined"&&(i=i.childNodes[j-1],j=i.nodeType==1?0:i.nodeValue.length));this.isControl=f.nodeType==1&&f===i&&c.startOffset+1==c.endOffset;if(f.nodeType==1&&i.nodeType==3&&j==0&&i.previousSibling)for(var k=i.previousSibling;k;){if(k===f){i=f;break}if(k.childNodes.length!=1)break;k=k.childNodes[0]}if(c.collapsed)k=new b.range(a),k.setTextStart(f,e),i=k.startNode,j=k.startPos}k=new b.range(a); -k.setTextStart(f,e);k.setTextEnd(i,j);this.keRange=k};this.init();this.addRange=function(d){if(!(b.browser.GECKO&&b.browser.VERSION<3))if(this.keRange=d,b.browser.IE){var c=function(c){var l=b.util.createRange(a),h=c?d.startNode:d.endNode;h.nodeType==1?(b.util.moveToElementText(l,h),l.collapse(c)):h.nodeType==3&&(l=b.util.getNodeStartRange(a,h),l.moveStart("character",c?d.startPos:d.endPos));return l};if(!this.range.item){var h=d.startNode;if(h==d.endNode&&b.util.getNodeType(h)==1&&b.util.getNodeTextLength(h)== -0)c=a.createTextNode(" "),h.appendChild(c),b.util.moveToElementText(this.range,h),this.range.collapse(!1),this.range.select(),h.removeChild(c);else{h.nodeType==3&&d.collapsed()?(this.range=c(!0),this.range.collapse(!0)):(this.range.setEndPoint("StartToStart",c(!0)),this.range.setEndPoint("EndToStart",c(!1)));try{this.range.select()}catch(e){}}}}else{h=function(a){for(var d=0;a;)a=a.previousSibling,d++;return--d};c=new b.range(a);c.setTextStart(d.startNode,d.startPos);c.setTextEnd(d.endNode,d.endPos); -var i=c.startNode,j=c.endNode;b.util.getNodeType(i)==88?this.range.setStart(i.parentNode,h(c.startNode)):this.range.setStart(i,c.startPos);b.util.getNodeType(j)==88?this.range.setEnd(j.parentNode,h(c.endNode)+1):this.range.setEnd(j,c.endPos);this.sel.removeAllRanges();this.sel.addRange(this.range)}};this.focus=function(){try{b.browser.IE&&this.range!=null&&this.range.select()}catch(a){}}};b.range=function(a){this.endPos=this.endNode=this.startPos=this.startNode=null;this.getParentElement=function(){var d= -function(a,d){for(;a&&(!a.tagName||a.tagName.toLowerCase()!="body");)if(a=a.parentNode,d(a))break},f=[];d(this.startNode,function(a){f.push(a)});var c;d(this.endNode,function(a){if(b.util.inArray(a,f))return c=a,!0});return c?c:a.body};this.getNodeList=function(){var d=this,f=this.getParentElement(),c=[],h=!1;f==d.startNode&&(h=!0);h&&c.push(f);b.eachNode(f,function(f){f==d.startNode&&(h=!0);var e=new b.range(a);e.selectTextNode(f);var j=e.comparePoints("START_TO_END",d);if(j>0)return!1;else if(j== -0&&(e.startNode!==e.endNode||e.startPos!==e.endPos))return!1;h&&c.push(f);return!0});return c};this.comparePoints=function(d,f){var c=function(f,c,l,e){if(b.browser.IE){var k=function(d,f,c){var l=b.util.createRange(a),e=b.util.getNodeType(d);e==1?(b.util.moveToElementText(l,d),l.collapse(c)):e==3&&(l=b.util.getNodeStartRange(a,d),l.moveStart("character",f),l.collapse(!0));return l},m;m=d=="START_TO_START"||d=="START_TO_END"?k(f,c,!0):k(f,c,!1);f=d=="START_TO_START"||d=="END_TO_START"?k(l,e,!0):k(l, -e,!1);return m.compareEndPoints("StartToStart",f)}else m=b.util.createRange(a),m.selectNode(f),d=="START_TO_START"||d=="START_TO_END"?m.collapse(!0):m.collapse(!1),f=b.util.createRange(a),f.selectNode(l),d=="START_TO_START"||d=="END_TO_START"?f.collapse(!0):f.collapse(!1),c=m.compareBoundaryPoints(Range.START_TO_START,f)>0?1:m.compareBoundaryPoints(Range.START_TO_START,f)==0?c>e?1:c==e?0:-1:-1;return c};if(d=="START_TO_START")return c(this.startNode,this.startPos,f.startNode,f.startPos);if(d=="START_TO_END")return c(this.startNode, -this.startPos,f.endNode,f.endPos);if(d=="END_TO_START")return c(this.endNode,this.endPos,f.startNode,f.startPos);if(d=="END_TO_END")return c(this.endNode,this.endPos,f.endNode,f.endPos)};this.collapsed=function(){return this.startNode===this.endNode&&this.startPos===this.endPos};this.collapse=function(a){a?this.setEnd(this.startNode,this.startPos):this.setStart(this.endNode,this.endPos)};this.setTextStart=function(a,f){var c=a;b.eachNode(a,function(a){if(b.util.getNodeType(a)==3&&a.nodeValue.length> -0||b.util.getNodeType(a)==88)return c=a,f=0,!1;return!0});this.setStart(c,f)};this.setStart=function(a,b){this.startNode=a;this.startPos=b;if(this.endNode===null)this.endNode=a,this.endPos=b};this.setTextEnd=function(a,f){var c=a;b.eachNode(a,function(a){if(b.util.getNodeType(a)==3&&a.nodeValue.length>0||b.util.getNodeType(a)==88)c=a,f=b.util.getNodeType(a)==3?a.nodeValue.length:0;return!0});this.setEnd(c,f)};this.setEnd=function(a,b){this.endNode=a;this.endPos=b;if(this.startNode===null)this.startNode= -a,this.startPos=b};this.selectNode=function(a){this.setStart(a,0);this.setEnd(a,a.nodeType==1?0:a.nodeValue.length)};this.selectTextNode=function(a){this.setTextStart(a,0);this.setTextEnd(a,a.nodeType==1?0:a.nodeValue.length)};this.extractContents=function(d){function f(a,b,f){var c=a.nodeValue.length,l=a.cloneNode(!0),e=l;b>0&&(e=l.splitText(b));f0&&(l=a.splitText(b)),f/g,"")===""&&q.parentNode&&q.parentNode.removeChild(q);return!0}var d=d===c?!0:d,e=this,g=this.startNode,i=this.startPos,j=this.endNode,k=this.endPos,m=[],o=b.util.arrayToHash(b.setting.noEndTags),n=!1,r=!1,s=this.getParentElement(),q=s.cloneNode(!1);l(s,q);b.each(m,function(a,d){(d.nodeType!=3||d.nodeValue.length>0)&&d.parentNode.removeChild(d)});return q};this.cloneContents= -function(){return this.extractContents(!1)};this.getText=function(){return this.cloneContents().innerHTML.replace(/<.*?>/g,"")}};b.cmd=function(a){this.doc=b.g[a].iframeDoc;this.keSel=b.g[a].keSel;this.keRange=b.g[a].keRange;this.mergeAttributes=function(a,f){for(var c=0,e=f.length;c=0?(this.mergeAttributes(a.parentNode,g),a):(e=e.cloneNode(!0),j?(f=a.cloneNode(!0),e.appendChild(f),a.parentNode.replaceChild(e,a),f):(j=a,f0&&(j=a.splitText(f)),c0?d.parentNode.appendChild(e):d.parentNode.insertBefore(e,d):d.appendChild(e),g.selectNode(e),!1;else if(d==i)g.setStart(d,0);else{if(d==k)return g.setEnd(d,0),!1}else if(d.nodeType==3&&n)if(d==i&&d==k)return d=c.wrapTextNode(d,j,m,e,f),g.selectNode(d),!1;else if(d==i)d=c.wrapTextNode(d,j,d.nodeValue.length,e,f),g.setStart(d,0);else if(d==k)return d=c.wrapTextNode(d,0,m,e,f),g.setEnd(d,d.nodeType==1?0:d.nodeValue.length),!1;else c.wrapTextNode(d,0,d.nodeValue.length,e,f);return!0}); -this.keSel.addRange(g)}};this.getTopParent=function(a,f){for(var c=null;f;)if(f=f.parentNode,b.util.inArray(f.tagName.toLowerCase(),a))c=f;else break;return c};this.splitNodeParent=function(a,f,c){var e=new b.range(this.doc);e.selectNode(a.firstChild);e.setEnd(f,c);f=e.extractContents();a.parentNode.insertBefore(f,a);return{left:f,right:a}};this.remove=function(a){var f=this.keRange,c=f.startNode,e=f.startPos,g=f.endNode,i=f.endPos;this.keSel.focus();if(!b.util.inMarquee(f.getParentElement())){var j= -f.getText().replace(/\s+/g,"")==="";if(!j||b.browser.IE){var k=[];b.each(a,function(a){a!="*"&&k.push(a)});var m=this.getTopParent(k,c),o=this.getTopParent(k,g);if(m){var n=this.splitNodeParent(m,c,e);f.setStart(n.right,0);if(c==g&&b.util.getNodeTextLength(n.right)>0)f.selectNode(n.right),c=new b.range(this.doc),c.selectTextNode(n.left),e>0&&(i-=c.endNode.nodeValue.length),c.selectTextNode(n.right),g=c.startNode}if(j)if(m=f.startNode,m.nodeType==1){if(m.nodeName.toLowerCase()=="br")return;f.selectNode(m)}else return; -else o&&(e=this.splitNodeParent(o,g,i),f.setEnd(e.left,0),m==o&&f.setStart(e.left,0));o=function(a,d){if(d.charAt(0)=="."){var f=b.util.getJsKey(d.substr(1));a.style[f]=""}else b.browser.IE&&b.browser.VERSION<8&&d=="class"&&(d="className"),a.removeAttribute(d)};e=f.getNodeList();f.setTextStart(f.startNode,f.startPos);f.setTextEnd(f.endNode,f.endPos);i=0;for(j=e.length;i0&&paths.pop():f!==""&&f!="."&&paths.push(f)}return"/"+paths.join("/")};a.match(/^\//)?a=f+h(a.substr(1)):a.match(/^\w+:\/\//)||(a=f+h(e+"/"+a));if(d=="relative")var g=function(d,b){if(a.substr(0,d.length)=== -d){for(var f=[],c=0;c0&&(c+="/"+f.join("/"));e=="/"&&(c+="/");return c+a.substr(d.length)}else if(f=d.match(/^(.*)\//))return g(f[1],++b)},a=g(f+e,0).substr(2);else d=="absolute"&&a.substr(0,f.length)===f&&(a=a.substr(f.length));return a},getHtml:function(a,d,f){var c=d?!0:!1,a=a.replace(/(]*>)([\s\S]*?)(<\/pre>)/ig,function(a,d,b,f){return d+b.replace(/]*>/ig,"\n")+f}),e={},g=["xx-small","x-small","small","medium","large","x-large","xx-large"];c&&b.each(d, -function(a,d){for(var f=a.split(","),c=0,l=f.length;c]+)|(?:\s+[\w\-:]+="[^"]*")|(?:\s+[\w\-:]+='[^']*'))*)(\/)?>((?:\r\n|\n|\r)*)/g,function(a,d,m,o,u,w,p){var d=d||"",m=m||"",v=o.toLowerCase(),o=u||"",w=w?" "+w:"",p=p||"";v==="script"&& -m!==""&&(i=!1);if(i)return a;v==="script"&&m===""&&(i=!0);if(c&&typeof e[v]=="undefined")return"";w===""&&typeof j[v]!="undefined"&&(w=" /");if(v in k){if(m||w)p="\n"}else p&&(p=" ");v!=="script"&&v!=="style"&&(d="");if(v==="font"){var t={},x="",o=o.replace(/\s*([\w\-:]+)=([^\s"'<>]+|"[^"]*"|'[^']*')/g,function(a,d,b){d=d.toLowerCase();b=(b||"").replace(/^["']|["']$/g,"");if(d==="color")return t.color=b," ";if(d==="size")return t["font-size"]=g[parseInt(b)-1]||""," ";if(d==="face")return t["font-family"]= -b," ";if(d==="style")return x=b," ";return a});x&&!/;$/.test(x)&&(x+=";");b.each(t,function(a,d){d!==""&&(/\s/.test(d)&&(d="'"+d+"'"),x+=a+":"+d+";")});x&&(o+=' style="'+x+'"');v="span"}return o!==""?(o=o.replace(/\s*([\w\-:]+)=([^\s"'<>]+|"[^"]*"|'[^']*')/g,function(a,d,g){a=d.toLowerCase();g=g||"";if(c&&(a.charAt(0)==="."||a!=="style"&&typeof e[v][a]=="undefined"))return" ";if(g==="")g='""';else{if(a==="style"){g=g.substr(1,g.length-2);g=g.replace(/\s*([^\s]+?)\s*:(.*?)(;|$)/g,function(a,d,f){a= -d.toLowerCase();if(c&&typeof e[v].style=="undefined"&&typeof e[v]["."+a]=="undefined")return"";f=b.util.trim(f);f=b.util.rgbToHex(f);return a+":"+f+";"});g=b.util.trim(g);if(g==="")return"";g='"'+g+'"'}b.util.inArray(a,["src","href"])&&(g.charAt(0)==='"'&&(g=g.substr(1,g.length-2)),g=b.format.getUrl(g,f));g.charAt(0)!=='"'&&(g='"'+g+'"')}return" "+a+"="+g+" "}),o=o.replace(/\s+(checked|selected|disabled|readonly)(\s+|$)/ig,function(a,d){var b=d.toLowerCase();if(c&&(b.charAt(0)==="."||typeof e[v][b]== -"undefined"))return" ";return" "+b+'="'+b+'" '}),o=b.util.trim(o),(o=o.replace(/\s+/g," "))&&(o=" "+o),d+"<"+m+v+o+w+">"+p):d+"<"+m+v+w+">"+p});b.browser.IE||(a=a.replace(/

\n<\/p>/ig,"

 

"),a=a.replace(/\n<\/p>/ig,"

"));var a=a.replace(/\u200B/g,""),m=b.setting.inlineTags.join("|"),o=function(a){var d=a.replace(RegExp("<("+m+")[^>]*><\\/("+m+")>","ig"),function(a,d,b){return d==b?"":a});a!==d&&(d=o(d));return d};return b.util.trim(o(a))}};b.attr=function(a,d,f){b.browser.IE&& -b.browser.VERSION<8&&d.toLowerCase()=="class"&&(d="className");f=""+f;a.setAttribute(d,f);f===""&&a.removeAttribute(d)};b.addClass=function(a,d){if(typeof a=="object"){var b=a.className;if(b){if((" "+b+" ").indexOf(" "+d+" ")<0)a.className=b+" "+d}else a.className=d}else typeof a=="string"&&(a=/\s+class\s*=/.test(a)?a.replace(/(\s+class=["']?)([^"']*)(["']?[\s>])/,function(a,b,f,c){return(" "+f+" ").indexOf(" "+d+" ")<0?f===""?b+d+c:b+f+" "+d+c:a}):a.substr(0,a.length-1)+' class="'+d+'">');return a}; -b.removeClass=function(a,d){var f=a.className||"",f=" "+f+" ",d=" "+d+" ";if(f.indexOf(d)>=0)f=b.util.trim(f.replace(RegExp(d,"ig"),"")),f===""?(f=a.getAttribute("class")?"class":"className",a.removeAttribute(f)):a.className=f;return a};b.getComputedStyle=function(a,d){var f=a.ownerDocument,c=f.parentWindow||f.defaultView,f=b.util.getJsKey(d),e="";c.getComputedStyle?(c=c.getComputedStyle(a,null),e=c[f]||c.getPropertyValue(d)||a.style[f]):a.currentStyle&&(e=a.currentStyle[f]||a.style[f]);return e}; -b.getCommonAncestor=function(a,d){function f(a){for(;a;){if(a.nodeType==1&&a.tagName.toLowerCase()===d)return a;a=a.parentNode}return null}var c=a.range,e=a.keRange,g=e.startNode,e=e.endNode;if(b.util.inArray(d,["table","td","tr"]))b.browser.IE?c.item?c.item(0).nodeName.toLowerCase()===d&&(g=e=c.item(0)):(g=c.duplicate(),g.collapse(!0),c=c.duplicate(),c.collapse(!1),g=g.parentElement(),e=c.parentElement()):(g=c.cloneRange(),g.collapse(!0),c=c.cloneRange(),c.collapse(!1),g=g.startContainer,e=c.startContainer); -c=f(g);g=f(e);if(c&&g&&c===g)return c;return null};b.queryCommandValue=function(a,d){function f(){var b=a.queryCommandValue(d);typeof b!=="string"&&(b="");return b}var d=d.toLowerCase(),c="";if(d==="fontname")c=f(),c=c.replace(/['"]/g,"");else if(d==="formatblock"){c=f();if(c===""){var e=new b.selection(a),g=b.getCommonAncestor(e,"h1");g||(g=b.getCommonAncestor(e,"h2"));g||(g=b.getCommonAncestor(e,"h3"));g||(g=b.getCommonAncestor(e,"h4"));g||(g=b.getCommonAncestor(e,"p"));if(g)c=g.nodeName}c==="Normal"&& -(c="p")}else d==="fontsize"?(e=new b.selection(a),(g=b.getCommonAncestor(e,"span"))&&(c=b.getComputedStyle(g,"font-size"))):d==="textcolor"?(e=new b.selection(a),(g=b.getCommonAncestor(e,"span"))&&(c=b.getComputedStyle(g,"color")),c=b.util.rgbToHex(c),c===""&&(c="default")):d==="bgcolor"&&(e=new b.selection(a),(g=b.getCommonAncestor(e,"span"))&&(c=b.getComputedStyle(g,"background-color")),c=b.util.rgbToHex(c),c===""&&(c="default"));return c.toLowerCase()};b.util={getDocumentElement:function(a){a= -a||document;return a.compatMode!="CSS1Compat"?a.body:a.documentElement},getDocumentHeight:function(a){a=this.getDocumentElement(a);return Math.max(a.scrollHeight,a.clientHeight)},getDocumentWidth:function(a){a=this.getDocumentElement(a);return Math.max(a.scrollWidth,a.clientWidth)},createTable:function(a){a=b.$$("table",a);a.cellPadding=0;a.cellSpacing=0;a.border=0;return{table:a,cell:a.insertRow(0).insertCell(0)}},loadStyle:function(a){var d=b.$$("link");d.setAttribute("type","text/css");d.setAttribute("rel", -"stylesheet");d.setAttribute("href",a);document.getElementsByTagName("head")[0].appendChild(d)},getAttrList:function(a){for(var d=/\s+(?:([\w\-:]+)|(?:([\w\-:]+)=([\w\-:]+))|(?:([\w\-:]+)="([^"]*)")|(?:([\w\-:]+)='([^']*)'))(?=(?:\s|\/|>)+)/g,b,c,e={};b=d.exec(a);)c=b[1]||b[2]||b[4]||b[6],b=b[1]||(b[2]?b[3]:b[4]?b[5]:b[7]),e[c]=b;return e},inArray:function(a,d){for(var b=0;b0?d[b].charAt(0).toUpperCase()+d[b].substr(1):d[b];return a},arrayToHash:function(a){for(var d={},b=0,c=a.length;b/g,">");return a=a.replace(/"/g,""")},unescape:function(a){a=a.replace(/</g,"<");a=a.replace(/>/g,">");a=a.replace(/"/g,'"');return a=a.replace(/&/g,"&")},getScrollPos:function(){var a,d;b.browser.IE||b.browser.OPERA? -(d=this.getDocumentElement(),a=d.scrollLeft,d=d.scrollTop):(a=window.scrollX,d=window.scrollY);return{x:a,y:d}},getElementPos:function(a){var d=0,b=0;if(a.getBoundingClientRect)b=a.getBoundingClientRect(),a=this.getScrollPos(),d=b.left+a.x,b=b.top+a.y;else{d=a.offsetLeft;b=a.offsetTop;for(a=a.offsetParent;a;)d+=a.offsetLeft,b+=a.offsetTop,a=a.offsetParent}return{x:d,y:b}},getCoords:function(a){a=a||window.event;return{x:a.clientX,y:a.clientY}},setOpacity:function(a,d){typeof a.style.opacity=="undefined"? -a.style.filter=d==100?"":"alpha(opacity="+d+")":a.style.opacity=d==100?"":d/100},getIframeDoc:function(a){return a.contentDocument||a.contentWindow.document},rgbToHex:function(a){function d(a){a=parseInt(a).toString(16);return a.length>1?a:"0"+a}return a.replace(/rgb\s*?\(\s*?(\d+)\s*?,\s*?(\d+)\s*?,\s*?(\d+)\s*?\)/ig,function(a,b,c,e){return"#"+d(b)+d(c)+d(e)})},parseJson:function(a){var d;if(d=/\{[\s\S]*\}|\[[\s\S]*\]/.exec(a))a=d[0];d=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g; -d.lastIndex=0;d.test(a)&&(a=a.replace(d,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)}));if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return eval("("+a+")");throw"JSON parse error";},getParam:function(a,d){return a.match(RegExp("[?&]"+d+"=([^?&]+)","i"))?unescape(RegExp.$1):""},createRange:function(a){return a.body.createTextRange? -a.body.createTextRange():a.createRange()},getNodeType:function(a){return a.nodeType==1&&b.util.inArray(a.tagName.toLowerCase(),b.setting.noEndTags)?88:a.nodeType},inMarquee:function(a){for(var d;a;){d=a.nodeName.toLowerCase();if(d=="marquee"||d=="select")return!0;a=a.parentNode}return!1},moveToElementText:function(a,d){this.inMarquee(d)||a.moveToElementText(d)},getNodeTextLength:function(a){var d=b.util.getNodeType(a);if(d==1)return a.innerHTML.replace(/<.*?>/ig,"").length;else if(d==3)return a.nodeValue.length}, -getNodeStartRange:function(a,d){var c=b.util.createRange(a),e=d.nodeType;if(e==1)return b.util.moveToElementText(c,d),c;else if(e==3){for(var e=0,h=d.previousSibling;h;){if(h.nodeType==1){var g=b.util.createRange(a);b.util.moveToElementText(g,h);c.setEndPoint("StartToEnd",g);c.moveStart("character",e);return c}else h.nodeType==3&&(e+=h.nodeValue.length);h=h.previousSibling}b.util.moveToElementText(c,d.parentNode);c.moveStart("character",e);return c}},removeParent:function(a){if(a.hasChildNodes)for(var d= -a.firstChild;d;){var b=d.nextSibling;a.parentNode.insertBefore(d,a);d=b}a.parentNode.removeChild(a)},pluginLang:function(a,d){b.each(b.lang.plugins[a],function(a,c){var e=b.$("lang."+a,d);e&&(e.parentNode.insertBefore(d.createTextNode(c),e),e.parentNode.removeChild(e))})},drag:function(a,d,c,e){var h=b.g[a];d.onmousedown=function(a){function d(a){if(t){var c=b.util.getCoords(a),f=b.util.getScrollPos(),a=parseInt(c.y-u-p+f.y),c=parseInt(c.x-w-v+f.x);e(n,r,s,q,a,c)}}function j(a){if(t){var d=b.util.getCoords(a, -h.iframeDoc),a=parseInt(x.y+d.y-u-p),d=parseInt(x.x+d.x-w-v);e(n,r,s,q,a,d)}}function k(a){t=!1;m.releaseCapture&&m.releaseCapture();b.event.remove(document,"mousemove",d);b.event.remove(document,"mouseup",k);b.event.remove(h.iframeDoc,"mousemove",j);b.event.remove(h.iframeDoc,"mouseup",k);b.event.remove(document,"selectstart",z);b.event.stop(a);return!1}var m=this,a=a||window.event,o=b.util.getCoords(a),n=parseInt(c.style.top),r=parseInt(c.style.left),s=c.style.width,q=c.style.height;s.match(/%$/)&& -(s=c.offsetWidth+"px");q.match(/%$/)&&(q=c.offsetHeight+"px");var s=parseInt(s),q=parseInt(q),u=o.y,w=o.x,o=b.util.getScrollPos(),p=o.y,v=o.x,t=!0,x=b.util.getElementPos(h.iframe),z=function(){return!1};b.event.add(document,"mousemove",d);b.event.add(document,"mouseup",k);b.event.add(h.iframeDoc,"mousemove",j);b.event.add(h.iframeDoc,"mouseup",k);b.event.add(document,"selectstart",z);m.setCapture&&m.setCapture();b.event.stop(a);return!1}},resize:function(a,d,c,e,h){h=typeof h=="undefined"?!0:h;a= -b.g[a];if(a.container&&(!e||!(parseInt(d)<=a.minWidth||parseInt(c)<=a.minHeight))){if(h)a.container.style.width=d;a.container.style.height=c;d=parseInt(c)-a.toolbarHeight-a.statusbarHeight;if(d>=0)a.iframe.style.height=d+"px",a.newTextarea.style.height=((b.browser.IE&&b.browser.VERSION<8||document.compatMode!="CSS1Compat")&&d>=2?d-2:d)+"px"}},hideLoadingPage:function(a){a=b.g[a].dialogStack;a=a[a.length-1];a.loading.style.display="none";a.iframe.style.display=""},showLoadingPage:function(a){a=b.g[a].dialogStack; -a=a[a.length-1];a.loading.style.display="";a.iframe.style.display="none"},setDefaultPlugin:function(){for(var a=["selectall","justifyleft","justifycenter","justifyright","justifyfull","insertorderedlist","insertunorderedlist","indent","outdent","subscript","superscript","bold","italic","underline","strikethrough"],d={bold:"B",italic:"I",underline:"U"},c=0;c';a=b.g[a].cssPath;typeof a=="string"&&(a=[a]);for(var c=0,e=a.length;c'); -d+="";d+='';d+="";return d},getMediaType:function(a){return a.match(/\.(rm|rmvb)(\?|$)/i)?"rm":a.match(/\.(swf|flv)(\?|$)/i)?"flash":"media"},getMediaImage:function(a,d,c){var e=c.width,h=c.height,d=d||this.getMediaType(c.src),c=this.getMediaEmbed(c),g="";e>0&&(g+="width:"+e+"px;");h>0&&(g+="height:"+h+"px;");a='';return a}, -getMediaEmbed:function(a){var d="]*>\s*$/ig, -""),e=e.replace(/^\s*

\s* \s*<\/p>\s*$/ig,"");return c.filterMode?b.format.getHtml(e,c.htmlTags,c.urlType):b.format.getHtml(e,null,c.urlType)},getData:function(a,d){var f=b.g[a];(d=d===c?f.wyswygMode:d)||this.innerHtml(f.iframeDoc.body,b.util.execSetHtmlHooks(a,f.newTextarea.value));return this.toData(a,f.iframeDoc.body.innerHTML)},getSrcData:function(a){var d=b.g[a];d.wyswygMode||this.innerHtml(d.iframeDoc.body,b.util.execSetHtmlHooks(a,d.newTextarea.value));return d.iframeDoc.body.innerHTML}, -getPureData:function(a){return this.extractText(this.getData(a))},extractText:function(a){a=a.replace(/<(?!img|embed).*?>/ig,"");return a=a.replace(/ /ig," ")},isEmpty:function(a){return this.getPureData(a).replace(/\r\n|\n|\r/,"").replace(/^\s+|\s+$/,"")===""},setData:function(a){var d=b.g[a];if(d.srcTextarea)d.srcTextarea.value=this.getData(a)},focus:function(a){a=b.g[a];a.wyswygMode?a.iframeWin.focus():a.newTextarea.focus()},click:function(a,d){this.focus(a);b.hideMenu(a);b.plugin[d].click(a)}, -selection:function(a){(!b.browser.IE||!b.g[a].keRange)&&this.setSelection(a)},setSelection:function(a){var a=b.g[a],d=new b.selection(a.iframeDoc);if(!b.browser.IE||d.range.item||d.range.parentElement().ownerDocument===a.iframeDoc)a.keSel=d,a.keRange=a.keSel.keRange,a.sel=a.keSel.sel,a.range=a.keSel.range},select:function(a){b.browser.IE&&b.g[a].wyswygMode&&b.g[a].range&&b.g[a].range.select()},execCommand:function(a,d,c){b.util.focus(a);b.util.select(a);try{b.g[a].iframeDoc.execCommand(d,!1,c)}catch(e){}b.toolbar.updateState(a); -b.util.execOnchangeHandler(a)},innerHtml:function(a,d){if(b.browser.IE){a.innerHTML=''+d;var c=b.$("__ke_temp_tag__",a.ownerDocument);c&&c.parentNode.removeChild(c)}else a.innerHTML=d},pasteHtml:function(a,d,c){a=b.g[a];c?d=''+d:d+='';b.browser.IE?a.range.item?a.range.item(0).outerHTML=d:a.range.pasteHTML(d):(a.range.deleteContents(),d=a.range.createContextualFragment(d), -a.range.insertNode(d));d=b.$("__ke_temp_tag__",a.iframeDoc);c=a.iframeDoc.createTextNode("");d.parentNode.replaceChild(c,d);a.keRange.selectNode(c);a.keSel.addRange(a.keRange)},insertHtml:function(a,d){if(d!==""){var c=b.g[a];if(c.wyswygMode&&c.range){d=this.execSetHtmlHooks(a,d);if(b.browser.IE)if(this.select(a),c.range.item)try{c.range.item(0).outerHTML=d}catch(e){var c=c.range.item(0),h=c.parentNode;h.removeChild(c);if(h.nodeName.toLowerCase()!="body")h=h.parentNode;this.innerHtml(h,d+h.innerHTML)}else c.range.pasteHTML('\u200b'+ -d),c=b.$("__ke_temp_tag__",c.iframeDoc),c.parentNode.removeChild(c);else if(b.browser.GECKO){this.execCommand(a,"inserthtml",d);return}else this.pasteHtml(a,d);b.util.execOnchangeHandler(a)}}},setFullHtml:function(a,d){var c=b.g[a];!b.browser.IE&&d===""&&(d="
");d=b.util.execSetHtmlHooks(a,d);this.innerHtml(c.iframeDoc.body,d);if(!c.wyswygMode)c.newTextarea.value=b.util.getData(a,!0);b.util.execOnchangeHandler(a)},selectImageWebkit:function(a,d,c){if(b.browser.WEBKIT&&(d=d.srcElement||d.target, -d.tagName.toLowerCase()=="img"))c&&b.util.selection(a),c=b.g[a].keRange,c.selectNode(d),b.g[a].keSel.addRange(c)},addTabEvent:function(a){var d=b.g[a];b.event.add(d.iframeDoc,"keydown",function(c){if(c.keyCode==9)return d.afterTab&&d.afterTab(a),b.event.stop(c),!1},a)},addContextmenuEvent:function(a){var d=b.g[a];d.contextmenuItems.length!=0&&d.useContextmenu&&b.event.add(d.iframeDoc,"contextmenu",function(c){b.hideMenu(a);b.util.setSelection(a);b.util.selectImageWebkit(a,c,!1);for(var e=0,h=[],g= -0,i=d.contextmenuItems.length;ge&&(e=k)}}for(;h.length>0&&h[0]==="-";)h.shift();for(;h.length>0&&h[h.length-1]==="-";)h.pop();j=null;g=0;for(i=h.length;g0){for(var m=new b.menu({id:a,event:c,type:"contextmenu",width:e}),g=0,i=h.length;g");e=d.keRange.startNode.nextSibling;if(b.browser.IE)e||b.util.pasteHtml(a,"
",!0);else if(b.browser.WEBKIT)if(e){var h=new b.range(d.iframeDoc);h.selectNode(e.parentNode);h.setStart(e,0);h.cloneContents().innerHTML.replace(/<(?!img|embed).*?>/ig,"")===""&&b.util.pasteHtml(a,"
",!0)}else b.util.pasteHtml(a,"
",!0);b.event.stop(c);return!1}}else b.util.inArray(e, -["p","h1","h2","h3","h4","h5","h6","pre","div","li"])||b.util.execCommand(a,"formatblock","

");return!0}},a)}};b.layout={hide:function(a){var d=b.g[a];b.hideMenu(a);for(a=d.dialogStack;a.length>0;)a[a.length-1].hide();d.maskDiv.style.display="none"}};b.hideMenu=function(a){a=b.g[a];a.hideDiv.innerHTML="";a.hideDiv.style.display="none"};b.colorpicker=function(a){var d,c=a.x||0,e=a.y||0,h=a.z||0,g=a.colors||b.setting.colorTable,i=a.doc||document,j=a.onclick,k=(a.selectedColor||"").toLowerCase();d= -b.$$("div");d.className="ke-colorpicker";d.style.top=e+"px";d.style.left=c+"px";d.style.zIndex=h;this.remove=function(){i.body.removeChild(d)};this.getElement=function(){function a(d,c,e){k===c.toLowerCase()&&(e+=" ke-colorpicker-cell-selected");d.className=e;d.title=c||b.lang.noColor;d.onmouseover=function(){this.className=e+" ke-colorpicker-cell-on"};d.onmouseout=function(){this.className=e};d.onclick=function(){j(c)};if(c){var f=b.$$("div");f.className="ke-colorpicker-cell-color";f.style.backgroundColor= -c;d.appendChild(f)}else d.innerHTML=b.lang.noColor}var d=b.$$("table");d.className="ke-colorpicker-table";d.cellPadding=0;d.cellSpacing=0;d.border=0;var c=d.insertRow(0),e=c.insertCell(0);e.colSpan=g[0].length;a(e,"","ke-colorpicker-cell-top");for(var f=0;f0||c>0){var e=b.util.getScrollPos(),j=b.util.getDocumentElement(),e=e.x+j.clientWidth-d-2;g>e&&(g=e)}return{x:g,y:i}}(function(){var c=a.width;this.type=a.type&&a.type=="contextmenu"?a.type:"menu";var e=b.$$("div"); -e.className="ke-"+this.type;e.setAttribute("name",a.cmd);var h=d.call(this,0,0);e.style.top=h.y+"px";e.style.left=h.x+"px";if(a.width)e.style.width=/^\d+$/.test(c)?c+"px":c;b.event.bind(e,"click",function(){},a.id);b.event.bind(e,"mousedown",function(){},a.id);this.div=e}).call(this);this.add=function(a,d,e){var g,i,j=!1;if(e!==c)g=e.height,i=e.iconHtml,j=e.checked;var k=this,e=b.$$("div");e.className="ke-"+k.type+"-item";if(g)e.style.height=g;var m=b.$$("div");m.className="ke-"+this.type+"-left"; -var o=b.$$("div");o.className="ke-"+k.type+"-center";if(g)o.style.height=g;var n=b.$$("div");n.className="ke-"+this.type+"-right";if(g)n.style.lineHeight=g;e.onmouseover=function(){this.className="ke-"+k.type+"-item ke-"+k.type+"-item-on";o.className="ke-"+k.type+"-center ke-"+k.type+"-center-on"};e.onmouseout=function(){this.className="ke-"+k.type+"-item";o.className="ke-"+k.type+"-center"};e.onclick=d;e.appendChild(m);e.appendChild(o);e.appendChild(n);j?b.util.innerHtml(m,''): -i&&b.util.innerHtml(m,i);b.util.innerHtml(n,a);this.append(e)};this.addSeparator=function(){var a=b.$$("div");a.className="ke-"+this.type+"-separator";this.append(a)};this.append=function(a){this.div.appendChild(a)};this.insert=function(a){b.util.innerHtml(this.div,a)};this.hide=function(){b.hideMenu(a.id)};this.show=function(){this.hide();var c=a.id;b.g[c].hideDiv.style.display="";b.g[c].hideDiv.appendChild(this.div);c=d.call(this,this.div.clientWidth,this.div.clientHeight);this.div.style.top=c.y+ -"px";this.div.style.left=c.x+"px"};this.picker=function(d){this.append((new b.colorpicker({colors:b.g[a.id].colorTable,onclick:function(d){b.plugin[a.cmd].exec(a.id,d)},selectedColor:d})).getElement());this.show()}};b.button=function(a){a=a||{};doc=a.doc||document;var d=b.$$("span",doc);d.className="ke-button-common ke-button-outer "+(a.className||"");d.title=a.text;btn=b.$$("input",doc);btn.className="ke-button-common ke-button";btn.type="button";btn.value=a.text||"";if(a.clickFn)btn.onclick=a.clickFn; -d.appendChild(btn);return{span:d,btn:btn}};b.dialog=function(a){function d(){b.util.getDocumentElement();var a=b.util.getScrollPos();l=a.y;h=a.x}function e(){var d=this.width+this.widthMargin,c=this.height+this.heightMargin,f=a.id,h=b.g[f],l=0,o=0;h.dialogAlignType=="page"?(h=b.util.getDocumentElement(),f=b.util.getScrollPos(),l=Math.round(f.x+(h.clientWidth-d)/2),o=Math.round(f.y+(h.clientHeight-c)/2)):(f=b.util.getElementPos(b.g[f].container),h=h.container,l=Math.round(h.clientWidth/2)-Math.round(d/ -2),c=Math.round(h.clientHeight/2)-Math.round(c/2),l=l<0?f.x:f.x+l,o=c<0?f.y:f.y+c);return{x:l<0?0:l,y:o<0?0:o}}this.widthMargin=30;this.heightMargin=100;this.zIndex=19811214;this.width=a.width;this.height=a.height;var l,h;this.beforeHide=a.beforeHide;this.afterHide=a.afterHide;this.beforeShow=a.beforeShow;this.afterShow=a.afterShow;this.ondrag=a.ondrag;this.resize=function(a,d){if(a)this.width=a;if(d)this.height=d;this.hide();this.show()};this.hide=function(){var c=a.id;this.beforeHide&&this.beforeHide(c); -var e=b.g[c].dialogStack;if(e[e.length-1]==this){var f=e.pop().iframe;f.src="javascript:false";f.parentNode.removeChild(f);document.body.removeChild(this.div);if(e.length<1)b.g[c].maskDiv.style.display="none";b.event.remove(window,"resize",d);b.event.remove(window,"scroll",d);this.afterHide&&this.afterHide(c);b.util.focus(c)}};this.show=function(){this.beforeShow&&this.beforeShow(i);var g=this,i=a.id,j=b.$$("div");j.className="ke-dialog";b.event.bind(j,"click",function(){},i);var k=b.g[i].dialogStack; -if(k.length>0)this.zIndex=k[k.length-1].zIndex+1;j.style.zIndex=this.zIndex;k=e.call(this);j.style.top=k.y+"px";j.style.left=k.x+"px";b.g[i].shadowMode?b.addClass(j,"ke-dialog-shadow"):b.addClass(j,"ke-dialog-no-shadow");k=b.$$("div");k.className="ke-dialog-title";k.innerHTML=a.title;var m=b.$$("span");m.className="ke-dialog-close";m.alt=b.lang.close;m.title=b.lang.close;m.onclick=function(){g.hide();b.util.select(i)};k.appendChild(m);d();b.event.add(window,"resize",d);b.event.add(window,"scroll", -d);b.util.drag(i,k,j,function(a,c,b,e,f,k){if(g.ondrag)g.ondrag(i);d();f=a+f;k=c+k;f0&&(c=a[a.length-1]);(a.length==0||d!==c)&&a.push(d)},add:function(a,d){var c=b.g[a],e=b.util.getSrcData(a);c.undoStack.length>0&&Math.abs(e.length-c.undoStack[c.undoStack.length-1].length)0&&(l=c.undoStack.pop());l=b.util.toData(a,l);c.wyswygMode?b.util.innerHtml(c.iframeDoc.body, -b.util.execSetHtmlHooks(a,l)):c.newTextarea.value=l}},redo:function(a){var c=b.g[a];if(c.redoStack.length!=0){var e=b.util.getSrcData(a);this.addStackData(c.undoStack,e);e=c.redoStack.pop();e=b.util.toData(a,e);c.wyswygMode?b.util.innerHtml(c.iframeDoc.body,b.util.execSetHtmlHooks(a,e)):c.newTextarea.value=e}}};b.readonly=function(a,d){var d=d==c?!0:d,e=b.g[a];b.browser.IE?e.iframeDoc.body.contentEditable=d?"false":"true":e.iframeDoc.designMode=d?"off":"on"};b.focus=function(a,c){c=(c||"").toLowerCase(); -if(b.g[a].container&&(b.util.focus(a),c==="end"&&(b.util.setSelection(a),b.g[a].sel))){var e=b.g[a].keSel,l=b.g[a].keRange;l.selectTextNode(b.g[a].iframeDoc.body);l.collapse(!1);e.addRange(l)}};b.blur=function(a){a=b.g[a];if(a.container)if(b.browser.IE){var c=b.$$("input");c.type="text";a.container.appendChild(c);c.focus();a.container.removeChild(c)}else a.wyswygMode?a.iframeWin.blur():a.newTextarea.blur()};b.html=function(a,d){if(d===c)return b.util.getData(a);else b.g[a].container&&(b.util.setFullHtml(a, -d),b.focus(a))};b.text=function(a,d){if(d===c)return d=b.html(a),d=d.replace(/<.*?>/ig,""),d=d.replace(/ /ig," "),d=b.util.trim(d);else b.html(a,b.util.escape(d))};b.insertHtml=function(a,c){b.g[a].container&&(b.g[a].range?(b.focus(a),b.util.selection(a),b.util.insertHtml(a,c)):b.appendHtml(a,c))};b.appendHtml=function(a,c){b.html(a,b.html(a)+c)};b.isEmpty=function(a){return b.util.isEmpty(a)};b.selectedHtml=function(a){var c=b.g[a].range;if(!c)return"";var e="";b.browser.IE?e=c.item?c.item(0).outerHTML: -c.htmlText:(e=b.$$("div",b.g[a].iframeDoc),e.appendChild(c.cloneContents()),e=e.innerHTML);return b.util.toData(a,e)};b.count=function(a,c){c=(c||"html").toLowerCase();if(c==="html")return b.html(a).length;else if(c==="text"){var e=b.util.getPureData(a),e=e.replace(/<(?:img|embed).*?>/ig,"K"),e=e.replace(/\r\n|\n|\r/g,""),e=b.util.trim(e);return e.length}return 0};b.sync=function(a){return b.util.setData(a)};b.remove=function(a,c){var e=b.g[a];if(!e.container)return!1;c=typeof c=="undefined"?0:c; -b.util.setData(a);for(var l=e.container,h=e.eventStack,g=0,i=h.length;g0&&b.g[a].afterDrag&&b.g[a].afterDrag(a)});b.util.drag(a,t,r,function(c,d,e,f,g){b.g[a].resizeMode>0&&(b.util.resize(a,e+"px",f+g+"px",!0,!1),b.g[a].afterDrag&&b.g[a].afterDrag(a))});b.each(b.plugin,function(c,d){d.init&&d.init(a)});b.g[a].getHtmlHooks.push(function(a){a=a.replace(/(<[^>]*)kesrc="([^"]+)"([^>]*>)/ig, -function(a,c,d){a=a.replace(/(\s+(?:href|src)=")[^"]+(")/i,"$1"+d+"$2");return a=a.replace(/\s+kesrc="[^"]+"/i,"")});return a=a.replace(/(<[^>]+\s)ke-(on\w+="[^"]+"[^>]*>)/ig,function(a,c,d){return c+d})});b.g[a].setHtmlHooks.push(function(a){a=a.replace(/(<[^>]*)(href|src)="([^"]+)"([^>]*>)/ig,function(a,c,d,b,e){if(a.match(/\skesrc="[^"]+"/i))return a;return c+d+'="'+b+'" kesrc="'+b+'"'+e});return a=a.replace(/(<[^>]+\s)(on\w+="[^"]+"[^>]*>)/ig,function(a,c,d){return c+"ke-"+d})});b.util.addContextmenuEvent(a); -b.util.addNewlineEvent(a);b.util.addTabEvent(a);b.event.input(y,i,a);b.event.add(y,"mouseup",i,a);b.event.add(document,"mousedown",i,a);b.onchange(a,function(a){if(b.g[a].autoSetDataMode||b.g[a].syncType=="auto")b.util.setData(a),b.g[a].afterSetData&&b.g[a].afterSetData(a);b.g[a].afterChange&&b.g[a].afterChange(a);b.history.add(a,b.g[a].minChangeSize)});if(b.browser.IE)y.body.disabled=!0,b.readonly(a,!1),y.body.removeAttribute("disabled");b.util.setFullHtml(a,k.value);b.history.add(a,0);c>0&&b.util.focus(a); -b.g[a].afterCreate&&b.g[a].afterCreate(a)}};b.onchange=function(a,c){function e(){c(a)}var l=b.g[a];l.onchangeHandlerStack.push(e);b.event.input(l.iframeDoc,e,a);b.event.input(l.newTextarea,e,a);b.event.add(l.iframeDoc,"mouseup",function(){window.setTimeout(function(){c(a)},0)},a)};var e=!0;b.init=function(a){var c=b.g[a.id]=a;c.config={};c.undoStack=[];c.redoStack=[];c.dialogStack=[];c.contextmenuItems=[];c.getHtmlHooks=[];c.setHtmlHooks=[];c.onchangeHandlerStack=[];c.eventStack=[];b.each(b.setting, -function(b,e){c[b]=typeof a[b]=="undefined"?e:a[b];c.config[b]=c[b]});c.loadStyleMode&&e&&(b.util.loadStyle(c.skinsPath+c.skinType+".css"),e=!1)};b.show=function(a){b.init(a);b.event.ready(function(){b.create(a.id)})};if(window.KE===c)window.KE=b;window.KindEditor=b}})(); -(function(c){c.langType="zh_TW";c.lang={source:"\u539f\u59cb\u78bc",undo:"\u5fa9\u539f(Ctrl+Z)",redo:"\u91cd\u8907(Ctrl+Y)",cut:"\u526a\u4e0b(Ctrl+X)",copy:"\u8907\u88fd(Ctrl+C)",paste:"\u8cbc\u4e0a(Ctrl+V)",plainpaste:"\u8cbc\u70ba\u7d14\u6587\u5b57\u683c\u5f0f",wordpaste:"\u81eaWord\u8cbc\u4e0a",selectall:"\u5168\u9078",justifyleft:"\u9760\u5de6\u5c0d\u9f4a",justifycenter:"\u7f6e\u4e2d",justifyright:"\u9760\u53f3\u5c0d\u9f4a",justifyfull:"\u5de6\u53f3\u5c0d\u9f4a",insertorderedlist:"\u7de8\u865f\u6e05\u55ae", -insertunorderedlist:"\u9805\u76ee\u6e05\u55ae",indent:"\u589e\u52a0\u7e2e\u6392",outdent:"\u6e1b\u5c11\u7e2e\u6392",subscript:"\u4e0b\u6a19",superscript:"\u4e0a\u6a19",title:"\u6a19\u984c",fontname:"\u5b57\u9ad4",fontsize:"\u6587\u5b57\u5927\u5c0f",textcolor:"\u6587\u5b57\u984f\u8272",bgcolor:"\u80cc\u666f\u984f\u8272",bold:"\u7c97\u9ad4(Ctrl+B)",italic:"\u659c\u9ad4(Ctrl+I)",underline:"\u5e95\u7dda(Ctrl+U)",strikethrough:"\u522a\u9664\u7dda",removeformat:"\u6e05\u9664\u683c\u5f0f",image:"\u5f71\u50cf", -flash:"\u63d2\u5165Flash",media:"\u63d2\u5165\u591a\u5a92\u9ad4",table:"\u63d2\u5165\u8868\u683c",hr:"\u63d2\u5165\u6c34\u5e73\u7dda",emoticons:"\u63d2\u5165\u8868\u60c5",link:"\u8d85\u9023\u7d50",unlink:"\u79fb\u9664\u8d85\u9023\u7d50",fullscreen:"\u6700\u5927\u5316",about:"\u95dc\u65bc",print:"\u5217\u5370",fileManager:"\u700f\u89bd\u4f3a\u670d\u5668",advtable:"\u8868\u683c",tablecell:"\u5132\u5b58\u683c",yes:"\u78ba\u5b9a",no:"\u53d6\u6d88",close:"\u95dc\u9589",editImage:"\u5f71\u50cf\u5c6c\u6027", -deleteImage:"\u522a\u9664\u5f71\u50cf",editLink:"\u8d85\u9023\u7d50\u5c6c\u6027",deleteLink:"\u79fb\u9664\u8d85\u9023\u7d50",tableprop:"\u8868\u683c\u5c6c\u6027",tablecellprop:"\u5132\u5b58\u683c\u5c6c\u6027",tableinsert:"\u63d2\u5165\u8868\u683c",tabledelete:"\u522a\u9664\u8868\u683c",tablecolinsertleft:"\u5411\u5de6\u63d2\u5165\u5217",tablecolinsertright:"\u5411\u53f3\u63d2\u5165\u5217",tablerowinsertabove:"\u5411\u4e0a\u63d2\u5165\u6b04",tablerowinsertbelow:"\u4e0b\u65b9\u63d2\u5165\u6b04",tablecoldelete:"\u5220\u9664\u5217", -tablerowdelete:"\u5220\u9664\u6b04",noColor:"\u81ea\u52d5",invalidImg:"\u8acb\u8f38\u5165\u6709\u6548\u7684URL\u3002\n\u53ea\u5141\u8a31jpg,gif,bmp,png\u683c\u5f0f\u3002",invalidMedia:"\u8acb\u8f38\u5165\u6709\u6548\u7684URL\u3002\n\u53ea\u5141\u8a31swf,flv,mp3,wav,wma,wmv,mid,avi,mpg,asf,rm,rmvb\u683c\u5f0f\u3002",invalidWidth:"\u5bec\u5ea6\u5fc5\u9808\u662f\u6578\u5b57\u3002",invalidHeight:"\u9ad8\u5ea6\u5fc5\u9808\u662f\u6578\u5b57\u3002",invalidBorder:"\u908a\u6846\u5fc5\u9808\u662f\u6578\u5b57\u3002", -invalidUrl:"\u8acb\u8f38\u5165\u6709\u6548\u7684URL\u3002",invalidRows:"\u6b04\u6578\u662f\u5fc5\u9808\u8f38\u5165\u9805\u76ee\uff0c\u53ea\u5141\u8a31\u8f38\u5165\u5927\u65bc0\u7684\u6578\u5b57\u3002",invalidCols:"\u5217\u6578\u662f\u5fc5\u9808\u8f38\u5165\u9805\u76ee\uff0c\u53ea\u5141\u8a31\u8f38\u5165\u5927\u65bc0\u7684\u6578\u5b57\u3002",invalidPadding:"\u5167\u8ddd\u5fc5\u9808\u662f\u6578\u5b57\u3002",invalidSpacing:"\u9593\u8ddd\u5fc5\u9808\u662f\u6578\u5b57\u3002",invalidBorder:"\u8fb9\u6846\u5fc5\u987b\u4e3a\u6570\u5b57\u3002", -pleaseInput:"\u8acb\u8f38\u5165\u5167\u5bb9\u3002",invalidJson:"\u4f3a\u670d\u5668\u767c\u751f\u6545\u969c\u3002",cutError:"\u60a8\u7684\u700f\u89bd\u5668\u5b89\u5168\u8a2d\u7f6e\u4e0d\u5141\u8a31\u4f7f\u7528\u526a\u4e0b\u64cd\u4f5c\uff0c\u8acb\u4f7f\u7528\u5feb\u6377\u9375(Ctrl+X)\u5b8c\u6210\u3002",copyError:"\u60a8\u7684\u700f\u89bd\u5668\u5b89\u5168\u8a2d\u7f6e\u4e0d\u5141\u8a31\u4f7f\u7528\u526a\u4e0b\u64cd\u4f5c\uff0c\u8acb\u4f7f\u7528\u5feb\u6377\u9375(Ctrl+C)\u5b8c\u6210\u3002",pasteError:"\u60a8\u7684\u700f\u89bd\u5668\u5b89\u5168\u8a2d\u7f6e\u4e0d\u5141\u8a31\u4f7f\u7528\u526a\u4e0b\u64cd\u4f5c\uff0c\u8acb\u4f7f\u7528\u5feb\u6377\u9375(Ctrl+V)\u5b8c\u6210\u3002"}; -var b=c.lang.plugins={};b.about={version:c.version,title:"HTML\u53ef\u8996\u5316\u7de8\u8f2f\u5668"};b.plainpaste={comment:"\u8acb\u4f7f\u7528\u5feb\u6377\u9375(Ctrl+V)\u628a\u5167\u5bb9\u8cbc\u5230\u4e0b\u65b9\u5340\u57df\u88e1\u3002"};b.wordpaste={comment:"\u8acb\u4f7f\u7528\u5feb\u6377\u9375(Ctrl+V)\u628a\u5167\u5bb9\u8cbc\u5230\u4e0b\u65b9\u5340\u57df\u88e1\u3002"};b.link={url:"URL",linkType:"\u6253\u958b\u985e\u578b",newWindow:"\u65b0\u7a97\u53e3",selfWindow:"\u672c\u9801\u7a97\u53e3"};b.flash= -{url:"URL",width:"\u5bec\u5ea6",height:"\u9ad8\u5ea6"};b.media={url:"URL",width:"\u5bec\u5ea6",height:"\u9ad8\u5ea6",autostart:"\u81ea\u52d5\u64ad\u653e"};b.image={remoteImage:"\u5f71\u50cfURL",localImage:"\u4e0a\u50b3\u5f71\u50cf",remoteUrl:"\u5f71\u50cfURL",localUrl:"\u5f71\u50cfURL",size:"\u5f71\u50cf\u5927\u5c0f",width:"\u5bec\u5ea6",height:"\u9ad8\u5ea6",resetSize:"\u539f\u59cb\u5927\u5c0f",align:"\u5c0d\u9f4a\u65b9\u5f0f",defaultAlign:"\u672a\u8a2d\u5b9a",leftAlign:"\u5411\u5de6\u5c0d\u9f4a", -rightAlign:"\u5411\u53f3\u5c0d\u9f4a",imgTitle:"\u5f71\u50cf\u8aaa\u660e",viewServer:"\u700f\u89bd..."};b.file_manager={emptyFolder:"\u7a7a\u6587\u4ef6\u593e",moveup:"\u81f3\u4e0a\u4e00\u7d1a\u6587\u4ef6\u593e",viewType:"\u986f\u793a\u65b9\u5f0f\uff1a",viewImage:"\u7e2e\u7565\u5716",listImage:"\u8a73\u7d30\u4fe1\u606f",orderType:"\u6392\u5e8f\u65b9\u5f0f\uff1a",fileName:"\u540d\u7a31",fileSize:"\u5927\u5c0f",fileType:"\u985e\u578b"};b.advtable={cells:"\u5132\u5b58\u683c\u6578",rows:"\u6b04\u6578", -cols:"\u5217\u6578",size:"\u5927\u5c0f",width:"\u5bec\u5ea6",height:"\u9ad8\u5ea6",percent:"%",px:"px",space:"\u5167\u8ddd\u9593\u8ddd",padding:"\u5167\u8ddd",spacing:"\u9593\u8ddd",align:"\u5c0d\u9f4a\u65b9\u5f0f",textAlign:"\u6c34\u5e73\u5c0d\u9f4a",verticalAlign:"\u5782\u76f4\u5c0d\u9f4a",alignDefault:"\u672a\u8a2d\u5b9a",alignLeft:"\u5411\u5de6\u5c0d\u9f4a",alignCenter:"\u7f6e\u4e2d",alignRight:"\u5411\u53f3\u5c0d\u9f4a",alignTop:"\u9760\u4e0a\u5c0d\u9f4a",alignMiddle:"\u9760\u4e2d\u5c0d\u9f4a", -alignBottom:"\u9760\u4e0b\u5c0d\u9f4a",alignBaseline:"\u57fa\u7dab\u5c0d\u9f4a",border:"\u908a\u6846",borderWidth:"\u908a\u6846",borderColor:"\u984f\u8272",backgroundColor:"\u80cc\u666f\u984f\u8272"};b.title={h1:"\u6a19\u984c 1",h2:"\u6a19\u984c 2",h3:"\u6a19\u984c 3",h4:"\u6a19\u984c 4",p:"\u4e00\u822c"};b.fontname={fontName:{MingLiU:"\u7d30\u660e\u9ad4",PMingLiU:"\u65b0\u7d30\u660e\u9ad4","DFKai-SB":"\u6a19\u6977\u9ad4",SimSun:"\u5b8b\u9ad4",NSimSun:"\u65b0\u5b8b\u9ad4",FangSong:"\u4eff\u5b8b\u9ad4", -Arial:"Arial","Arial Black":"Arial Black","Times New Roman":"Times New Roman","Courier New":"Courier New",Tahoma:"Tahoma",Verdana:"Verdana"}}})(KindEditor); -(function(c,b){c.plugin.about={click:function(b){c.util.selection(b);(new c.dialog({id:b,cmd:"about",file:"about.html",width:300,height:70,loadingMode:!0,title:c.lang.about,noButton:c.lang.close})).show()}};c.plugin.undo={init:function(b){c.event.ctrl(c.g[b].iframeDoc,"Z",function(){c.plugin.undo.click(b);c.util.focus(b)},b);c.event.ctrl(c.g[b].newTextarea,"Z",function(){c.plugin.undo.click(b);c.util.focus(b)},b)},click:function(b){c.history.undo(b);c.util.execOnchangeHandler(b)}};c.plugin.redo={init:function(b){c.event.ctrl(c.g[b].iframeDoc, -"Y",function(){c.plugin.redo.click(b);c.util.focus(b)},b);c.event.ctrl(c.g[b].newTextarea,"Y",function(){c.plugin.redo.click(b);c.util.focus(b)},b)},click:function(b){c.history.redo(b);c.util.execOnchangeHandler(b)}};c.plugin.cut={click:function(b){try{if(!c.g[b].iframeDoc.queryCommandSupported("cut"))throw"e";}catch(a){alert(c.lang.cutError);return}c.util.execCommand(b,"cut",null)}};c.plugin.copy={click:function(b){try{if(!c.g[b].iframeDoc.queryCommandSupported("copy"))throw"e";}catch(a){alert(c.lang.copyError); -return}c.util.execCommand(b,"copy",null)}};c.plugin.paste={click:function(b){try{if(!c.g[b].iframeDoc.queryCommandSupported("paste"))throw"e";}catch(a){alert(c.lang.pasteError);return}c.util.execCommand(b,"paste",null)}};c.plugin.plainpaste={click:function(b){c.util.selection(b);this.dialog=new c.dialog({id:b,cmd:"plainpaste",file:"plainpaste.html",width:450,height:300,loadingMode:!0,title:c.lang.plainpaste,yesButton:c.lang.yes,noButton:c.lang.no});this.dialog.show()},exec:function(b){var a=c.util.getIframeDoc(this.dialog.iframe), -a=c.$("textArea",a).value,a=c.util.escape(a),a=a.replace(/ /g," "),a=c.g[b].newlineTag=="p"?a.replace(/^/,"

").replace(/$/,"

").replace(/\r\n|\n|\r/g,"

"):a.replace(/\r\n|\n|\r/g,"
$&");c.util.insertHtml(b,a);this.dialog.hide();c.util.focus(b)}};c.plugin.wordpaste={click:function(b){c.util.selection(b);this.dialog=new c.dialog({id:b,cmd:"wordpaste",file:"wordpaste.html",width:450,height:300,loadingMode:!0,title:c.lang.wordpaste,yesButton:c.lang.yes,noButton:c.lang.no});this.dialog.show()}, -exec:function(b){var a=c.util.getIframeDoc(this.dialog.iframe),a=c.$("wordIframe",a),a=c.util.getIframeDoc(a).body.innerHTML,a=a.replace(//ig,""),a=a.replace(//ig,""),a=a.replace(/]*>(\n|.)*?<\/style>/ig,""),a=a.replace(/]*>(\n|.)*?<\/script>/ig,""),a=a.replace(/]+>(\n|.)*?<\/w:[^>]+>/ig,""),a=a.replace(/(\n|.)*?<\/xml>/ig,""),a=a.replace(/\r\n|\n|\r/ig,""),a=c.util.execGetHtmlHooks(b,a),a=c.format.getHtml(a,c.g[b].htmlTags,c.g[b].urlType);c.util.insertHtml(b, -a);this.dialog.hide();c.util.focus(b)}};c.plugin.fullscreen={click:function(b){var a=c.g[b],d=this,f=function(){var b=c.util.getDocumentElement();a.width=b.clientWidth+"px";a.height=b.clientHeight-(c.util.inArray("-",a.items)?4:6)+"px"},l="",h=function(){if(d.isSelected){var g=c.util.getDocumentElement(),g=[g.clientWidth,g.clientHeight].join("");l!=g&&(l=g,f(),c.util.resize(b,a.width,a.height))}};if(this.isSelected)this.isSelected=!1,c.util.setData(b),c.remove(b,1),a.width=this.width,a.height=this.height, -c.create(b,2),document.body.style.height="",document.body.style.overflow="",document.body.parentNode.style.overflow="",window.scrollTo(this.scrollPos.x,this.scrollPos.y),c.event.remove(window,"resize",h),a.resizeMode=a.config.resizeMode,c.toolbar.unselect(b,"fullscreen");else{this.isSelected=!0;this.width=a.container.style.width;this.height=a.container.style.height;c.util.setData(b);c.remove(b,2);this.scrollPos=c.util.getScrollPos();window.scrollTo(0,0);document.body.style.height=0;document.body.style.overflow= -"hidden";document.body.parentNode.style.overflow="hidden";f();c.create(b,1);var g=a.container;g.style.position="absolute";g.style.left=0;g.style.top=0;g.style.zIndex=19811211;c.event.add(window,"resize",h);a.resizeMode=0;c.toolbar.select(b,"fullscreen")}}};c.plugin.bgcolor={click:function(b){c.util.selection(b);var a=c.queryCommandValue(c.g[b].iframeDoc,"bgcolor");this.menu=new c.menu({id:b,cmd:"bgcolor"});this.menu.picker(a)},exec:function(b,a){var d=new c.cmd(b);a==""?d.remove({span:[".background-color"]}): -d.wrap("span",[{".background-color":a}]);c.util.execOnchangeHandler(b);this.menu.hide();c.util.focus(b)}};c.plugin.fontname={click:function(b){var a=c.lang.plugins.fontname.fontName;c.util.selection(b);var d=new c.menu({id:b,cmd:"fontname",width:150}),f=c.queryCommandValue(c.g[b].iframeDoc,"fontname");c.each(a,function(a,h){d.add(''+h+"",function(){c.plugin.fontname.exec(b,a)},{checked:f===a.toLowerCase()||f===h.toLowerCase()})});d.show(); -this.menu=d},exec:function(b,a){(new c.cmd(b)).wrap("span",[{".font-family":a}]);c.util.execOnchangeHandler(b);this.menu.hide();c.util.focus(b)}};c.plugin.fontsize={click:function(b){var a=["9px","10px","12px","14px","16px","18px","24px","32px"];c.util.selection(b);for(var d=c.queryCommandValue(c.g[b].iframeDoc,"fontsize"),f=new c.menu({id:b,cmd:"fontsize",width:120}),l=0,h=a.length;l'+g+"",function(a){return function(){c.plugin.fontsize.exec(b, -a)}}(g),{height:parseInt(g)+12+"px",checked:d===g})}f.show();this.menu=f},exec:function(b,a){(new c.cmd(b)).wrap("span",[{".font-size":a}]);c.util.execOnchangeHandler(b);this.menu.hide();c.util.focus(b)}};c.plugin.hr={click:function(b){c.util.selection(b);c.util.insertHtml(b,"


");c.util.focus(b)}};c.plugin.print={click:function(b){c.util.selection(b);c.g[b].iframeWin.print()}};c.plugin.removeformat={click:function(b){c.util.selection(b);for(var a=new c.cmd(b),d={"*":["class","style"]},f=0,l= -c.g[b].inlineTags.length;f'+g+"",function(){c.plugin.title.exec(b,"<"+a+">")},{height:d[a]+12+ -"px",checked:f===a.toLowerCase()||f===g.toLowerCase()})});l.show();this.menu=l},exec:function(b,a){c.util.select(b);c.util.execCommand(b,"formatblock",a);this.menu.hide();c.util.focus(b)}};c.plugin.emoticons={click:function(e){function a(a){var b=c.$$("table");if(r)b.onmouseover=function(){r.style.display="block"},b.onmouseout=function(){r.style.display="none"};b.className="ke-plugin-emoticons-table";b.cellPadding=0;b.cellSpacing=0;b.border=0;for(var a=(a-1)*i+g,d=0;dk?(r.style.left=0,r.style.right=""):(r.style.left="",r.style.right=0);s.src=o+c+".gif";this.className="ke-plugin-emoticons-cell ke-plugin-emoticons-cell-on"}}(m,a):function(){this.className="ke-plugin-emoticons-cell ke-plugin-emoticons-cell-on"};n.onmouseout=function(){this.className="ke-plugin-emoticons-cell"};n.onclick=function(a){return function(){f.exec(e,a);return!1}}(a); -var q=c.$$("span");q.className="ke-plugin-emoticons-img";q.style.backgroundPosition="-"+24*a+"px 0px";n.appendChild(q);a++}return b}function d(b){for(var e=1;e<=j;e++){if(b!==e){var f=c.$$("a");f.href="javascript:;";f.innerHTML="["+e+"]";f.onclick=function(c){return function(){n.removeChild(q);var b=a(c);n.insertBefore(b,u);q=b;u.innerHTML="";d(c);return!1}}(e);u.appendChild(f)}else u.appendChild(document.createTextNode("["+e+"]"));u.appendChild(document.createTextNode(" "))}}var f=this,l=5,h=9,g= -0,i=l*h,j=Math.ceil(135/i),k=Math.floor(h/2),m=c.g[e],o=m.pluginsPath+"emoticons/",m=m.allowPreviewEmoticons===b?!0:m.allowPreviewEmoticons;c.util.selection(e);var n=c.$$("div");n.className="ke-plugin-emoticons-wrapper";var r,s;if(m)r=c.$$("div"),r.className="ke-plugin-emoticons-preview",r.style.right=0,s=c.$$("img"),s.className="ke-reset",s.src=o+"0.gif",s.border=0,r.appendChild(s),n.appendChild(r);var q=a(1);n.appendChild(q);var u=c.$$("div");u.className="ke-plugin-emoticons-page";n.appendChild(u); -d(1);m=new c.menu({id:e,cmd:"emoticons"});m.append(n);m.show();this.menu=m},exec:function(b,a){var d=c.g[b].pluginsPath+"emoticons/"+a+".gif";c.util.insertHtml(b,'');this.menu.hide();c.util.focus(b)}};c.plugin.flash={init:function(b){c.g[b].getHtmlHooks.push(function(a){return a.replace(/]*class="?ke-flash"?[^>]*>/ig,function(a){var b=a.match(/style="[^"]*;?\s*width:\s*(\d+)/i)?RegExp.$1:0,e=a.match(/style="[^"]*;?\s*height:\s*(\d+)/i)?RegExp.$1:0,b= -b||(a.match(/width="([^"]+)"/i)?RegExp.$1:0),e=e||(a.match(/height="([^"]+)"/i)?RegExp.$1:0);if(a.match(/kesrctag="([^"]+)"/i))return a=c.util.getAttrList(unescape(RegExp.$1)),a.width=b||a.width||0,a.height=e||a.height||0,a.kesrc=a.src,c.util.getMediaEmbed(a)})});c.g[b].setHtmlHooks.push(function(a){return a.replace(/]*type="application\/x-shockwave-flash"[^>]*>(?:<\/embed>)?/ig,function(a){var f=a.match(/\s+src="([^"]+)"/i)?RegExp.$1:"";if(a.match(/\s+kesrc="([^"]+)"/i))f=RegExp.$1;var l= -a.match(/\s+width="([^"]+)"/i)?RegExp.$1:0,h=a.match(/\s+height="([^"]+)"/i)?RegExp.$1:0,a=c.util.getAttrList(a);a.src=f;a.width=l;a.height=h;return c.util.getMediaImage(b,"flash",a)})})},click:function(b){c.util.selection(b);this.dialog=new c.dialog({id:b,cmd:"flash",file:"flash.html",width:400,height:140,loadingMode:!0,title:c.lang.flash,yesButton:c.lang.yes,noButton:c.lang.no});this.dialog.show()},check:function(b,a,d,f){b=c.util.getIframeDoc(this.dialog.iframe);if(!a.match(/^.{3,}$/))return alert(c.lang.invalidUrl), -c.$("url",b).focus(),!1;if(!d.match(/^\d*$/))return alert(c.lang.invalidWidth),c.$("width",b).focus(),!1;if(!f.match(/^\d*$/))return alert(c.lang.invalidHeight),c.$("height",b).focus(),!1;return!0},exec:function(b){var a=c.util.getIframeDoc(this.dialog.iframe),d=c.$("url",a).value,f=c.$("width",a).value,a=c.$("height",a).value;if(!this.check(b,d,f,a))return!1;d=c.util.getMediaImage(b,"flash",{src:d,type:c.g[b].mediaTypes.flash,width:f,height:a,quality:"high"});c.util.insertHtml(b,d);this.dialog.hide(); -c.util.focus(b)}};c.plugin.image={getSelectedNode:function(b){var b=c.g[b],a=b.keRange.startNode,d=b.keRange.endNode;if((c.browser.WEBKIT||b.keSel.isControl)&&a.nodeType==1&&a.tagName.toLowerCase()=="img"&&a==d&&!a.className.match(/^ke-\w+/i))return a},init:function(b){var a=this,b=c.g[b];b.contextmenuItems.push({text:c.lang.editImage,click:function(b,e){c.util.select(b);e.hide();a.click(b)},cond:function(b){return a.getSelectedNode(b)},options:{width:"150px",iconHtml:''}}); -b.contextmenuItems.push({text:c.lang.deleteImage,click:function(b,e){c.util.select(b);e.hide();var l=a.getSelectedNode(b);l.parentNode.removeChild(l);c.util.execOnchangeHandler(b)},cond:function(b){return a.getSelectedNode(b)},options:{width:"150px"}});b.contextmenuItems.push("-")},click:function(b){c.util.selection(b);this.dialog=new c.dialog({id:b,cmd:"image",file:"image/image.html",width:400,height:220,loadingMode:!0,title:c.lang.image,yesButton:c.lang.yes,noButton:c.lang.no});this.dialog.show()}, -check:function(){var b=c.util.getIframeDoc(this.dialog.iframe),a=c.$("type",b).value,d=c.$("imgWidth",b).value,f=c.$("imgHeight",b).value;c.$("imgTitle",b);a=a==2?c.$("imgFile",b):c.$("url",b);if(!a.value.match(/\.(jpg|jpeg|gif|bmp|png)(\s|\?|$)/i))return alert(c.lang.invalidImg),a.focus(),!1;if(!d.match(/^\d*$/))return alert(c.lang.invalidWidth),c.$("imgWidth",b).focus(),!1;if(!f.match(/^\d*$/))return alert(c.lang.invalidHeight),c.$("imgHeight",b).focus(),!1;return!0},exec:function(b){for(var a= -this,d=c.util.getIframeDoc(this.dialog.iframe),f=c.$("type",d).value,l=c.$("imgWidth",d).value,h=c.$("imgHeight",d).value,g=c.$("imgTitle",d).value,i=d.getElementsByName("align"),j="",k=0,m=i.length;k0&&(a+='width="'+f+'" ');l>0&&(a+='height="'+l+'" ');d&&(a+='title="'+d+'" ');g&&(a+='align="'+g+'" ');a+='alt="'+d+'" ';h&&(a+='border="'+h+'" ');a+="/>";c.util.insertHtml(b, -a);this.dialog.hide();c.util.focus(b)}};c.plugin.link={getSelectedNode:function(b){return c.getCommonAncestor(c.g[b].keSel,"a")},init:function(b){var a=this;c.g[b].contextmenuItems.push({text:c.lang.editLink,click:function(b,e){c.util.select(b);e.hide();a.click(b)},cond:function(b){return a.getSelectedNode(b)},options:{width:"150px",iconHtml:''}})},click:function(b){c.util.selection(b);this.dialog=new c.dialog({id:b,cmd:"link",file:"link/link.html", -width:400,height:90,loadingMode:!0,title:c.lang.link,yesButton:c.lang.yes,noButton:c.lang.no});this.dialog.show()},exec:function(b){var a=c.g[b];c.util.select(b);var d=a.keRange,f=d.startNode,l=d.endNode,h=a.iframeDoc,g=c.util.getIframeDoc(this.dialog.iframe),i=c.$("hyperLink",g).value,j=c.$("linkType",g).value;if(!i.match(/.+/)||i.match(/^\w+:\/\/\/?$/))return alert(c.lang.invalidUrl),c.$("hyperLink",g).focus(),!1;for(g=d.getParentElement();g;){if(g.tagName.toLowerCase()=="a"||g.tagName.toLowerCase()== -"body")break;g=g.parentNode}var g=g.parentNode,l=c.browser.IE?!!a.range.item:f.nodeType==1&&f===l&&f.nodeName.toLowerCase()!="br",k=!l;l||(k=c.browser.IE?a.range.text==="":a.range.toString()==="");if(k||c.util.isEmpty(b))a='
",c.util.insertHtml(b,a);else{h.execCommand("createlink",!1,"__ke_temp_url__");for(var g=g.getElementsByTagName("a"),k=0,m=g.length;k'}});c.g[b].contextmenuItems.push("-")},click:function(b){var a=c.g[b],d=a.iframeDoc;c.util.selection(b);var f=a.keRange,l=f.startNode,f=f.endNode,f=l.nodeType==1&&l===f,h=!f;f||(h=c.browser.IE?a.range.text==="":a.range.toString()==="");if(h){h=c.plugin.link.getSelectedNode(b);if(!h)return;f=a.keRange;f.selectTextNode(h); -a.keSel.addRange(f);c.util.select(b);d.execCommand("unlink",!1,null);if(c.browser.WEBKIT&&l.tagName.toLowerCase()=="img")d=l.parentNode,d.tagName.toLowerCase()=="a"&&(c.util.removeParent(d),a.keSel.addRange(f))}else d.execCommand("unlink",!1,null);c.util.execOnchangeHandler(b);c.toolbar.updateState(b);c.util.focus(b)}};c.plugin.media={init:function(b){var a={};c.each(c.g[b].mediaTypes,function(b,c){a[c]=b});c.g[b].getHtmlHooks.push(function(a){return a.replace(/]*class="?ke-\w+"?[^>]*>/ig, -function(a){var b=a.match(/style="[^"]*;?\s*width:\s*(\d+)/i)?RegExp.$1:0,d=a.match(/style="[^"]*;?\s*height:\s*(\d+)/i)?RegExp.$1:0,b=b||(a.match(/width="([^"]+)"/i)?RegExp.$1:0),d=d||(a.match(/height="([^"]+)"/i)?RegExp.$1:0);if(a.match(/\s+kesrctag="([^"]+)"/i))return a=c.util.getAttrList(unescape(RegExp.$1)),a.width=b||a.width||0,a.height=d||a.height||0,a.kesrc=a.src,c.util.getMediaEmbed(a)})});c.g[b].setHtmlHooks.push(function(d){return d.replace(/]*type="([^"]+)"[^>]*>(?:<\/embed>)?/ig, -function(d,l){if(typeof a[l]=="undefined")return d;var h=d.match(/\s+src="([^"]+)"/i)?RegExp.$1:"";if(d.match(/\s+kesrc="([^"]+)"/i))h=RegExp.$1;var g=d.match(/\s+width="([^"]+)"/i)?RegExp.$1:0,i=d.match(/\s+height="([^"]+)"/i)?RegExp.$1:0,j=c.util.getAttrList(d);j.src=h;j.width=g;j.height=i;return c.util.getMediaImage(b,"",j)})})},click:function(b){c.util.selection(b);this.dialog=new c.dialog({id:b,cmd:"media",file:"media.html",width:400,height:170,loadingMode:!0,title:c.lang.media,yesButton:c.lang.yes, -noButton:c.lang.no});this.dialog.show()},check:function(b,a,d,f){b=c.util.getIframeDoc(this.dialog.iframe);if(!a.match(/^.{3,}\.(swf|flv|mp3|wav|wma|wmv|mid|avi|mpg|mpeg|asf|rm|rmvb)(\?|$)/i))return alert(c.lang.invalidMedia),c.$("url",b).focus(),!1;if(!d.match(/^\d*$/))return alert(c.lang.invalidWidth),c.$("width",b).focus(),!1;if(!f.match(/^\d*$/))return alert(c.lang.invalidHeight),c.$("height",b).focus(),!1;return!0},exec:function(b){var a=c.util.getIframeDoc(this.dialog.iframe),d=c.$("url",a).value, -f=c.$("width",a).value,l=c.$("height",a).value;if(!this.check(b,d,f,l))return!1;a=c.$("autostart",a).checked?"true":"false";d=c.util.getMediaImage(b,"",{src:d,type:c.g[b].mediaTypes[c.util.getMediaType(d)],width:f,height:l,autostart:a,loop:"true"});c.util.insertHtml(b,d);this.dialog.hide();c.util.focus(b)}};c.plugin.advtable={getSelectedTable:function(b){return c.getCommonAncestor(c.g[b].keSel,"table")},getSelectedRow:function(b){return c.getCommonAncestor(c.g[b].keSel,"tr")},getSelectedCell:function(b){return c.getCommonAncestor(c.g[b].keSel, -"td")},tableprop:function(b){this.click(b)},tablecellprop:function(b){var a=this;c.util.selection(b);var d=new c.dialog({id:b,cmd:"advtable",file:"advtable/cell.html",width:420,height:150,loadingMode:!0,title:c.lang.tablecell,yesButton:c.lang.yes,noButton:c.lang.no,yesClickFn:function(b){var e=c.util.getIframeDoc(d.iframe),h=c.$("width",e),g=c.$("height",e),i=c.$("widthType",e),j=c.$("heightType",e),k=c.$("textAlign",e),m=c.$("verticalAlign",e),o=c.$("border",e),n=c.$("borderColor",e),r=c.$("backgroundColor", -e),e=h.value,s=g.value,i=i.value,j=j.value,k=k.value,m=m.value,q=o.value,n=n.innerHTML,r=r.innerHTML;if(!e.match(/^\d*$/))return alert(c.lang.invalidWidth),h.focus(),!1;if(!s.match(/^\d*$/))return alert(c.lang.invalidHeight),g.focus(),!1;if(!q.match(/^\d*$/))return alert(c.lang.invalidBorder),o.focus(),!1;h=a.getSelectedCell(b);h.style.width=e!==""?e+i:"";h.style.height=s!==""?s+j:"";h.style.backgroundColor=r;h.style.textAlign=k;h.style.verticalAlign=m;h.style.borderWidth=q;h.style.borderStyle=q!== -""?"solid":"";h.style.borderColor=n;c.util.execOnchangeHandler(b);d.hide();c.util.focus(b)}});d.show()},tableinsert:function(b){this.click(b,"insert")},tabledelete:function(b){b=this.getSelectedTable(b);b.parentNode.removeChild(b)},tablecolinsert:function(b,a){for(var c=this.getSelectedTable(b),f=this.getSelectedCell(b).cellIndex+a,l=0,h=c.rows.length;l'}})}c.g[e].contextmenuItems.push("-");c.g[e].setHtmlHooks.push(function(a){return a.replace(/]*)>/ig,function(a,b){if(b.match(/\s+border=["']?(\d*)["']?/ig)){var d=RegExp.$1;return b.indexOf("ke-zeroborder")<0&&(d===""||d==="0")?c.addClass(a,"ke-zeroborder"):a}else return c.addClass(a,"ke-zeroborder")})})},click:function(b,a){a=a||"default"; -c.util.selection(b);this.dialog=new c.dialog({id:b,cmd:"advtable",file:"advtable/advtable.html?mode="+a,width:420,height:220,loadingMode:!0,title:c.lang.advtable,yesButton:c.lang.yes,noButton:c.lang.no});this.dialog.show()},exec:function(b){var a=c.util.getIframeDoc(this.dialog.iframe),d=c.$("mode",a),f=c.$("rows",a),l=c.$("cols",a),h=c.$("width",a),g=c.$("height",a),i=c.$("widthType",a),j=c.$("heightType",a),k=c.$("padding",a),m=c.$("spacing",a),o=c.$("align",a),n=c.$("border",a),r=c.$("borderColor", -a),s=c.$("backgroundColor",a),a=f.value,q=l.value,u=h.value,w=g.value,i=i.value,p=j.value,j=k.value,v=m.value,o=o.value,t=n.value,r=r.innerHTML,s=s.innerHTML;if(a==""||a==0||!a.match(/^\d*$/))return alert(c.lang.invalidRows),f.focus(),!1;if(q==""||q==0||!q.match(/^\d*$/))return alert(c.lang.invalidCols),l.focus(),!1;if(!u.match(/^\d*$/))return alert(c.lang.invalidWidth),h.focus(),!1;if(!w.match(/^\d*$/))return alert(c.lang.invalidHeight),g.focus(),!1;if(!j.match(/^\d*$/))return alert(c.lang.invalidPadding), -k.focus(),!1;if(!v.match(/^\d*$/))return alert(c.lang.invalidSpacing),m.focus(),!1;if(!t.match(/^\d*$/))return alert(c.lang.invalidBorder),n.focus(),!1;if(d.value==="update")a=this.getSelectedTable(b),a.style.width=u!==""?u+i:"",a.style.height=w!==""?w+p:"",a.style.backgroundColor=s,c.attr(a,"width",""),c.attr(a,"height",""),c.attr(a,"bgColor",""),c.attr(a,"cellPadding",j),c.attr(a,"cellSpacing",v),c.attr(a,"align",o),t===""||t==="0"?c.addClass(a,"ke-zeroborder"):c.removeClass(a,"ke-zeroborder"), -c.attr(a,"border",t),c.attr(a,"borderColor",r),c.util.execOnchangeHandler(b);else{d="";u!==""&&(d+="width:"+u+i+";");w!==""&&(d+="height:"+w+p+";");s!==""&&(d+="background-color:"+s+";");u="";for(d=0;d "; -u+=""}u+="";c.util.insertHtml(b,u)}this.dialog.hide();c.util.focus(b)}}})(KindEditor); diff --git a/www/js/jquery/kindeditor/license.txt b/www/js/jquery/kindeditor/license.txt deleted file mode 100644 index eb5d5841d5..0000000000 --- a/www/js/jquery/kindeditor/license.txt +++ /dev/null @@ -1,5 +0,0 @@ -Open Source License: -http://www.kindsoft.net/lgpl_license.html - -Commercial License -http://www.kindsoft.net/kindeditor_commercial_license.html diff --git a/www/js/jquery/kindeditor/plugins/about.html b/www/js/jquery/kindeditor/plugins/about.html deleted file mode 100644 index aa68632647..0000000000 --- a/www/js/jquery/kindeditor/plugins/about.html +++ /dev/null @@ -1,52 +0,0 @@ - - - - - About - - - - - - - diff --git a/www/js/jquery/kindeditor/plugins/advtable/advtable.html b/www/js/jquery/kindeditor/plugins/advtable/advtable.html deleted file mode 100644 index 34bf7e1b45..0000000000 --- a/www/js/jquery/kindeditor/plugins/advtable/advtable.html +++ /dev/null @@ -1,235 +0,0 @@ - - - - - Table - - - - - -
- -
    -
  • - -   -   -
  • -
  • - -   - -   - -
  • -
  • - -   -   -
  • -
  • - - -
  • -
  • - -   -   -
  • -
  • - - -
  • -
-
- - \ No newline at end of file diff --git a/www/js/jquery/kindeditor/plugins/advtable/cell.html b/www/js/jquery/kindeditor/plugins/advtable/cell.html deleted file mode 100644 index a24dcb690f..0000000000 --- a/www/js/jquery/kindeditor/plugins/advtable/cell.html +++ /dev/null @@ -1,201 +0,0 @@ - - - - - Cell - - - - - -
-
    -
  • - -   - -   - -
  • -
  • - -   -   -
  • -
  • - -   -   -
  • -
  • - - -
  • -
-
- - \ No newline at end of file diff --git a/www/js/jquery/kindeditor/plugins/emoticons/0.gif b/www/js/jquery/kindeditor/plugins/emoticons/0.gif deleted file mode 100644 index 5be27cb0ec..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/0.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/1.gif b/www/js/jquery/kindeditor/plugins/emoticons/1.gif deleted file mode 100644 index a2644a9ee8..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/1.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/10.gif b/www/js/jquery/kindeditor/plugins/emoticons/10.gif deleted file mode 100644 index 905c15be3c..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/10.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/100.gif b/www/js/jquery/kindeditor/plugins/emoticons/100.gif deleted file mode 100644 index 92ad35d2bf..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/100.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/101.gif b/www/js/jquery/kindeditor/plugins/emoticons/101.gif deleted file mode 100644 index 1f27663ae0..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/101.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/102.gif b/www/js/jquery/kindeditor/plugins/emoticons/102.gif deleted file mode 100644 index 748ded1ac4..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/102.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/103.gif b/www/js/jquery/kindeditor/plugins/emoticons/103.gif deleted file mode 100644 index be9eaa0544..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/103.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/104.gif b/www/js/jquery/kindeditor/plugins/emoticons/104.gif deleted file mode 100644 index d7c2066316..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/104.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/105.gif b/www/js/jquery/kindeditor/plugins/emoticons/105.gif deleted file mode 100644 index 2f353cadc8..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/105.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/106.gif b/www/js/jquery/kindeditor/plugins/emoticons/106.gif deleted file mode 100644 index 51935349b4..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/106.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/107.gif b/www/js/jquery/kindeditor/plugins/emoticons/107.gif deleted file mode 100644 index 70d38d3bb2..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/107.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/108.gif b/www/js/jquery/kindeditor/plugins/emoticons/108.gif deleted file mode 100644 index 749d500830..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/108.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/109.gif b/www/js/jquery/kindeditor/plugins/emoticons/109.gif deleted file mode 100644 index 6f57d5642f..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/109.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/11.gif b/www/js/jquery/kindeditor/plugins/emoticons/11.gif deleted file mode 100644 index b512dd5da1..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/11.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/110.gif b/www/js/jquery/kindeditor/plugins/emoticons/110.gif deleted file mode 100644 index e253abcff6..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/110.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/111.gif b/www/js/jquery/kindeditor/plugins/emoticons/111.gif deleted file mode 100644 index 0c567233d0..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/111.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/112.gif b/www/js/jquery/kindeditor/plugins/emoticons/112.gif deleted file mode 100644 index c8ddce88a4..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/112.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/113.gif b/www/js/jquery/kindeditor/plugins/emoticons/113.gif deleted file mode 100644 index 272710453f..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/113.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/114.gif b/www/js/jquery/kindeditor/plugins/emoticons/114.gif deleted file mode 100644 index 53918e2ae6..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/114.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/115.gif b/www/js/jquery/kindeditor/plugins/emoticons/115.gif deleted file mode 100644 index 4db3369733..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/115.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/116.gif b/www/js/jquery/kindeditor/plugins/emoticons/116.gif deleted file mode 100644 index 57326bd2fd..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/116.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/117.gif b/www/js/jquery/kindeditor/plugins/emoticons/117.gif deleted file mode 100644 index 14611b6ef9..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/117.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/118.gif b/www/js/jquery/kindeditor/plugins/emoticons/118.gif deleted file mode 100644 index 8c255004ce..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/118.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/119.gif b/www/js/jquery/kindeditor/plugins/emoticons/119.gif deleted file mode 100644 index 65bb468b95..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/119.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/12.gif b/www/js/jquery/kindeditor/plugins/emoticons/12.gif deleted file mode 100644 index 547529cab6..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/12.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/120.gif b/www/js/jquery/kindeditor/plugins/emoticons/120.gif deleted file mode 100644 index 5ce77c05f0..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/120.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/121.gif b/www/js/jquery/kindeditor/plugins/emoticons/121.gif deleted file mode 100644 index a021abaa6d..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/121.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/122.gif b/www/js/jquery/kindeditor/plugins/emoticons/122.gif deleted file mode 100644 index 9a79e111c4..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/122.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/123.gif b/www/js/jquery/kindeditor/plugins/emoticons/123.gif deleted file mode 100644 index b9480be254..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/123.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/124.gif b/www/js/jquery/kindeditor/plugins/emoticons/124.gif deleted file mode 100644 index 7fed477280..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/124.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/125.gif b/www/js/jquery/kindeditor/plugins/emoticons/125.gif deleted file mode 100644 index e2c3c11c92..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/125.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/126.gif b/www/js/jquery/kindeditor/plugins/emoticons/126.gif deleted file mode 100644 index 24105c9888..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/126.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/127.gif b/www/js/jquery/kindeditor/plugins/emoticons/127.gif deleted file mode 100644 index 0cead364a0..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/127.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/128.gif b/www/js/jquery/kindeditor/plugins/emoticons/128.gif deleted file mode 100644 index 3185861818..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/128.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/129.gif b/www/js/jquery/kindeditor/plugins/emoticons/129.gif deleted file mode 100644 index ffd7c6ba33..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/129.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/13.gif b/www/js/jquery/kindeditor/plugins/emoticons/13.gif deleted file mode 100644 index 34753001ef..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/13.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/130.gif b/www/js/jquery/kindeditor/plugins/emoticons/130.gif deleted file mode 100644 index d828e3da10..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/130.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/131.gif b/www/js/jquery/kindeditor/plugins/emoticons/131.gif deleted file mode 100644 index dcb096f0da..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/131.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/132.gif b/www/js/jquery/kindeditor/plugins/emoticons/132.gif deleted file mode 100644 index 1b272a690b..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/132.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/133.gif b/www/js/jquery/kindeditor/plugins/emoticons/133.gif deleted file mode 100644 index 0d0e864264..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/133.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/134.gif b/www/js/jquery/kindeditor/plugins/emoticons/134.gif deleted file mode 100644 index cf48356e33..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/134.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/14.gif b/www/js/jquery/kindeditor/plugins/emoticons/14.gif deleted file mode 100644 index 6a788f8be0..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/14.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/15.gif b/www/js/jquery/kindeditor/plugins/emoticons/15.gif deleted file mode 100644 index debab8ed08..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/15.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/16.gif b/www/js/jquery/kindeditor/plugins/emoticons/16.gif deleted file mode 100644 index ed5d29f428..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/16.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/17.gif b/www/js/jquery/kindeditor/plugins/emoticons/17.gif deleted file mode 100644 index 85886fef9d..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/17.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/18.gif b/www/js/jquery/kindeditor/plugins/emoticons/18.gif deleted file mode 100644 index b6af2189c8..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/18.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/19.gif b/www/js/jquery/kindeditor/plugins/emoticons/19.gif deleted file mode 100644 index e045ff2af2..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/19.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/2.gif b/www/js/jquery/kindeditor/plugins/emoticons/2.gif deleted file mode 100644 index 40cfda436f..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/2.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/20.gif b/www/js/jquery/kindeditor/plugins/emoticons/20.gif deleted file mode 100644 index efd650f559..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/20.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/21.gif b/www/js/jquery/kindeditor/plugins/emoticons/21.gif deleted file mode 100644 index cb8cf6d2a1..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/21.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/22.gif b/www/js/jquery/kindeditor/plugins/emoticons/22.gif deleted file mode 100644 index 96b04df865..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/22.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/23.gif b/www/js/jquery/kindeditor/plugins/emoticons/23.gif deleted file mode 100644 index 96516b8d93..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/23.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/24.gif b/www/js/jquery/kindeditor/plugins/emoticons/24.gif deleted file mode 100644 index 5f925c7bc1..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/24.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/25.gif b/www/js/jquery/kindeditor/plugins/emoticons/25.gif deleted file mode 100644 index 97f8b1afab..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/25.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/26.gif b/www/js/jquery/kindeditor/plugins/emoticons/26.gif deleted file mode 100644 index a7cded7312..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/26.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/27.gif b/www/js/jquery/kindeditor/plugins/emoticons/27.gif deleted file mode 100644 index bb468901e4..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/27.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/28.gif b/www/js/jquery/kindeditor/plugins/emoticons/28.gif deleted file mode 100644 index f59dd58257..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/28.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/29.gif b/www/js/jquery/kindeditor/plugins/emoticons/29.gif deleted file mode 100644 index 3c5227e8e7..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/29.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/3.gif b/www/js/jquery/kindeditor/plugins/emoticons/3.gif deleted file mode 100644 index 6d6f762996..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/3.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/30.gif b/www/js/jquery/kindeditor/plugins/emoticons/30.gif deleted file mode 100644 index e24a1801c4..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/30.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/31.gif b/www/js/jquery/kindeditor/plugins/emoticons/31.gif deleted file mode 100644 index 073e743ce5..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/31.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/32.gif b/www/js/jquery/kindeditor/plugins/emoticons/32.gif deleted file mode 100644 index 772eff23e3..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/32.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/33.gif b/www/js/jquery/kindeditor/plugins/emoticons/33.gif deleted file mode 100644 index 217c1c5810..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/33.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/34.gif b/www/js/jquery/kindeditor/plugins/emoticons/34.gif deleted file mode 100644 index e9d42131a9..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/34.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/35.gif b/www/js/jquery/kindeditor/plugins/emoticons/35.gif deleted file mode 100644 index d6da2c33ab..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/35.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/36.gif b/www/js/jquery/kindeditor/plugins/emoticons/36.gif deleted file mode 100644 index c1e6ac913b..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/36.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/37.gif b/www/js/jquery/kindeditor/plugins/emoticons/37.gif deleted file mode 100644 index 92efec6ae1..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/37.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/38.gif b/www/js/jquery/kindeditor/plugins/emoticons/38.gif deleted file mode 100644 index 489f0f948d..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/38.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/39.gif b/www/js/jquery/kindeditor/plugins/emoticons/39.gif deleted file mode 100644 index 734f6d82eb..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/39.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/4.gif b/www/js/jquery/kindeditor/plugins/emoticons/4.gif deleted file mode 100644 index 6ccdaa2c9c..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/4.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/40.gif b/www/js/jquery/kindeditor/plugins/emoticons/40.gif deleted file mode 100644 index 24a8eb6914..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/40.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/41.gif b/www/js/jquery/kindeditor/plugins/emoticons/41.gif deleted file mode 100644 index 99139e1d1e..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/41.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/42.gif b/www/js/jquery/kindeditor/plugins/emoticons/42.gif deleted file mode 100644 index f60897e40b..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/42.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/43.gif b/www/js/jquery/kindeditor/plugins/emoticons/43.gif deleted file mode 100644 index 4350491002..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/43.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/44.gif b/www/js/jquery/kindeditor/plugins/emoticons/44.gif deleted file mode 100644 index 650d3dd840..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/44.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/45.gif b/www/js/jquery/kindeditor/plugins/emoticons/45.gif deleted file mode 100644 index 5c8e071815..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/45.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/46.gif b/www/js/jquery/kindeditor/plugins/emoticons/46.gif deleted file mode 100644 index f3cb0742d7..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/46.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/47.gif b/www/js/jquery/kindeditor/plugins/emoticons/47.gif deleted file mode 100644 index 5b3057ab7e..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/47.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/48.gif b/www/js/jquery/kindeditor/plugins/emoticons/48.gif deleted file mode 100644 index 27a30c15c7..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/48.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/49.gif b/www/js/jquery/kindeditor/plugins/emoticons/49.gif deleted file mode 100644 index dcfa48af01..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/49.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/5.gif b/www/js/jquery/kindeditor/plugins/emoticons/5.gif deleted file mode 100644 index ab0b81ba4d..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/5.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/50.gif b/www/js/jquery/kindeditor/plugins/emoticons/50.gif deleted file mode 100644 index 029cf0feab..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/50.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/51.gif b/www/js/jquery/kindeditor/plugins/emoticons/51.gif deleted file mode 100644 index 69f183f043..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/51.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/52.gif b/www/js/jquery/kindeditor/plugins/emoticons/52.gif deleted file mode 100644 index d41e8aab1e..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/52.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/53.gif b/www/js/jquery/kindeditor/plugins/emoticons/53.gif deleted file mode 100644 index 56352dde46..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/53.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/54.gif b/www/js/jquery/kindeditor/plugins/emoticons/54.gif deleted file mode 100644 index b28d8481ea..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/54.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/55.gif b/www/js/jquery/kindeditor/plugins/emoticons/55.gif deleted file mode 100644 index e18da84c6e..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/55.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/56.gif b/www/js/jquery/kindeditor/plugins/emoticons/56.gif deleted file mode 100644 index edf96f0a63..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/56.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/57.gif b/www/js/jquery/kindeditor/plugins/emoticons/57.gif deleted file mode 100644 index 3f0e2b9af4..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/57.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/58.gif b/www/js/jquery/kindeditor/plugins/emoticons/58.gif deleted file mode 100644 index 47b1aaa34e..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/58.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/59.gif b/www/js/jquery/kindeditor/plugins/emoticons/59.gif deleted file mode 100644 index 918288b007..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/59.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/6.gif b/www/js/jquery/kindeditor/plugins/emoticons/6.gif deleted file mode 100644 index ceab12242b..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/6.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/60.gif b/www/js/jquery/kindeditor/plugins/emoticons/60.gif deleted file mode 100644 index 66d21136de..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/60.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/61.gif b/www/js/jquery/kindeditor/plugins/emoticons/61.gif deleted file mode 100644 index 034933ec3e..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/61.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/62.gif b/www/js/jquery/kindeditor/plugins/emoticons/62.gif deleted file mode 100644 index 8d5c4fd39a..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/62.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/63.gif b/www/js/jquery/kindeditor/plugins/emoticons/63.gif deleted file mode 100644 index d58fcf671b..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/63.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/64.gif b/www/js/jquery/kindeditor/plugins/emoticons/64.gif deleted file mode 100644 index c4e00bdfda..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/64.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/65.gif b/www/js/jquery/kindeditor/plugins/emoticons/65.gif deleted file mode 100644 index da23bfaac7..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/65.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/66.gif b/www/js/jquery/kindeditor/plugins/emoticons/66.gif deleted file mode 100644 index 310ec65f10..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/66.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/67.gif b/www/js/jquery/kindeditor/plugins/emoticons/67.gif deleted file mode 100644 index 51761ba456..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/67.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/68.gif b/www/js/jquery/kindeditor/plugins/emoticons/68.gif deleted file mode 100644 index 345cb43910..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/68.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/69.gif b/www/js/jquery/kindeditor/plugins/emoticons/69.gif deleted file mode 100644 index e0f28a0736..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/69.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/7.gif b/www/js/jquery/kindeditor/plugins/emoticons/7.gif deleted file mode 100644 index 2f45399984..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/7.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/70.gif b/www/js/jquery/kindeditor/plugins/emoticons/70.gif deleted file mode 100644 index 24284cf39d..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/70.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/71.gif b/www/js/jquery/kindeditor/plugins/emoticons/71.gif deleted file mode 100644 index a0ccf2edf5..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/71.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/72.gif b/www/js/jquery/kindeditor/plugins/emoticons/72.gif deleted file mode 100644 index 7e113eead2..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/72.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/73.gif b/www/js/jquery/kindeditor/plugins/emoticons/73.gif deleted file mode 100644 index c0293c3ab0..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/73.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/74.gif b/www/js/jquery/kindeditor/plugins/emoticons/74.gif deleted file mode 100644 index 1c52bde9cc..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/74.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/75.gif b/www/js/jquery/kindeditor/plugins/emoticons/75.gif deleted file mode 100644 index 9cb9aa7961..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/75.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/76.gif b/www/js/jquery/kindeditor/plugins/emoticons/76.gif deleted file mode 100644 index 27019f8ff8..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/76.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/77.gif b/www/js/jquery/kindeditor/plugins/emoticons/77.gif deleted file mode 100644 index 8f882f5317..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/77.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/78.gif b/www/js/jquery/kindeditor/plugins/emoticons/78.gif deleted file mode 100644 index d0d0856045..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/78.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/79.gif b/www/js/jquery/kindeditor/plugins/emoticons/79.gif deleted file mode 100644 index 61652a7168..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/79.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/8.gif b/www/js/jquery/kindeditor/plugins/emoticons/8.gif deleted file mode 100644 index f6c883447c..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/8.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/80.gif b/www/js/jquery/kindeditor/plugins/emoticons/80.gif deleted file mode 100644 index 9a779364b3..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/80.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/81.gif b/www/js/jquery/kindeditor/plugins/emoticons/81.gif deleted file mode 100644 index 2329101a71..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/81.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/82.gif b/www/js/jquery/kindeditor/plugins/emoticons/82.gif deleted file mode 100644 index 644748a96c..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/82.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/83.gif b/www/js/jquery/kindeditor/plugins/emoticons/83.gif deleted file mode 100644 index fbf275ba50..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/83.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/84.gif b/www/js/jquery/kindeditor/plugins/emoticons/84.gif deleted file mode 100644 index 076f0c65cf..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/84.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/85.gif b/www/js/jquery/kindeditor/plugins/emoticons/85.gif deleted file mode 100644 index d254af4421..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/85.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/86.gif b/www/js/jquery/kindeditor/plugins/emoticons/86.gif deleted file mode 100644 index 8f09d336a3..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/86.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/87.gif b/www/js/jquery/kindeditor/plugins/emoticons/87.gif deleted file mode 100644 index df70756f0c..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/87.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/88.gif b/www/js/jquery/kindeditor/plugins/emoticons/88.gif deleted file mode 100644 index 4d8b15e7e6..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/88.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/89.gif b/www/js/jquery/kindeditor/plugins/emoticons/89.gif deleted file mode 100644 index 05726dc4ab..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/89.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/9.gif b/www/js/jquery/kindeditor/plugins/emoticons/9.gif deleted file mode 100644 index c2d8450752..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/9.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/90.gif b/www/js/jquery/kindeditor/plugins/emoticons/90.gif deleted file mode 100644 index adaf20e8bb..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/90.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/91.gif b/www/js/jquery/kindeditor/plugins/emoticons/91.gif deleted file mode 100644 index 608d0ad87c..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/91.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/92.gif b/www/js/jquery/kindeditor/plugins/emoticons/92.gif deleted file mode 100644 index b909e16a89..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/92.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/93.gif b/www/js/jquery/kindeditor/plugins/emoticons/93.gif deleted file mode 100644 index 7f71a8c94c..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/93.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/94.gif b/www/js/jquery/kindeditor/plugins/emoticons/94.gif deleted file mode 100644 index 4f26d7d734..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/94.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/95.gif b/www/js/jquery/kindeditor/plugins/emoticons/95.gif deleted file mode 100644 index 5ef6d3823c..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/95.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/96.gif b/www/js/jquery/kindeditor/plugins/emoticons/96.gif deleted file mode 100644 index 2b709e15ba..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/96.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/97.gif b/www/js/jquery/kindeditor/plugins/emoticons/97.gif deleted file mode 100644 index cf29be87c8..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/97.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/98.gif b/www/js/jquery/kindeditor/plugins/emoticons/98.gif deleted file mode 100644 index c70e7d339f..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/98.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/99.gif b/www/js/jquery/kindeditor/plugins/emoticons/99.gif deleted file mode 100644 index 05c18635da..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/99.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/emoticons/qq.gif b/www/js/jquery/kindeditor/plugins/emoticons/qq.gif deleted file mode 100644 index b8c444b5a2..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/emoticons/qq.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/file_manager/file_manager.css b/www/js/jquery/kindeditor/plugins/file_manager/file_manager.css deleted file mode 100644 index 8fb692b751..0000000000 --- a/www/js/jquery/kindeditor/plugins/file_manager/file_manager.css +++ /dev/null @@ -1,64 +0,0 @@ -body { - font-size:12px; - font-family: "sans serif",tahoma,verdana,helvetica; - margin: 0; - padding: 0; - background-color:#F0F0EE; - overflow: hidden; -} -td { - font-size:12px; -} -.top { - background-color:#F0F0EE; -} -.file-view { - overflow: scroll; - background-color:#FFFFFF; - width: 500px; - height: 370px; -} -.file-view-area { - float:left; - border: 1px solid #FFFFFF; - margin: 5px; -} -.file-view-area .photo { - width: 100px; - height: 100px; - margin: 3px; -} -.file-view-area .name { - margin: 2px; - text-align: center; - overflow: hidden; - width: 100px; - height: 16px; -} -.selected { - border: 1px solid #888888; - background-color: #F0F0EE; -} -.noselected { - border: 1px solid #DDDDDD; - background-color: #FFFFFF; -} -.file-list { - overflow: scroll; - background-color:#FFFFFF; - width: 500px; - height: 370px; -} -.file-list-table { - width: 95%; -} -.file-list-table .name { - width: 55%; -} -.file-list-table .size { - width: 15%; -} -.file-list-table .datetime { - width: 30%; - text-align: center; -} \ No newline at end of file diff --git a/www/js/jquery/kindeditor/plugins/file_manager/file_manager.html b/www/js/jquery/kindeditor/plugins/file_manager/file_manager.html deleted file mode 100644 index 49fc70a708..0000000000 --- a/www/js/jquery/kindeditor/plugins/file_manager/file_manager.html +++ /dev/null @@ -1,30 +0,0 @@ - - - - - File Manager - - - - - - - - - - - - - - -
- - - - - -
-
-
- - diff --git a/www/js/jquery/kindeditor/plugins/file_manager/file_manager.js b/www/js/jquery/kindeditor/plugins/file_manager/file_manager.js deleted file mode 100644 index 17bfa0c14e..0000000000 --- a/www/js/jquery/kindeditor/plugins/file_manager/file_manager.js +++ /dev/null @@ -1,218 +0,0 @@ -var JSON_URL = '../../php/file_manager_json.php'; - -var KE = parent.KindEditor; -var id = KE.util.getParam(location.href, 'id'); -var fileManagerJson = (typeof KE.g[id].fileManagerJson == 'undefined') ? JSON_URL : KE.g[id].fileManagerJson; -var lang = KE.lang.plugins.file_manager; -KE.event.ready(function() { - var moveupImg = KE.$('moveupImg', document); - var moveupLink = KE.$('moveup', document); - var viewType = KE.$('viewType', document); - var orderType = KE.$('orderType', document); - var listTable = KE.$('listTable', document); - var viewTable = KE.$('viewTable', document); - var listDiv = KE.$('listDiv', document); - var viewDiv = KE.$('viewDiv', document); - moveupImg.alt = moveupImg.title = lang.moveup; - viewType.options[0] = new Option(lang.viewImage, 'VIEW'); - viewType.options[1] = new Option(lang.listImage, 'LIST'); - orderType.options[0] = new Option(lang.fileName, 'NAME'); - orderType.options[1] = new Option(lang.fileSize, 'SIZE'); - orderType.options[2] = new Option(lang.fileType, 'TYPE'); - var changeType = function(type) { - if (type == 'VIEW') { - listDiv.style.display = 'none'; - viewDiv.style.display = ''; - } else { - listDiv.style.display = ''; - viewDiv.style.display = 'none'; - } - }; - var insertLink = function(url) { - var stack = KE.g[id].dialogStack; - if (stack.length > 1) { - var parentDialog = stack[stack.length - 2]; - var dialogDoc = KE.util.getIframeDoc(parentDialog.iframe); - KE.$('url', dialogDoc).value = url; - var currentDialog = stack[stack.length - 1]; - currentDialog.hide(); - return true; - } else { - return false; - } - } - var insertImage = function(url, title) { - if (!insertLink(url)) { - KE.util.insertHtml(id, '' + title + ''); - } - }; - var insertFile = function(url, title) { - if (!insertLink(url)) { - KE.util.insertHtml(id, '' + title + ''); - } - }; - var makeFileTitle = function (filename, filesize, datetime) { - var title = filename + ' (' + Math.ceil(filesize / 1024) + 'KB, ' + datetime + ')'; - return title; - }; - var bindTitle = function (el, data) { - if (data.is_dir) { - el.title = data.filename; - } else { - el.title = makeFileTitle(data.filename, data.filesize, data.datetime); - } - }; - var bindEvent = function (el, result, data, createFunc) { - var fileUrl = result.current_url + data.filename; - fileUrl = KE.format.getUrl(fileUrl, 'absolute'); - if (data.is_dir) { - el.onclick = (function (url, path, title) { - return function () { - reloadPage(path, orderType.value, createFunc); - } - })(fileUrl, escape(result.current_dir_path + data.filename + '/'), data.filename); - } else if (data.is_photo) { - el.onclick = (function (url, title) { - return function () { - insertImage(url, title); - } - })(fileUrl, data.filename); - } else { - el.onclick = (function (url, title) { - return function () { - insertFile(url, title); - } - })(fileUrl, data.filename); - } - }; - var createCommon = function(result, createFunc) { - if (result.current_dir_path) { - moveupLink.onclick = function () { - reloadPage(result.moveup_dir_path, orderType.value, createFunc); - }; - } else { - moveupLink.onclick = null; - } - var onchangeFunc = function() { - changeType(viewType.value); - if (viewType.value == 'VIEW') reloadPage(result.current_dir_path, orderType.value, createView); - else reloadPage(result.current_dir_path, orderType.value, createList); - }; - viewType.onchange = onchangeFunc; - orderType.onchange = onchangeFunc; - }; - var createList = function(responseText) { - listDiv.innerHTML = ''; - var result = KE.util.parseJson(responseText); - createCommon(result, createList); - var table = KE.$$('table', document); - table.className = 'file-list-table'; - table.cellPadding = 0; - table.cellSpacing = 2; - table.border = 0; - listDiv.appendChild(table); - var fileList = result.file_list; - for (var i = 0, len = fileList.length; i < len; i++) { - var data = fileList[i]; - var row = table.insertRow(i); - row.onmouseover = function () { this.className = 'selected'; }; - row.onmouseout = function () { this.className = 'noselected'; }; - var cell0 = row.insertCell(0); - cell0.className = 'name'; - var iconName = data.is_dir ? 'folder-16.gif' : 'file-16.gif'; - var img = KE.$$('img', document); - img.src = './images/' + iconName; - img.width = 16; - img.height = 16; - img.align = 'absmiddle'; - img.alt = data.filename; - cell0.appendChild(img); - cell0.appendChild(document.createTextNode(' ' + data.filename)); - if (!data.is_dir || data.has_file) { - row.style.cursor = 'pointer'; - img.title = data.filename; - cell0.title = data.filename; - bindEvent(cell0, result, data, createList); - } else { - img.title = lang.emptyFolder; - cell0.title = lang.emptyFolder; - } - var cell1 = row.insertCell(1); - cell1.className = 'size'; - cell1.innerHTML = data.is_dir ? '-' : Math.ceil(data.filesize / 1024) + 'KB'; - var cell2 = row.insertCell(2); - cell2.className = 'datetime'; - cell2.innerHTML = data.datetime; - } - }; - var createView = function(responseText) { - viewDiv.innerHTML = ''; - var result = KE.util.parseJson(responseText); - createCommon(result, createView); - var fileList = result.file_list; - for (var i = 0, len = fileList.length; i < len; i++) { - var data = fileList[i]; - var div = KE.$$('div', document); - div.className = 'file-view-area'; - viewDiv.appendChild(div); - var tableObj = KE.util.createTable(document); - var table = tableObj.table; - table.className = 'photo noselected'; - table.onmouseover = function () { this.className = 'photo selected'; }; - table.onmouseout = function () { this.className = 'photo noselected'; }; - var cell = tableObj.cell; - cell.valign = 'middle'; - cell.align = 'center'; - var fileUrl = result.current_url + data.filename; - var iconUrl = data.is_dir ? './images/folder-64.gif' : (data.is_photo ? fileUrl : './images/file-64.gif'); - var img = KE.$$('img', document); - img.src = iconUrl; - img.width = data.is_dir ? 64 : 80; - img.height = data.is_dir ? 64 : 80; - img.alt = data.filename; - if (!data.is_dir || data.has_file) { - table.style.cursor = 'pointer'; - bindTitle(img, data); - bindTitle(table, data); - bindEvent(table, result, data, createView); - } else { - img.title = lang.emptyFolder; - table.title = lang.emptyFolder; - } - cell.appendChild(img); - div.appendChild(table); - var titleDiv = KE.$$('div', document); - titleDiv.className = 'name'; - titleDiv.title = data.filename; - titleDiv.innerHTML = data.filename; - div.appendChild(titleDiv); - } - }; - var httpRequest = function (param, func) { - KE.util.showLoadingPage(id); - var req = window.ActiveXObject ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest(); - var url = fileManagerJson; - if (!url.match(/\?/)) { - url += '?'; - param = param.substr(1); - } - url += param + '&' + (new Date()).getTime(); - req.open('GET', url, true); - req.onreadystatechange = function () { - if (req.readyState == 4) { - if(req.status == 200) { - func(req.responseText); - KE.util.pluginLang('file_manager', document); - KE.util.hideLoadingPage(id); - } - } - }; - req.send(null); - }; - var reloadPage = function (path, order, func) { - httpRequest('&path=' + path + '&order=' + order, func); - }; - changeType('VIEW'); - viewType.value = 'VIEW'; - reloadPage('', orderType.value, createView); -}, window, document); \ No newline at end of file diff --git a/www/js/jquery/kindeditor/plugins/file_manager/images/file-16.gif b/www/js/jquery/kindeditor/plugins/file_manager/images/file-16.gif deleted file mode 100644 index 2cf6e47ede..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/file_manager/images/file-16.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/file_manager/images/file-64.gif b/www/js/jquery/kindeditor/plugins/file_manager/images/file-64.gif deleted file mode 100644 index aa838d1b3f..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/file_manager/images/file-64.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/file_manager/images/folder-16.gif b/www/js/jquery/kindeditor/plugins/file_manager/images/folder-16.gif deleted file mode 100644 index 850b5a350d..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/file_manager/images/folder-16.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/file_manager/images/folder-64.gif b/www/js/jquery/kindeditor/plugins/file_manager/images/folder-64.gif deleted file mode 100644 index 11d3f17dfe..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/file_manager/images/folder-64.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/file_manager/images/go-up.gif b/www/js/jquery/kindeditor/plugins/file_manager/images/go-up.gif deleted file mode 100644 index 92ae23d76b..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/file_manager/images/go-up.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/flash.html b/www/js/jquery/kindeditor/plugins/flash.html deleted file mode 100644 index fa4846108c..0000000000 --- a/www/js/jquery/kindeditor/plugins/flash.html +++ /dev/null @@ -1,69 +0,0 @@ - - - - - Flash - - - - - -
-
    -
  • - - -
  • -
  • -   - px -
  • -
  • -   - px -
  • -
-
- - diff --git a/www/js/jquery/kindeditor/plugins/image/image.html b/www/js/jquery/kindeditor/plugins/image/image.html deleted file mode 100644 index 1acb1ec180..0000000000 --- a/www/js/jquery/kindeditor/plugins/image/image.html +++ /dev/null @@ -1,305 +0,0 @@ - - - - - Image - - - - - -
-
-
    -
  • -
  • -
-
- - -
- - - -
    -
  • - - -
  • -
  • -   -   -   - -
  • -
  • -   - - - -
  • -
  • - - -
  • -
-
-
- - diff --git a/www/js/jquery/kindeditor/plugins/image/images/align_left.gif b/www/js/jquery/kindeditor/plugins/image/images/align_left.gif deleted file mode 100644 index ab17f56797..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/image/images/align_left.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/image/images/align_right.gif b/www/js/jquery/kindeditor/plugins/image/images/align_right.gif deleted file mode 100644 index e8ebe6a636..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/image/images/align_right.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/image/images/align_top.gif b/www/js/jquery/kindeditor/plugins/image/images/align_top.gif deleted file mode 100644 index d8826a5bce..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/image/images/align_top.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/image/images/refresh.gif b/www/js/jquery/kindeditor/plugins/image/images/refresh.gif deleted file mode 100644 index f3ffc5cedb..0000000000 Binary files a/www/js/jquery/kindeditor/plugins/image/images/refresh.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/plugins/link/link.html b/www/js/jquery/kindeditor/plugins/link/link.html deleted file mode 100644 index 928f63bb01..0000000000 --- a/www/js/jquery/kindeditor/plugins/link/link.html +++ /dev/null @@ -1,82 +0,0 @@ - - - - - Link - - - - - -
-
    -
  • - - -
  • -
  • -   - -
  • -
-
- - \ No newline at end of file diff --git a/www/js/jquery/kindeditor/plugins/media.html b/www/js/jquery/kindeditor/plugins/media.html deleted file mode 100644 index f731be1711..0000000000 --- a/www/js/jquery/kindeditor/plugins/media.html +++ /dev/null @@ -1,73 +0,0 @@ - - - - - Media - - - - - -
-
    -
  • - - -
  • -
  • -   - px -
  • -
  • -   - px -
  • -
  • -   - -
  • -
-
- - diff --git a/www/js/jquery/kindeditor/plugins/plainpaste.html b/www/js/jquery/kindeditor/plugins/plainpaste.html deleted file mode 100644 index b571f1ab2b..0000000000 --- a/www/js/jquery/kindeditor/plugins/plainpaste.html +++ /dev/null @@ -1,44 +0,0 @@ - - - - - PlainPaste - - - - -
- - - diff --git a/www/js/jquery/kindeditor/plugins/wordpaste.html b/www/js/jquery/kindeditor/plugins/wordpaste.html deleted file mode 100644 index a658ef385a..0000000000 --- a/www/js/jquery/kindeditor/plugins/wordpaste.html +++ /dev/null @@ -1,50 +0,0 @@ - - - - - WordPaste - - - - -
- - - diff --git a/www/js/jquery/kindeditor/skins/common/blank.gif b/www/js/jquery/kindeditor/skins/common/blank.gif deleted file mode 100644 index 5bfd67a2d6..0000000000 Binary files a/www/js/jquery/kindeditor/skins/common/blank.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/skins/common/editor.css b/www/js/jquery/kindeditor/skins/common/editor.css deleted file mode 100644 index 78e6127f81..0000000000 --- a/www/js/jquery/kindeditor/skins/common/editor.css +++ /dev/null @@ -1,47 +0,0 @@ -html { - margin: 0; - padding: 0; -} -body { - margin: 0; - padding: 5px; - background-color: #FFFFFF; - color: #000000; - font: 12px/1.5 "sans serif",tahoma,verdana,helvetica; -} -td { - font: 12px/1.5 "sans serif",tahoma,verdana,helvetica; -} -p { - margin: 0; -} -.ke-flash { - border:1px solid #AAAAAA; - background-image:url(./flash.gif); - background-position:center center; - background-repeat:no-repeat; - width:100px; - height:100px; -} -.ke-rm { - border:1px solid #AAAAAA; - background-image:url(./rm.gif); - background-position:center center; - background-repeat:no-repeat; - width:100px; - height:100px; -} -.ke-media { - border:1px solid #AAAAAA; - background-image:url(./media.gif); - background-position:center center; - background-repeat:no-repeat; - width:100px; - height:100px; -} -table { - border-collapse:collapse; -} -table.ke-zeroborder td { - border:1px dotted #AAAAAA; -} diff --git a/www/js/jquery/kindeditor/skins/common/flash.gif b/www/js/jquery/kindeditor/skins/common/flash.gif deleted file mode 100644 index 2cb12b2842..0000000000 Binary files a/www/js/jquery/kindeditor/skins/common/flash.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/skins/common/loading.gif b/www/js/jquery/kindeditor/skins/common/loading.gif deleted file mode 100644 index e192ca895c..0000000000 Binary files a/www/js/jquery/kindeditor/skins/common/loading.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/skins/common/media.gif b/www/js/jquery/kindeditor/skins/common/media.gif deleted file mode 100644 index e1c0e30afb..0000000000 Binary files a/www/js/jquery/kindeditor/skins/common/media.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/skins/common/rm.gif b/www/js/jquery/kindeditor/skins/common/rm.gif deleted file mode 100644 index d013d551de..0000000000 Binary files a/www/js/jquery/kindeditor/skins/common/rm.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/skins/default.css b/www/js/jquery/kindeditor/skins/default.css deleted file mode 100644 index 01a12c1531..0000000000 --- a/www/js/jquery/kindeditor/skins/default.css +++ /dev/null @@ -1,908 +0,0 @@ -.ke-inline-block { - display: -moz-inline-stack; - display: inline-block; - vertical-align: middle; - zoom: 1; - *display: inline; -} -.ke-clearfix { - zoom: 1; -} -.ke-clearfix:after { - content: "."; - display: block; - clear: both; - font-size: 0; - height: 0; - line-height: 0; - visibility: hidden; -} -.ke-text { - font-size: 12px; - font-family: "sans serif",tahoma,verdana,helvetica; -} -.ke-icon-source { - background-position: 0px 0px; - width: 16px; - height: 16px; -} -.ke-icon-print { - background-position: 0px -32px; - width: 16px; - height: 16px; -} -.ke-icon-undo { - background-position: 0px -48px; - width: 16px; - height: 16px; -} -.ke-icon-redo { - background-position: 0px -64px; - width: 16px; - height: 16px; -} -.ke-icon-cut { - background-position: 0px -80px; - width: 16px; - height: 16px; -} -.ke-icon-copy { - background-position: 0px -96px; - width: 16px; - height: 16px; -} -.ke-icon-paste { - background-position: 0px -112px; - width: 16px; - height: 16px; -} -.ke-icon-selectall { - background-position: 0px -128px; - width: 16px; - height: 16px; -} -.ke-icon-justifyleft { - background-position: 0px -144px; - width: 16px; - height: 16px; -} -.ke-icon-justifycenter { - background-position: 0px -160px; - width: 16px; - height: 16px; -} -.ke-icon-justifyright { - background-position: 0px -176px; - width: 16px; - height: 16px; -} -.ke-icon-justifyfull { - background-position: 0px -192px; - width: 16px; - height: 16px; -} -.ke-icon-insertorderedlist { - background-position: 0px -208px; - width: 16px; - height: 16px; -} -.ke-icon-insertunorderedlist { - background-position: 0px -224px; - width: 16px; - height: 16px; -} -.ke-icon-indent { - background-position: 0px -240px; - width: 16px; - height: 16px; -} -.ke-icon-outdent { - background-position: 0px -256px; - width: 16px; - height: 16px; -} -.ke-icon-subscript { - background-position: 0px -272px; - width: 16px; - height: 16px; -} -.ke-icon-superscript { - background-position: 0px -288px; - width: 16px; - height: 16px; -} -.ke-icon-title { - background-position: 0px -336px; - width: 25px; - height: 16px; -} -.ke-icon-fontname { - background-position: 0px -352px; - width: 21px; - height: 16px; -} -.ke-icon-fontsize { - background-position: 0px -368px; - width: 23px; - height: 16px; -} -.ke-icon-textcolor { - background-position: 0px -384px; - width: 20px; - height: 16px; -} -.ke-icon-bgcolor { - background-position: 0px -400px; - width: 20px; - height: 16px; -} -.ke-icon-bold { - background-position: 0px -416px; - width: 16px; - height: 16px; -} -.ke-icon-italic { - background-position: 0px -432px; - width: 16px; - height: 16px; -} -.ke-icon-underline { - background-position: 0px -448px; - width: 16px; - height: 16px; -} -.ke-icon-strikethrough { - background-position: 0px -464px; - width: 16px; - height: 16px; -} -.ke-icon-removeformat { - background-position: 0px -480px; - width: 16px; - height: 16px; -} -.ke-icon-image { - background-position: 0px -496px; - width: 16px; - height: 16px; -} -.ke-icon-flash { - background-position: 0px -512px; - width: 16px; - height: 16px; -} -.ke-icon-media { - background-position: 0px -528px; - width: 16px; - height: 16px; -} -.ke-icon-hr { - background-position: 0px -592px; - width: 16px; - height: 16px; -} -.ke-icon-emoticons { - background-position: 0px -608px; - width: 16px; - height: 16px; -} -.ke-icon-link { - background-position: 0px -624px; - width: 16px; - height: 16px; -} -.ke-icon-unlink { - background-position: 0px -640px; - width: 16px; - height: 16px; -} -.ke-icon-fullscreen { - background-position: 0px -656px; - width: 16px; - height: 16px; -} -.ke-icon-about { - background-position: 0px -672px; - width: 16px; - height: 16px; -} -.ke-icon-plainpaste { - background-position: 0px -704px; - width: 16px; - height: 16px; -} -.ke-icon-wordpaste { - background-position: 0px -720px; - width: 16px; - height: 16px; -} -.ke-icon-advtable { - background-position: 0px -784px; - width: 16px; - height: 16px; -} -.ke-icon-tablemenu { - background-position: 0px -768px; - width: 16px; - height: 16px; -} -.ke-icon-tableinsert { - background-position: 0px -784px; - width: 16px; - height: 16px; -} -.ke-icon-tabledelete { - background-position: 0px -800px; - width: 16px; - height: 16px; -} -.ke-icon-tablecolinsertleft { - background-position: 0px -816px; - width: 16px; - height: 16px; -} -.ke-icon-tablecolinsertright { - background-position: 0px -832px; - width: 16px; - height: 16px; -} -.ke-icon-tablerowinsertabove { - background-position: 0px -848px; - width: 16px; - height: 16px; -} -.ke-icon-tablerowinsertbelow { - background-position: 0px -864px; - width: 16px; - height: 16px; -} -.ke-icon-tablecoldelete { - background-position: 0px -880px; - width: 16px; - height: 16px; -} -.ke-icon-tablerowdelete { - background-position: 0px -896px; - width: 16px; - height: 16px; -} -.ke-icon-tablecellprop { - background-position: 0px -912px; - width: 16px; - height: 16px; -} -.ke-icon-tableprop { - background-position: 0px -928px; - width: 16px; - height: 16px; -} -.ke-icon-checked { - background-position: 0px -944px; - width: 16px; - height: 16px; -} -.ke-container { - font-family: "sans serif",tahoma,verdana,helvetica; - border: 1px solid #CCCCCC; - background-color: #F0F0EE; - table-layout: fixed; - overflow: hidden; - border-collapse:separate; - padding:0; - margin:0; -} -.ke-container a:hover { - text-decoration: none; - background: transparent none repeat scroll 0% 0%; -} -.ke-toolbar-outer { - border: 0; - padding: 0; - margin: 0; -} -.ke-toolbar { - width: 100%; - border:0; - padding:0; - margin:0; - border-collapse:separate; -} -.ke-toolbar td { - border:0; - padding: 2px 5px; - margin:0; -} -.ke-toolbar-table { - font-size: 0; - line-height: 0; - float: left; - clear: both; - border:0; - padding:0; - margin:0; - border-collapse:separate; -} -.ke-toolbar-separator { - border-left: 1px solid #A0A0A0; - border-right: 1px solid #FFFFFF; - border-top:0; - border-bottom:0; - width: 0; - padding: 0; - margin: 0 2px; - height: 16px; -} -.ke-toolbar-table td { - border:0; - padding: 0; - margin:0; -} -.ke-bottom-outer { - border: 0; - padding: 0; - margin: 0; -} -.ke-bottom { - width: 100%; - font-size: 0; - line-height: 0; - border: 0; - padding:0; - margin:0; - height:11px; - border-collapse:separate; -} -.ke-bottom-left { - width: 100%; - cursor: s-resize; - border:0; - margin:0; - padding:0; - text-align: center; - vertical-align: middle; -} -.ke-bottom-left-img { - display: -moz-inline-stack; - display: inline-block; - vertical-align: middle; - zoom: 1; - *display: inline; - background-position: -0px -754px; - width: 15px; - height: 11px; - background-image: url(./default/default.gif); - margin: 0; - padding: 0; - border: 0; -} -.ke-bottom-right { - cursor: se-resize; - border:0; - margin:0; - padding:0; - text-align: right; - vertical-align: bottom; -} -.ke-bottom-right-img { - display: -moz-inline-stack; - display: inline-block; - vertical-align: middle; - zoom: 1; - *display: inline; - background-position: -9px -745px; - width: 7px; - height: 7px; - background-image: url(./default/default.gif); - margin: 0; - padding: 0; - border: 0; -} -.ke-textarea-outer { - border: 0; - padding: 0; - margin: 0; -} -.ke-textarea-table { - width: 100%; - padding: 0; - margin: 0; - border-top: 1px solid #CCCCCC; - border-bottom: 1px solid #CCCCCC; - border-left:0; - border-right:0; - background-color: #FFFFFF; - border-collapse:separate; - table-layout: fixed; -} -.ke-textarea-table td { - border:0; - padding:0; - margin:0; -} -.ke-textarea { - width: 100%; - display: block; - margin: 0; - padding: 0; - border: 0; - background-color: #FFFFFF; - color: #000000; - font-size: 12px; - font-family: "Consolas", "Monaco", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; - line-height: 18px; - overflow: auto; - resize: none; -} -.ke-textarea:focus { - outline: none; -} -.ke-iframe { - width: 100%; - display: block; - margin: 0; - padding: 0; - border: 0; - background-color: #FFFFFF; -} -.ke-common-icon { - margin: 0; - padding: 0; - border: 0; - background-repeat: no-repeat; - overflow: hidden; - display: -moz-inline-stack; - display: inline-block; - vertical-align: middle; - zoom: 1; - *display: inline; -} -.ke-common-icon-url { - background-image: url(./default/default.gif); -} -.ke-icon { - display: block; - border: 1px solid #F0F0EE; - background-color: transparent; - padding: 1px 2px; - margin: 1px; - cursor: pointer; -} -.ke-icon-on { - border: 1px solid #5690D2; -} -.ke-icon-selected { - border: 1px solid #5690D2; - background-color: #E9EFF6; -} -.ke-icon-disabled { - border: 1px solid #F0F0EE; - cursor: default; -} -.ke-menu { - position: absolute; - border: 1px solid #A0A0A0; - background-color: #F1F1F1; - color: #222222; - padding: 2px; - margin: 0; - font-family: "sans serif",tahoma,verdana,helvetica; - font-size: 12px; - text-align: left; - z-index: 19811214; -} -.ke-menu-item { - border: 1px solid #F1F1F1; - background-color: #F1F1F1; - color: #222222; - padding: 0; - margin: 0; - height: 24px; - overflow: hidden; - cursor: pointer; -} -.ke-menu-item-on { - border: 1px solid #5690D2; - background-color: #E9EFF6; -} -.ke-menu-left { - border: 0; - margin: 0; - padding: 0; - width: 20px; - overflow: hidden; - display: -moz-inline-stack; - display: inline-block; - vertical-align: middle; - zoom: 1; - *display: inline; -} -.ke-menu-center { - margin: 0; - padding: 0; - width: 0; - height: 24px; - border-top: 0; - border-bottom: 0; - border-left: 1px solid #F1F1F1; - border-right: 1px solid #F1F1F1; - display: -moz-inline-stack; - display: inline-block; - vertical-align: middle; - zoom: 1; - *display: inline; -} -.ke-menu-center-on { - border-left: 1px solid #E9EFF6; - border-right: 1px solid #E9EFF6; -} -.ke-menu-right { - border: 0; - margin: 0; - padding: 0; - line-height: 24px; - text-align: left; - overflow: hidden; - display: -moz-inline-stack; - display: inline-block; - vertical-align: middle; - zoom: 1; - *display: inline; -} -.ke-menu-separator { - margin: 2px 0; - padding: 0; - height: 0; - overflow: hidden; - border-top: 1px solid #CCCCCC; - border-bottom: 1px solid #FFFFFF; - border-left: 0; - border-right: 0; -} -.ke-contextmenu { - position: absolute; - border: 1px solid #A0A0A0; - background-color: #F1F1F1; - color: #222222; - padding: 2px; - margin: 0; - width: 200px; - font-family: "sans serif",tahoma,verdana,helvetica; - font-size: 12px; - text-align: left; - z-index: 19811214; -} -.ke-contextmenu-item { - border: 1px solid #F1F1F1; - background-color: #F1F1F1; - color: #222222; - padding: 0; - margin: 0; - height: 24px; - overflow: hidden; - cursor: pointer; -} -.ke-contextmenu-item-on { - border: 1px solid #5690D2; - background-color: #E9EFF6; -} -.ke-contextmenu-left { - border: 0; - margin: 0; - padding: 0; - width: 27px; - text-align: center; - overflow: hidden; - display: -moz-inline-stack; - display: inline-block; - vertical-align: middle; - zoom: 1; - *display: inline; -} -.ke-contextmenu-center { - margin: 0; - padding: 0; - width: 0; - height: 24px; - border-left: 1px solid #E3E3E3; - border-right: 1px solid #FFFFFF; - border-top: 0; - border-bottom: 0; - display: -moz-inline-stack; - display: inline-block; - vertical-align: middle; - zoom: 1; - *display: inline; -} -.ke-contextmenu-center-on { - border-left: 1px solid #E9EFF6; - border-right: 1px solid #E9EFF6; -} -.ke-contextmenu-right { - border: 0; - margin: 0; - padding: 0 0 0 5px; - line-height: 24px; - text-align: left; - overflow: hidden; - display: -moz-inline-stack; - display: inline-block; - vertical-align: middle; - zoom: 1; - *display: inline; -} -.ke-contextmenu-separator { - margin: 2px 0; - padding: 0; - height: 0; - overflow: hidden; - border-top: 1px solid #CCCCCC; - border-bottom: 1px solid #FFFFFF; - border-left: 0; - border-right: 0; -} -.ke-dialog { - position: absolute; - margin: 0; - padding: 0; - color: #333; - background-color: #F0F0EE; -} -.ke-dialog-shadow { - border: 1px solid #A0A0A0; - border-radius: 0 0 4px 4px; - box-shadow: 0 4px 16px #A0A0A0; -} -.ke-dialog-no-shadow { - border: 1px solid #A0A0A0; -} -.ke-dialog-title { - border:0; - margin:0; - padding:0; - background-color: #F0F0EE; - padding: 10px; - text-align: left; - font: 14px/1 "sans serif",tahoma,verdana,helvetica; - font-weight: bold; - color: #222222; - cursor: move; -} -.ke-dialog-close { - display: block; - background-position: 0px -688px; - width: 16px; - height: 16px; - position: absolute; - border: 0; - margin: 0; - padding: 0; - right: 10px; - top: 10px; - cursor: pointer; - background-image: url(./default/default.gif); - overflow: hidden; -} -.ke-dialog-body { - border:0; - margin:0; - padding:0; - margin: 10px 10px 0 10px; -} -.ke-dialog-iframe { - display: block; - margin: 0; - padding: 0; -} -.ke-dialog-iframe-border { - border: 1px solid #A0A0A0; - margin-bottom: 5px; -} -.ke-dialog-bottom { - border:0; - margin:0; - padding:0; - font: 12px/1 "sans serif",tahoma,verdana,helvetica; - text-align: right; - padding:0 0 5px 0; -} -.ke-dialog-preview { - margin: 5px; -} -.ke-dialog-yes { - margin: 5px; -} -.ke-dialog-no { - margin: 5px 10px 5px 5px; -} -.ke-mask { - border:0; - margin:0; - padding:0; - position: absolute; - z-index: 19811212; - top: 0; - left: 0; - display: none; - background-color: #FFFFFF; -} -.ke-button-common { - background: url(./default/bg.gif) no-repeat scroll 0 0 transparent; - cursor: pointer; - height: 25px; - line-height: 25px; - overflow: visible; - display: inline-block; - vertical-align: top; -} -.ke-button-outer { - background-position: 0 0; - padding: 0; - position: relative; - display: -moz-inline-stack; - display: inline-block; - vertical-align: middle; - zoom: 1; - *display: inline; -} -.ke-button { - background-position: right 0; - padding: 0 12px; - margin: 0; - font-family: "sans serif",tahoma,verdana,helvetica; - border: 0 none; - color: #333; - font-size: 12px; - font-weight: bold; - left: 2px; - text-decoration: none; -} -.ke-text-input { - background-color:#FFFFFF; - font-family: "sans serif",tahoma,verdana,helvetica; - font-size: 12px; - line-height: 17px; - height: 17px; - padding: 2px 4px; - border-color: #848484 #E0E0E0 #E0E0E0 #848484; - border-style: solid; - border-width: 1px; -} -.ke-colorpicker { - position: absolute; - border: 1px solid #A0A0A0; - background-color: #F1F1F1; - color: #222222; - padding: 2px; - margin: 0; - font-size: 12px; - text-align: left; -} -.ke-colorpicker-table { - border:0; - margin:0; - padding:0; - border-collapse: separate; -} -.ke-colorpicker-cell { - font-size: 0; - line-height: 0; - border: 1px solid #F0F0EE; - cursor: pointer; - margin:3px; - padding:0; -} -.ke-colorpicker-cell-top { - font-family: "sans serif",tahoma,verdana,helvetica; - font-size: 12px; - line-height: 24px; - border: 1px solid #F0F0EE; - cursor: pointer; - margin:0; - padding:0; - text-align: center; -} -.ke-colorpicker-cell-on { - border: 1px solid #5690D2; -} -.ke-colorpicker-cell-selected { - border: 1px solid #2446AB; -} -.ke-colorpicker-cell-color { - width: 14px; - height: 14px; - margin: 3px; - padding: 0; - border: 0; -} -.ke-loading-table { - border:0; - margin:0; - padding:0; - border-collapse: separate; -} -.ke-loading-table td{ - border:0; - margin:0; - padding:0; - font-size: 12px; - text-align: center; - vertical-align: middle; -} -.ke-loading-img { - display: -moz-inline-stack; - display: inline-block; - vertical-align: middle; - zoom: 1; - *display: inline; - background-repeat: no-repeat; - background-image: url(./common/loading.gif); - width: 16px; - height: 16px; - margin: 0; - padding: 0; - border: 0; -} -.ke-reset { - margin: 0; - padding: 0; - border: 0; -} -.ke-plugin-emoticons-wrapper { - position: relative; - margin: 0; - padding: 0; - border: 0; -} -.ke-plugin-emoticons-preview { - position: absolute; - text-align: center; - margin: 2px; - padding: 10px; - top: 0; - border: 1px solid #A0A0A0; - background-color: #FFFFFF; - display: none; -} -.ke-plugin-emoticons-table { - border:0; - margin:0; - padding:0; - border-collapse:separate; -} -.ke-plugin-emoticons-cell { - margin:0; - padding:1px; - border:1px solid #F0F0EE; - cursor:pointer; -} -.ke-plugin-emoticons-cell-on { - border: 1px solid #5690D2; - background-color: #E9EFF6; -} -.ke-plugin-emoticons-img { - display:block; - background-repeat:no-repeat; - overflow:hidden; - margin:2px; - width:24px; - height:24px; - background-image:url(../plugins/emoticons/qq.gif); - margin: 0; - padding: 0; - border: 0; -} -.ke-plugin-emoticons-page { - text-align: right; - margin: 5px; - padding: 0; - border: 0; - font-family: "sans serif",tahoma,verdana,helvetica; - font-size:12px; - line-height: 1; - color: #333333; - text-decoration: none; -} -.ke-plugin-emoticons-page a { - color: #337FE5; - text-decoration: none; -} diff --git a/www/js/jquery/kindeditor/skins/default/bg.gif b/www/js/jquery/kindeditor/skins/default/bg.gif deleted file mode 100644 index 6c337033ce..0000000000 Binary files a/www/js/jquery/kindeditor/skins/default/bg.gif and /dev/null differ diff --git a/www/js/jquery/kindeditor/skins/default/default.gif b/www/js/jquery/kindeditor/skins/default/default.gif deleted file mode 100644 index f007c28475..0000000000 Binary files a/www/js/jquery/kindeditor/skins/default/default.gif and /dev/null differ