/**
 * jQEditor - WYSIWYG HTML Editor for Internet
 * Copyright (c) 2011, jQEditor.com All rights reserved.
 * MIT Licensed.
 * Depends: jQuery1.44+
 * Date: 2012-01-10
 * Version: 1.1.0
 *
 */
(function(b){function e(j,i){if(a){if(!j)return c;if(typeof j!=="string")return alert("log(type, msg)\u65b9\u6cd5\u7684\u53c2\u6570type\u5fc5\u987b\u662f\u6709\u6548\u7684\u5b57\u7b26\u4e32"),!1;j=b.trim(j);if(i&&typeof i==="string"){c[j]||(c[j]=[]);c[j].push(i);if(typeof console==="object")switch(f+=1,i=f+"."+i,j){case "run":console.log(i);break;case "warning":console.warn(i);break;case "error":console.error(i);break;default:console.log(i)}return!0}else return c[j]?c[j]:c}}function h(a){m[a]=function(j,
b,f){return i[a](j,b,f)}}function g(){this.enabled=1;this.logs=[]}function d(){this.enabled=1;this.locked=0;this.isNeedTitle=this.isNeedPanel=1;this.title="";this.config=null;this.menuTitle=this.style="";this.menuType="Panel";this.inserthtml="base";this.killEvents=this.event=this.panel=null;this.cache=[];this.logs=[];this.callback=this.one=this.Selection=null}var c={},a=!1,f=0,j=function(){var a=new Date,j=a.getMonth()+1,b=a.getFullYear();return""+b+(j<10?"0"+j:j)+a.getDate()}(),a=typeof JQEDEBUG!==
"undefined"&&JQEDEBUG?!0:!1,m=window.jQEditor=b.editor=function(a){setTimeout(function(){i.create(a)},100);return m},k={typeof_function:"function",re_string:/string/i,re_object:/object/i,re_obj_fn:/object|function/i,IE:b.browser.msie,mozilla:b.browser.mozilla,script_path:"",returnFalse:function(){return!1},baseCmds:"Cut,Copy,Paste,Bold,Italic,Underline,StrikeThrough,InsertOrderedList,InsertUnorderedList,JustifyLeft,JustifyCenter,JustifyRight,JustifyFull,Outdent,Indent,SubScript,SuperScript,RemoveFormat".split(","),
closeStyleCmd:/bold|italic|underline|strikeThrough/i,IE6:b.browser.msie&&b.browser.version=="6.0",IE678:b.browser.msie&&/[678]/.test(b.browser.version)};e("run","start");b.extend(m,{consts:k,eid:"",styleContent:[],styleSkin:[],init:function(){var a=0,j=0,b="",f="extend,mod,plugin,icon,lang,log,showError,showNotice,alert,hideMessage,addFilter,getHTML,setHTML,hidePanel,$,pluginExit,action,pasteHTML,execCommand,iframe,getButtonByName".split(",");e("run","init: "+f.join(","));for(a=0,j=f.length;a<j;a++)b=
f[a],h(b)},config:function(a,j){return j&&a?(i.config[a]=j,this):a&&typeof a==="object"?(i.config=b.extend(i.config,a),this):a&&typeof a==="string"?i.config[a]:i.config},get:function(a){if(/(option|body|document|window|iframe)/.test(a))return i.get(a)},setEid:function(a){i.setEid(a)},focus:function(){i.focus()},monitor:function(a){i.monitor(a)},disablePlugin:function(a){(Plugin=i.plugin(a))&&Plugin.disable()},enablePlugin:function(a){(Plugin=i.plugin(a))&&Plugin.enable()},hidePlugin:function(a){if(Plugin=
i.plugin(a))return Plugin.hide(),Plugin},clickPlugin:function(a){if(a=i.plugin(a))return a.click(i.mod("Panel"),a),a},getSubmitHtml:function(a){a&&i.setEid(a);(a=i.plugin("Cleanup"))&&a.click();return i.getHTML()}});m.init();var i={version:"1.0",config:{},bodys:{},iframes:{},documents:{},windows:{},options:{},eid:"",pluginStyle:[],plugins:{},mods:{},icons:{},defaults:{},extend:function(){},isExtend:[],plugin:function(){},mod:function(){},icon:function(){},langs:{},open:function(){},log:function(){},
domFilters:{},htmlFilters:{}};i.extend=function(a,j){if(!a||typeof a!=="string")return e("error","E.extend(name, obj)\u65b9\u6cd5\u7684\u53c2\u6570name\u5fc5\u987b\u662f\u6709\u6548\u7684\u5b57\u7b26\u4e32"),this;a=b.trim(a);i.isExtend[a]?e("run","\u7f16\u8f91\u5668\u5df2\u7ecf\u5b58\u5728\u540d\u5b57\u4e3a"+a+"\u5bf9\u8c61"):(i[a]=j,i.isExtend[a]=1);return this};var l=!1;i.extend("monitor",function(a){l||(a=a||"",i.log("run","E.Event.trigger( {type:onmonitor, cmd:"+a+"} );"),i.Event.trigger({type:"onmonitor",
cmd:a}),l=!0,setTimeout(function(){l=!1},300))});i.extend("get",function(a,j){a+="s";j=j||i.eid;if(i[a]&&i[a][j])return i[a][j];else i[a]?e("warning","\u7f16\u8f91\u5668eid="+j+"\u4e0d\u5b58\u5728"):e("warning","\u7f16\u8f91\u5668\u4e0d\u5b58\u5728\u53d8\u91cf:"+a)});i.extend("setEid",function(a){if(a&&typeof a==="string"&&i.options[a]){if(a!==i.eid){i.eid=m.eid=a;var j=i.options[a].plugin,b=null,f=null;if(j&&typeof j==="object")for(var c in j)if(b=j[c],f=i.plugin(c),b&&typeof b==="object"){for(var d in b)if(f[d]){var g=
b[d];if(/^(string|number|boolean)$/i.test(typeof g))f[d]=g;else if(typeof g==="object")for(var k in g)f[d][k]=g[k]}else e("warning","\u63d2\u4ef6"+c+"\u6ca1\u6709key\u503c\uff1a"+d);typeof f.init==="function"&&f.init(f)}e("run","setEid="+a)}}else e("error","\u8bf7\u68c0\u67e5eid="+a+"\u662f\u5426\u6b63\u786e")});i.extend("alert",function(a){alert(a)});i.extend("showError",function(a,j){var b=i.mod("Message");b&&b.showError(a,j)});i.extend("showNotice",function(a,j){var b=i.mod("Message");b&&b.showNotice(a,
j)});i.extend("hideMessage",function(a){var j=i.mod("Message");j&&j.hide(a)});i.extend("$",function(a){var j=i.get("document");return b(a,j)});i.extend("log",function(a,j){return e(a,j)});g.prototype={isEnabled:function(){return this.enabled},enable:function(){this.enabled=1},disable:function(a){this.enabled=0;a&&this.log(a)},log:function(a){this.logs.push(a)}};i.extend("mod",function(a,j){if(!a||typeof a!="string")return e("error","E.mod(name, obj)\u65b9\u6cd5\u7684\u53c2\u6570 name \u5fc5\u987b\u662f\u6709\u6548\u7684\u5b57\u7b26\u4e32"),
0;var f;f=i.mods;if(j&&typeof j==="object")return f[a]?(e("error","\u6a21\u5757"+a+"\u5df2\u7ecf\u5b58\u5728\uff0c\u6ce8\u518c\u5931\u8d25"),0):(e("run","\u6a21\u5757"+a+"\u6ce8\u518c\u6210\u529f"),j.name=a,f[a]=b.extend(new g,j),1);else if(f[a])return f=f[a],f.isEnabled()?f:0;else e("error","\u6a21\u5757"+a+"\u4e0d\u5b58\u5728")});d.prototype={click:function(a,j){a&&j.isNeedPanel&&a.set(j);typeof j.set===k.typeof_function&&j.set(a,j);return!0},action:function(){},getCursorElement:function(){return i.mod("Selection").getElement()},
getSelectionHtml:function(){return i.mod("Selection").getHtml()},getSelectionText:function(){return""+i.mod("Selection").getText()},getTitle:function(){var a=i.get("option"),a=i.lang(a.lang)[this.name];return typeof a=="string"?a:a&&typeof a=="object"&&a.title?a.title:"\u672a\u5b9a\u4e49"},pasteHTML:function(a){a&&i.pasteHTML(a)},panelHtml:function(){return this.cache.html},getValues:function(a){var a=a||this.panel,j={},a=a.find(":input").serializeArray();b.each(a,function(a,b){if(b.name)j[b.name]=
b.value});return j},error:function(a){var j=i.mod("Panel");j&&j.error(a);this.unlock()},notice:function(a){var j=i.mod("Panel");j&&j.notice(a)},hide:function(){var a=i.mod("Panel");a&&a.hide()},isEnabled:function(){return this.enabled},enable:function(){if(!this.enabled){this.enabled=!0;var a=i.getButtonByName(this.name),j=a.children(),b=j.attr("_title");a.removeClass("disabled");j.attr("title",b)}},disable:function(a){if(this.enabled){this.enabled=!1;var j=i.getButtonByName(this.name),b=j.children(),
f=b.attr("_title");j.addClass("disabled");b.attr("title",f+" \u5f53\u524d\u4e0d\u53ef\u7528");a&&this.log(a)}},lock:function(a){var j=i.mod("Panel"),b=i.mod("Toolbar");if(!this.locked)this.locked=1,a==="toolbar"?b.lock():a==="panel"?this.panel&&j.lock(this.panel):(this.panel&&j.lock(this.panel),b.lock())},unlock:function(a){var j=i.mod("Panel"),b=i.mod("Toolbar");if(this.locked)this.locked=0,a==="toolbar"?b.unlock():a==="panel"?this.panel&&j.unlock(this.panel):(this.panel&&j.unlock(this.panel),b.unlock())},
islock:function(){return this.locked},log:function(a){this.logs.push(a)}};i.extend("plugin",function(a,j){var f=typeof j,c=typeof a,m=i.plugins;if(!a||c!="string"&&!b.isArray(a))return alert("E.plugin(name, obj)\u65b9\u6cd5\u7684\u53c2\u6570 name="+c+" \u5fc5\u987b\u662f\u6709\u6548\u7684\u5b57\u7b26\u4e32\u6216\u6570\u7ec4"),0;if(j&&k.re_obj_fn.test(f)){var g,h;c=="string"?g=a.split(","):b.isArray(a)&&(g=a);for(var l=g.length-1;l>=0;l--)if(c=b.trim(g[l]))if(m[c])m[c].type==="base"?(m[c]=b.extend(m[c],
j),e("notice","\u57fa\u7840\u63d2\u4ef6"+c+"\u88ab\u8986\u76d6\u6dfb\u52a0")):i.alert("\u63d0\u793a\uff1a\u63d2\u4ef6 "+c+" \u5df2\u7ecf\u5b58\u5728\uff0c\u4e0d\u80fd\u91cd\u590d\u6dfb\u52a0\uff01");else{j.name=c;f==="object"?(h=new d,m[c]=b.extend(h,j)):f==="function"&&(m[c]=j);h=m[c];if(!h.type)h.type="general";h.type==="base"?e("run","\u57fa\u7840\u63d2\u4ef6"+c+"\u6dfb\u52a0\u6210\u529f"):(h.Selection=i.mod("Selection"),e("run","\u81ea\u5b9a\u4e49\u63d2\u4ef6"+c+"\u6dfb\u52a0\u6210\u529f"));if(f===
"function")break;if(typeof h.init!=k.typeof_function)h.isNeedPanel=0;if(h.lang&&typeof h.lang==="object")for(var n in h.lang)i.lang(n,h.lang[n]);if(h.icon&&typeof h.icon==="object")for(var u in h.icon)typeof h.icon[u]==="object"&&i.icon(u,h.icon[u]);h.style&&i.pluginStyle.push(h.style);if(h.depends&&b.isArray(h.depends))for(var v=0,z=h.depends.length;v<z;v++)if(a=h.depends[v],!i.mod(a)){h.disable();e("warning","\u63d2\u4ef6 "+c+"\u7f3a\u5c11\u4f9d\u8d56\u6a21\u5757: "+a);break}}return this}else return m[a]?
m[a]:null});i.extend("icon",function(a,j){if(!a||typeof a!="string")return e("error","E.icon(name, obj)\u65b9\u6cd5\u7684\u53c2\u6570 name \u5fc5\u987b\u662f\u6709\u6548\u7684\u5b57\u7b26\u4e32"),0;var f=i.icons;return j&&k.re_object.test(typeof j)?(f[a]?f[a]=b.extend(f[a],j):(f[a]=j,e("run","\u6309\u94ae\u80cc\u666f\u5750\u6807"+a+"\u6dfb\u52a0\u6210\u529f")),1):f[a]?f[a]:0});i.extend("lang",function(a,j){if(!a||typeof a!="string")return e("error","E.lang(name, obj)\u65b9\u6cd5\u7684\u53c2\u6570 name \u5fc5\u987b\u662f\u6709\u6548\u7684\u5b57\u7b26\u4e32"),
0;var f=i.langs;return j&&k.re_object.test(typeof j)?(f[a]?f[a]=b.extend(f[a],j):(f[a]=j,e("run","\u8bed\u8a00\u5305"+a+"\u6dfb\u52a0\u6210\u529f")),1):f[a]?f[a]:0});i.extend("_closeStyleWithCSS",function(a){try{a.execCommand("styleWithCSS",0,!1)}catch(j){try{a.execCommand("useCSS",0,!0)}catch(b){try{a.execCommand("styleWithCSS",!1,!1)}catch(f){}}}});i.extend("focus",function(){var a=i.windows[i.eid];a&&a.focus()});i.extend("execCommand",function(a,j,b){var f=i.get("document");f?(j===null&&(j=!1),
!k.IE&&a=="BackColor"&&(a="hiliteColor"),i.focus(),f.execCommand(a,j,b),e("run","\u6267\u884c\u7f16\u8f91\u5668\u547d\u4ee4\uff1a"+a)):e("error","\u6267\u884c\u7f16\u8f91\u5668\u547d\u4ee4"+a+"\u65f6\u51fa\u73b0\u610f\u5916\uff0c\u6ca1\u6709\u5f97\u5230dom\u5bf9\u8c61")});i.extend("pasteHTML",function(a){var j=i.mod("Selection");j&&j.set(a);e("run","\u5411\u7f16\u8f91\u5668\u63d2\u5165\u5185\u5bb9\uff1a"+a)});i.extend("getHTML",function(a){var a=typeof a==="undefined"?!0:a,j=i.get("document");return a?
i.execFilter(j):j.body.innerHTML});i.extend("setHTML",function(a){var j=i.get("document");j.body.innerHTML!=a&&(i.execFilter(j,a),i.monitor("setHTML"),e("run","\u91cd\u7f6e\u7f16\u8f91\u5668\u5185\u5bb9\uff1a"+j.body.innerHTML));return 1});var n={type:"dom",dom:null,enabled:1,check:function(){return this.isEnabled()?!0:!1},isEnabled:function(){return this.enabled},enable:function(){this.enabled=1},disable:function(){this.enabled=0}};i.extend("addFilter",function(a,j){typeof j==="object"&&typeof j.replace===
"function"?j=j.type&&j.type==="html"?i.htmlFilters[a]=b.extend({},n,j):i.domFilters[a]=b.extend({},n,j):i.alert("\u63d0\u793a\uff1a\u5185\u5bb9\u8fc7\u6ee4\u5668"+a+"\u7f3a\u5c11replace\u65b9\u6cd5\u3002");return j});i.extend("execFilter",function(a,j){var f,c=i.domFilters,m=i.htmlFilters,d="",g=i.get("option");if(j){for(var k in m)if(f=m[k],b.inArray("filter."+k,g.disabled)===-1&&f.check())f.dom=a,j=f.replace(j),e("run","\u6267\u884chtml\u8fc7\u6ee4\u5668"+k);a.body.innerHTML=j}for(k in c)if(f=c[k],
b.inArray("filter."+k,g.disabled)===-1&&f.check())f.dom=a,f.replace(a),e("run","\u6267\u884cdom\u8fc7\u6ee4\u5668"+k);d=a.body.innerHTML;if(!j)for(k in m)if(f=m[k],b.inArray("filter."+k,g.disabled)===-1&&f.check())f.dom=a,d=f.replace(d),e("run","\u6267\u884chtml\u8fc7\u6ee4\u5668"+k);return d=d.replace(/^(\s|&nbsp;|<br\s?\/?>)+/i,"").replace(/(\s|&nbsp;|<br\s?\/?>)+$/i,"").replace(/^(?:<p>(?:\s|<br\s?\/?>|&nbsp;)*<\/p>)+/i,"").replace(/(?:<p>(?:\s|<br\s?\/?>|&nbsp;)*<\/p>)+$/i,"")});i.extend("getButtonByName",
function(a){return b("#"+i.eid+"-"+a)});i.extend("hidePanel",function(a,j){var f=i.mod("Menu"),c=i.mod("Panel"),e=i.mod("Toolbar"),a=a||"";j==="Panel"?c&&b(".jqe-panel:visible").size()&&(c.hide(),i.log("run","\u9690\u85cf\u9762\u677f("+a+")")):(j!=="Menu"&&c&&b(".jqe-panel:visible").size()&&(c.hide(),i.log("run","\u9690\u85cf\u9762\u677f("+a+")")),f&&b(".jqe-menu:visible").size()&&(f.hide(),i.log("run","\u9690\u85cf\u83dc\u5355("+a+")")));e&&e.resetClickButton()});i.extend("action",function(a,j){var f,
c,d=null,g=!1,k=i.mod("Panel"),h=i.mod("Menu"),l="";typeof a==="string"?(f=a,c=i.eid,l="click",e("run","\u7f16\u8f91\u5668"+c+"\u5373\u5c06\u6267\u884c\u83dc\u5355\u547d\u4ee4"+f)):(f=a.closest("[name]").attr("name"),c=a.closest(".jqeditor").attr("id"),i.setEid(c),a.is(".jqe-icon")?(l="click",e("run","\u7f16\u8f91\u5668"+c+"\u5373\u5c06\u6267\u884c\u5de5\u5177\u680f\u6309\u547d\u4ee4"+f)):a.is(".jqe-button-menu")&&(l="menu",e("run","\u7f16\u8f91\u5668"+c+"\u5373\u5c06\u6267\u884c\u5de5\u5177\u680f\u4e0b\u62c9\u6309\u94ae\u547d\u4ee4"+
f)));d=i.plugin(f);if(!d)return e("error","\u7f16\u8f91\u5668"+c+"\u547d\u4ee4"+f+"\u4e0d\u5b58\u5728"),g;if(typeof a==="object")d.target=a;if(!d.isEnabled())return d.target=null,i.showError(d.title+"\u529f\u80fd\u5904\u4e8e\u7981\u7528\u72b6\u6001"),e("run","\u7f16\u8f91\u5668"+c+"\u7684"+d.title+"\u529f\u80fd\u5904\u4e8e\u7981\u7528\u72b6\u6001\uff0c\u6267\u884c\u5931\u8d25"),g;d.event=j;m.Plugin=i.Plugin=d;if(l=="click")k&&d.isNeedPanel?g=d.click(k,d,a):h?(j&&(a=b(j.target)),g=d.click(h,d,a)):
g=d.click(null,d,a),d.event=null;else if(l=="menu"){var n=!1;d.menuType==="Panel"?(i.hidePanel("action","Menu"),n=k.isShow(d)):d.menuType==="Menu"&&(i.hidePanel("action","Panel"),n=h.isShow(d));n?i.hidePanel("action"):(g=d.menu(k,d,a),e("run","\u7f16\u8f91\u5668"+c+"\u6267\u884c\u4e86\u5de5\u5177\u680f\u4e0b\u62c9\u6309\u94ae\u547d\u4ee4"+f))}i.Event.trigger({type:"onafteraction",Plugin:d});l==="click"&&typeof d.ok==="undefined"&&typeof d.get==="undefined"&&(g&&!/(undo|redo)/i.test(f)&&i.monitor(f),
i.pluginExit());return g});i.extend("pluginExit",function(){if(i.Plugin)i.Plugin.target=null,m.Plugin=i.Plugin=null});i.extend("iframe",function(a,f,c){var d=i.config,g=a.id,h=document.createElement("iframe"),l="";if(a.contentId)if(l=b("#"+g),l.size()){l.addClass("jqeditor");if(!f||typeof f!=="object")f=l.find(".jqe-content");f.size()||(l.append('<div class="jqe-content"></div>'),f=l.find(".jqe-content"))}else alert("\u6307\u5b9a\u7684\u7f16\u8f91\u5668id="+g+"\u4e0d\u5b58\u5728\u3002\uff08E.iframe\uff09");
(!f||typeof f!=="object")&&alert("\u6ca1\u6709\u6307\u5b9aiframe\u5bb9\u5668container\u3002\uff08E.iframe\uff09");b(h).attr({frameBorder:0,name:"iframe_"+g,tabIndex:"0"});a.iframeStyle&&b(h).css(a.iframeStyle);a.autoHeight&&b(h).attr({scrolling:"no"});a.iframeSrc&&b(h).attr({src:a.iframeSrc});b(f).empty().append(h).height(a.height);f=h.contentWindow.document||h.contentDocument;f.open();l=d.DOCTYPE+'<html xmlns="'+d.xmlns+'" class="CSS1Compat" lang="zh-cn" dir="ltr" style="height:99%"><head>';l+='<meta http-equiv="Content-Type" content="text/html; charset='+
d.charset+'" />';if(m.styleContent.length)l+="<style>"+m.styleContent.join("\n")+"</style>\n";else if(a.contentCssName){var n="jqe-style-content-"+a.contentCssName;cssUrl=d.jqePath+"/skins/content_"+a.contentCssName+".css?"+(a.contentCssVersion?a.contentCssVersion:j);l+='<link id="'+n+'" href="'+cssUrl+'" type="text/css" rel="stylesheet" />'}c=c||"<p>"+d.text+"</p>";l+='</head><body id="'+g+'" style="height:99%">'+c+"</body></html>";f.write(l);f.close();if(a.contentEditable)k.IE?f.body.contentEditable=
"true":f.designMode="On";i.bodys[g]=f.body;i.iframes[g]=h;i.windows[g]=a=h.contentWindow;i.documents[g]=f;e("run","\u6784\u5efa\u7f16\u8f91\u5668"+g+"\u7684iframe\u7f16\u8f91\u5668\u533a\u57df");return{dom:f,win:a}});i.extend("create",function(a){i.ready();for(var j in i.defaults)a[j]==null&&(a[j]=i.defaults[j]);j=a.id;if(i.options[j])i.alert("\u7f16\u8f91\u5668id\u91cd\u590d\uff0c\u8bf7\u66f4\u6362\uff01");else{i.options[j]=a;i.setEid(j);i.init(a);var f=b("#"+a.contentId).val();i.iframe(a,null,f);
i.Event.trigger({type:"oncreate",value:a,html:f});i.Event.trigger({type:"oncomplete",value:a,html:f});e("run","\u7f16\u8f91\u5668"+j+"\u521b\u5efa\u5b8c\u6210")}});setTimeout(function(){i.ready()},30);i.extend("ready",function(){if(!i.Event){var a=i.plugins,j,f;for(f in a)j=a[f],typeof j.init==="function"&&j.init(j);i.Event=i.mod("Event");i.Event.trigger({type:"onready"});b("link[href*=skin_base]").size()||(a=m.config("jqePath"),b("head").append('<link rel="stylesheet" type="text/css" href="'+a+'/skins/skin_base.css" />'))}});
i.extend("init",function(a){var j=a.skin,f=i.icon(j),c=[],d="jqe-style-"+j+"-"+a.id;if(f)for(var m in f)c.push(".jqe-"+j+" ."+m+"{background-position:"+f[m].XY+";}"),f[m].XY=="none"&&c.push("#"+a.id+"-"+m+" .jqe-icon{background:none;}");c.push(i.pluginStyle.join("\n"));c.push("#"+a.id+" li.jqe-button{margin:4px 1px 2px;}");c.push("#"+a.id+" li.jqe-button span{margin:0;width:22px;}");c.push("#"+a.id+" li.jqe-button span.selected-color{width:18px;}");b("head").append('<style id="'+d+'">'+c.join("\n")+
"</style>");e("run","\u7f16\u8f91\u5668\u6837\u5f0f\u6dfb\u52a0\u5230head\u6807\u7b7e\u5f53\u4e2d")});i.plugin(k.baseCmds,{isNeedPanel:0,type:"base",click:function(){var a=this.name,j=i.documents[i.eid];if(!k.IE&&/(Cut|Copy|Paste)/.test(a)){j="";switch(a){case "Cut":j="Ctrl + X";break;case "Copy":j="Ctrl + C";break;case "Paste":j="Ctrl + V"}j&&i.showError("\u63d0\u793a\uff1a\u6b64\u529f\u80fd\u4ec5\u5728IE\u6d4f\u89c8\u5668\u4e0b\u53ef\u7528\uff0c\u53ef\u4ee5\u4f7f\u7528\u5bf9\u5e94\u7684\u5feb\u6377\u952e:"+
j);return!1}!k.IE&&k.closeStyleCmd.test(a)&&i._closeStyleWithCSS&&i._closeStyleWithCSS(j);i.execCommand(a);return!0}})})(jQuery);
(function(b){b.extend("defaults",{id:"jqeditor",contentId:"content",toolbar:"default",lang:"zh-cn",skin:"default",panel:"Panel",contentCssName:"default",contentCssVersion:"",height:350,contentEditable:!0,iframeStyle:{width:"99%",height:"100%",margin:"0 5px"},autoHeight:100,toolbarTop:100,fixedClassName:"jqe-toolbar-fixed",messageSpeed:200,messageDuration:1500,PasteToText:!1,AutoCleanup:!1,plugin:{},disabled:[]});b.extend("config",{DOCTYPE:'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">',
xmlns:"http://www.w3.org/1999/xhtml",charset:"utf-8",text:"&nbsp;",jqePath:"./",toolbars:{"default":"Source,Save,Undo,Redo,Bold,Italic,Underline,StrikeThrough,SubScript,SuperScript,ForeColor,BackColor,RemoveFormat,Cleanup,PasteToText,PasteWord,JustifyLeft,JustifyCenter,JustifyRight,H1,H2,FontSize,FontName,InsertOrderedList,InsertUnorderedList,Indent,Outdent,Image,Find,Replace,BaikeLink,Link,SpecialChar,InsertTable,Video,MultiImage,Code,InsertDate,InsertTime,Reference,ClearDoc,AutoFormat,Preview,GoogleMap,Help".split(",")},
tagAndDisablePlugin:{"*":["PasteText","PasteWord","H1","H2","FontSize","FontName","Bold","Italic","Underline","Image","SubScript","SuperScript","StrikeThrough","InsertTable","HdImage","MultiImage","ForeColor","BackColor",,"Video","JustifyLeft","BaikeLink","Link","Code","GoogleMap","Reference"],a:"*",table:["H1","H2"],h2:"*",h3:"*",sub:"*",sup:"*",pre:"FontSize,Bold,H1,H2,InsertTable,HdImage,MultiImage,Video,JustifyLeft,ForeColor,Code,GoogleMap".split(","),img:"H1,H2,Font,Bold,Italic,Underline,SubScript,SuperScript,StrikeThrough,InsertTable,HdImage,HdImageGroup,ForeColor,BackColor,Video".split(","),
selectedTable:"H1,H2,BaikeLink,Link,Video,HdImage,InsertTable,SpecialChar".split(",")},ctrlKeys:{65:"",66:"Bold",73:"Italic",85:"Underline",90:"Undo",89:"Redo",81:"BaikeLink",49:"H1",97:"H1",50:"H2",98:"H2",38:"RowMoveBefore",219:"CancelAutoFormat",221:"AutoFormat",46:"ClearDoc",110:"ClearDoc",191:"PasteToText",40:"RowMoveAfter"},ctrlShiftKeys:{76:"JustifyLeft",82:"JustifyRight",67:"Cleanup",38:"RowMoveFirst",40:"RowMoveLast"}})})(jQEditor);
(function(b){b.icon("default",{Source:{XY:"-259px 0"},DocProps:{XY:"-900px -20px"},Save:{XY:"-480px -20px"},NewPage:{XY:"-520px 0"},Preview:{XY:"-420px -20px"},Templates:{XY:"-820px -20px"},Cut:{XY:"-680px 0"},Copy:{XY:"-700px 0"},Paste:{XY:"-560px 0"},PasteText:{XY:"-360px -20px"},PasteToText:{XY:"-360px -20px"},PasteWord:{XY:"-380px -20px"},Print:{XY:"-440px -20px"},SpellCheck:{XY:"-540px -20px"},Undo:{XY:"-179px -40px"},Redo:{XY:"-199px -40px"},Find:{XY:"-520px -20px"},Replace:{XY:"-500px -20px"},
SelectAll:{XY:"-400px -20px"},RemoveFormat:{XY:"-580px 0"},Bold:{XY:"-40px -40px"},BoldGroup:{XY:"-40px -40px"},Italic:{XY:"-60px -40px"},Underline:{XY:"-138px -40px"},StrikeThrough:{XY:"-120px 0"},SubScript:{XY:"-600px -40px"},SuperScript:{XY:"-620px -40px"},InsertOrderedList:{XY:"-80px -40px"},InsertUnorderedList:{XY:"-20px -40px"},Outdent:{XY:"-540px -40px"},Indent:{XY:"-400px -40px"},JustifyLeft:{XY:"-460px -40px"},AlignGroup:{XY:"-460px -40px"},JustifyCenter:{XY:"-420px -40px"},JustifyRight:{XY:"-480px -40px"},
JustifyFull:{XY:"-440px 0"},Link:{XY:"-520px -40px"},Unlink:{XY:"-640px 0"},Anchor:{XY:"-200px 0"},Image:{XY:"-900px -40px"},Flash:{XY:"-320px -20px"},InsertTable:{XY:"-580px -20px"},TableGroup:{XY:"-580px -20px"},Smiley:{XY:"-60px -20px"},SpecialChar:{XY:"-240px 0"},PageBreak:{XY:"0 -40px"},ForeColor:{XY:"-720px 0"},BackColor:{XY:"-760px 0"},About:{XY:"-340px 0"},Help:{XY:"-340px 0"},FitWindow:{XY:"-100px -20px"},Blockquote:{XY:"-220px 0"},CreateDiv:{XY:"-260px -20px"},Cleanup:{XY:"-40px 0"},InsertDate:{XY:"-140px -20px"},
InsertTime:{XY:"-160px -20px"},TableProps:{XY:"-580px -20px"},CellProps:{XY:"-600px -20px"},RemoveTable:{XY:"-620px -20px"},RemoveColumn:{XY:"-640px -20px"},RemoveRow:{XY:"-660px -20px"},ColumnInsertAfter:{XY:"-680px -20px"},ColumnInsertBefore:{XY:"-700px -20px"},RowInsertAfter:{XY:"-720px -20px"},RowInsertBefore:{XY:"-740px -20px"},ColumnMergeAfter:{XY:"-600px -20px"},RowMergeAfter:{XY:"-820px -20px"},BaikeLink:{XY:"-500px -40px"},H1:{XY:"-960px 0"},H2:{XY:"-980px 0"},HdImage:{XY:"-380px 0"},FontSize:{XY:"none"},
FontName:{XY:"none"},Video:{XY:"-320px -40px"},SpecialChar:{XY:"-239px 0"},MultiImage:{XY:"-380px -40px"},Code:{XY:"-980px -20px"},SetColumnAlignLeft:{XY:"-460px -40px"},SetColumnAlignRight:{XY:"-480px -40px"},SetColumnAlignCenter:{XY:"-420px -40px"},SetRowAlignLeft:{XY:"-460px -40px"},SetRowAlignRight:{XY:"-480px -40px"},SetRowAlignCenter:{XY:"-420px -40px"},SetRowAlignLeft:{XY:"-460px -40px"},SetRowAlignRight:{XY:"-480px -40px"},SetRowAlignCenter:{XY:"-420px -40px"},ClearDoc:{XY:"-520px 0"},InsertDate:{XY:"-140px -20px"},
InsertTime:{XY:"-160px -20px"},GoogleMap:{XY:"-940px -40px"},Reference:{XY:"-920px 0"}});b.icon("mce",{Source:{XY:"-259px 0"},DocProps:{XY:"-900px -20px"},Save:{XY:"-480px -20px"},NewPage:{XY:"-520px 0"},Preview:{XY:"-420px -20px"},Templates:{XY:"-820px -20px"},Cut:{XY:"-680px 0"},Copy:{XY:"-700px 0"},Paste:{XY:"-560px 0"},PasteText:{XY:"-360px -20px"},PasteToText:{XY:"-360px -20px"},PasteWord:{XY:"-380px -20px"},Print:{XY:"-440px -20px"},SpellCheck:{XY:"-540px -20px"},Undo:{XY:"-158px 0"},Redo:{XY:"-99px 0"},
Find:{XY:"-520px -20px"},Replace:{XY:"-500px -20px"},SelectAll:{XY:"-400px -20px"},RemoveFormat:{XY:"-580px 0"},Bold:{XY:"0 0"},BoldGroup:{XY:"0 0"},Italic:{XY:"-60px 0"},Underline:{XY:"-140px 0"},StrikeThrough:{XY:"-120px 0"},SubScript:{XY:"-600px 0"},SuperScript:{XY:"-620px 0"},InsertOrderedList:{XY:"-80px 0"},InsertUnorderedList:{XY:"-20px 0"},Outdent:{XY:"-540px 0"},Indent:{XY:"-400px 0"},JustifyLeft:{XY:"-460px 0"},AlignGroup:{XY:"-460px 0"},JustifyCenter:{XY:"-420px 0"},JustifyRight:{XY:"-480px 0"},
JustifyFull:{XY:"-440px 0"},Link:{XY:"-520px -40px"},Unlink:{XY:"-640px 0"},Anchor:{XY:"-200px 0"},Image:{XY:"-380px 0"},Flash:{XY:"-320px -20px"},InsertTable:{XY:"-580px -20px"},TableGroup:{XY:"-580px -20px"},Smiley:{XY:"-60px -20px"},SpecialChar:{XY:"-240px 0"},PageBreak:{XY:"0 -40px"},ForeColor:{XY:"-720px 0"},BackColor:{XY:"-760px 0"},About:{XY:"-340px 0"},Help:{XY:"-340px 0"},FitWindow:{XY:"-100px -20px"},Blockquote:{XY:"-220px 0"},CreateDiv:{XY:"-260px -20px"},Cleanup:{XY:"-40px 0"},InsertDate:{XY:"-140px -20px"},
InsertTime:{XY:"-160px -20px"},TableProps:{XY:"-580px -20px"},CellProps:{XY:"-600px -20px"},RemoveTable:{XY:"-620px -20px"},RemoveColumn:{XY:"-640px -20px"},RemoveRow:{XY:"-660px -20px"},ColumnInsertAfter:{XY:"-680px -20px"},ColumnInsertBefore:{XY:"-700px -20px"},RowInsertAfter:{XY:"-720px -20px"},RowInsertBefore:{XY:"-740px -20px"},ColumnMergeAfter:{XY:"-600px -20px"},RowMergeAfter:{XY:"-820px -20px"},BaikeLink:{XY:"-500px -40px"},H1:{XY:"-960px 0"},H2:{XY:"-980px 0"},FontSize:{XY:"none"},FontName:{XY:"none"},
Video:{XY:"-700px -40px"},SpecialChar:{XY:"-239px 0"},MultiImage:{XY:"-380px -40px"},Code:{XY:"-980px -20px"},SetColumnAlignLeft:{XY:"-460px -40px"},SetColumnAlignRight:{XY:"-480px -40px"},SetColumnAlignCenter:{XY:"-420px -40px"},SetRowAlignLeft:{XY:"-460px -40px"},SetRowAlignRight:{XY:"-480px -40px"},SetRowAlignCenter:{XY:"-420px -40px"},SetRowAlignLeft:{XY:"-460px -40px"},SetRowAlignRight:{XY:"-480px -40px"},SetRowAlignCenter:{XY:"-420px -40px"},ClearDoc:{XY:"-520px 0"},InsertDate:{XY:"-140px -20px"},
InsertTime:{XY:"-160px -20px"},GoogleMap:{XY:"-940px -40px"},Reference:{XY:"-920px 0"}})})(jQEditor);
(function(b){b.lang("zh-cn",{Source:"\u67e5\u770b\u6e90\u4ee3\u7801",Save:"\u4fdd\u5b58",NewPage:"\u65b0\u5efa",Preview:"\u9884\u89c8",Cut:"\u526a\u5207(Ctrl + X)",Copy:"\u590d\u5236(Ctrl + C)",Paste:"\u7c98\u8d34(Ctrl + V)",Format:"\u683c\u5f0f",Bold:"\u52a0\u7c97(Ctrl + B)",BoldGroup:"\u52a0\u7c97(Ctrl + B)",Italic:"\u503e\u659c(Ctrl + I)",Underline:"\u4e0b\u5212\u7ebf(Ctrl + U)",StrikeThrough:"\u5220\u9664\u7ebf",JustifyLeft:"\u5de6\u5bf9\u9f50",JustifyRight:"\u53f3\u5bf9\u9f50",JustifyCenter:"\u5c45\u4e2d\u5bf9\u9f50",
Outdent:"\u51cf\u5c11\u7f29\u8fdb\u91cf",Indent:"\u589e\u52a0\u7f29\u8fdb\u91cf",InsertOrderedList:"\u7f16\u53f7\u5217\u8868",InsertUnorderedList:"\u9879\u76ee\u5217\u8868",SubScript:"\u4e0b\u6807",SuperScript:"\u4e0a\u6807",RemoveFormat:"\u6e05\u9664\u683c\u5f0f",common:{auto:"\u81ea\u52a8",ok:"\u786e\u5b9a",cancel:"\u53d6\u6d88",close:"\u5173\u95ed"},Undo:"\u64a4\u6d88(Ctrl + Z)",Redo:"\u91cd\u505a(Ctrl + Y)",Font:"\u5b57\u4f53",Image:{title:"\u63d2\u5165\u56fe\u7247"},Link:{title:"\u63d2\u5165\u8d85\u94fe\u63a5"},
ForeColor:"\u5b57\u4f53\u989c\u8272",BackColor:"\u80cc\u666f\u989c\u8272",PasteText:"\u7c98\u8d34\u4e3a\u7eaf\u6587\u672c",PasteToText:"\u7eaf\u6587\u672c\u7c98\u8d34\u6a21\u5f0f",PasteWord:"\u4eceWord\u7c98\u8d34",About:"\u5173\u4e8ejQEditor",Cleanup:"\u6e90\u7801\u6e05\u7406",Help:"\u5e2e\u52a9",Insert:"\u63d2\u5165",Remove:"\u5220\u9664",InsertTable:"\u63d2\u5165\u8868\u683c",TableGroup:"\u8868\u683c",Table:"\u8868\u683c",MergeCell:"\u5408\u5e76\u5355\u5143\u683c",ColumnMergeAfter:"\u5411\u53f3\u5408\u5e76\u5355\u5143\u683c",
RowMergeAfter:"\u5411\u4e0b\u5408\u5e76\u5355\u5143\u683c",CancelCellMerge:"\u53d6\u6d88\u5355\u5143\u683c\u5408\u5e76",Row:"\u884c",Column:"\u5217",Cell:"\u5355\u5143\u683c",TableProps:"\u8868\u683c\u5c5e\u6027",addTableCaption:"\u6dfb\u52a0\u8868\u683c\u540d\u79f0",RemoveTableCaption:"\u5220\u9664\u8868\u683c\u540d\u79f0",CellProps:"\u5355\u5143\u683c\u5c5e\u6027",RemoveTable:"\u5220\u9664\u6574\u4e2a\u8868\u683c",RemoveColumn:"\u5220\u9664\u5f53\u524d\u5217",RemoveRow:"\u5220\u9664\u5f53\u524d\u884c",
ColumnInsertAfter:"\u53f3\u4fa7\u63d2\u5165\u5217",ColumnInsertBefore:"\u5de6\u4fa7\u63d2\u5165\u5217",RowInsertAfter:"\u4e0b\u65b9\u63d2\u5165\u884c",RowInsertBefore:"\u4e0a\u65b9\u63d2\u5165\u884c",Append5Row:"\u884c\u5c3e\u8ffd\u52a05\u884c",Append5Column:"\u5217\u5c3e\u8ffd\u52a05\u5217",RowInsertBefore:"\u4e0a\u65b9\u63d2\u5165\u884c",addTableTitleRow:"\u6dfb\u52a0\u8868\u683c\u6807\u9898\u884c",RemoveTableTitleRow:"\u5220\u9664\u8868\u683c\u6807\u9898\u884c",TableMove:"\u79fb\u52a8",RowMoveBefore:"\u5411\u4e0a\u79fb\u52a8\u4e00\u884c",
RowMoveAfter:"\u5411\u4e0b\u79fb\u52a8\u4e00\u884c",RowMoveFirst:"\u6574\u884c\u79fb\u5230\u6700\u9876\u7aef",RowMoveLast:"\u6574\u884c\u79fb\u5230\u6700\u5e95\u7aef",SetTableWidth:"\u8868\u683c\u5bbd\u5ea6",TableWidthDefault:"\u6309\u8868\u683c\u6587\u5b57\u81ea\u9002\u5e94",TableWidthAuto:"\u6309\u9875\u9762\u5bbd\u5ea6\u81ea\u9002\u5e94",TableWidthFixed:"\u56fa\u5b9a\u4e3a\u5f53\u524d\u5217\u5bbd",TableWidthAverage:"\u5e73\u5747\u5206\u5e03\u5217\u5bbd",EmptyTable:"\u5220\u9664\u8868\u683c\u5185\u5bb9",
SetColumnWidth:"\u5217\u5bbd\u5ea6",SetColumnWidthAdd10:"\u52a010",SetColumnWidthReduce10:"\u51cf10",SetColumnWidthAdd50:"\u52a050",SetColumnWidthReduce50:"\u51cf50",SetColumnAlign:"\u6574\u5217\u5bf9\u9f50\u65b9\u5f0f",SetColumnAlignLeft:"\u5de6\u5bf9\u9f50",SetColumnAlignRight:"\u53f3\u5bf9\u9f50",SetColumnAlignCenter:"\u6c34\u5e73\u5c45\u4e2d",SetColumnValignTop:"\u5782\u76f4\u5c45\u9876",SetColumnValignCenter:"\u5782\u76f4\u5c45\u4e2d",SetRowAlign:"\u6574\u884c\u5bf9\u9f50\u65b9\u5f0f",SetRowAlignLeft:"\u5de6\u5bf9\u9f50",
SetRowAlignRight:"\u53f3\u5bf9\u9f50",SetRowAlignCenter:"\u6c34\u5e73\u5c45\u4e2d",SetRowValignTop:"\u5782\u76f4\u5c45\u9876",SetRowValignCenter:"\u5782\u76f4\u5c45\u4e2d",SetCellAlign:"\u5355\u5143\u683c\u5bf9\u9f50\u65b9\u5f0f",SetCellAlignLeft:"\u5de6\u5bf9\u9f50",SetCellAlignRight:"\u53f3\u5bf9\u9f50",SetCellAlignCenter:"\u6c34\u5e73\u5c45\u4e2d",SetCellValignTop:"\u5782\u76f4\u5c45\u9876",SetCellValignCenter:"\u5782\u76f4\u5c45\u4e2d",BaikeLink:"\u767e\u79d1\u94fe\u63a5(Ctrl + Q)",H1:"\u4e00\u7ea7\u76ee\u5f55(Ctrl + 1)",
H2:"\u4e8c\u7ea7\u76ee\u5f55(Ctrl + 2)",Search:"\u641c\u7d22",BaikeSearch:"\u767e\u79d1\u4e00\u4e0b",BaiduSearch:"\u767e\u5ea6\u4e00\u4e0b",GoogleSearch:"\u8c37\u6b4c\u4e00\u4e0b",HdImage:"\u63d2\u5165\u56fe\u7247",FontSize:"\u5b57\u53f7",FontName:"\u5b57\u4f53",Video:"\u63d2\u5165\u89c6\u9891",SpecialChar:"\u7279\u6b8a\u7b26\u53f7",AlignGroup:"\u5bf9\u9f50\u65b9\u5f0f",MultiImage:"\u6279\u91cf\u4e0a\u4f20\u56fe\u7247",Code:"\u63d2\u5165\u4ee3\u7801",AjaxUpload:"\u6b63\u5728\u4e0a\u4f20\u6587\u4ef6...",
List_123:"1,2,3...",List_a_b:"a,b,c...",List_A_B:"A,B,C...",List_i_ii:"i,ii,iii...",List_I_II:"I,II,II...",List_circle:"\u25cb \u5c0f\u5706\u5708",List_disc:"\u25cf \u5c0f\u5706\u70b9",List_square:"\u25a0 \u5c0f\u65b9\u5757",AutoFormat:"\u81ea\u52a8\u6392\u7248",CancelAutoFormat:"\u81ea\u52a8\u6392\u7248",ClearDoc:"\u6e05\u7a7a\u5185\u5bb9",InsertDate:"\u63d2\u5165\u65e5\u671f",InsertTime:"\u63d2\u5165\u65f6\u95f4","Date_Y-m-d":"Y-m-d","Date_Y/m/d":"Y/m/d","Date_Y.m.d":"Y.m.d","Date_Y\u5e74m\u6708d\u65e5":"Y\u5e74m\u6708d\u65e5",
GoogleMap:"Google\u5730\u56fe",Reference:"\u53c2\u8003\u8d44\u6599"})})(jQEditor);
(function(b){b.mod("Utils",{escape:function(b){return!b||typeof b!=="string"?b:b.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/ /g,"&nbsp;")},unhtml:function(){function b(e){return h[e]}var h={"&":"&amp","<":"&lt;",'"':"&quot;",">":"&gt;"," ":"&nbsp;"};return function(g){return!g||typeof g!=="string"?g:g.replace(/[&<"> ]/g,b)}}(),checkTag:function(b){if(!b||typeof b!=="string")return b;for(var h="",g=/<(\/?\w+)/ig,d=[],c;(c=g.exec(b))!=null;)c=c[1].toLowerCase(),
/^(img|br|hr|input|link|meta|param|embed|p|area)$/i.test(c)||(c.indexOf("/")==-1?d.push(c):"/"+d[d.length-1]==c&&d.pop());d.length>6?h="\u63d0\u793a\uff1a\n"+d.length+"\u4e2a\u6807\u7b7e "+d.slice(0,6).join("-&gt;")+"... \u672a\u95ed\u5408\uff0c\u8bf7\u68c0\u67e5\u3002":d.length&&(h="\u63d0\u793a\uff1a\n\u6807\u7b7e "+d.join("-&gt;")+" \u672a\u95ed\u5408\uff0c\u8bf7\u68c0\u67e5\u3002");return h},strlen:function(b){return b&&typeof b=="string"?b.replace(/[^\x00-\xff]/g,"xx").length:0},saveToInput:function(e){e=
e||b.eid;b.options[e].textarea.value=this.get(e)},clone:function(b){for(var h=[],g=0,d=b.length;g<d;g++)h[g]=b[g];return h}})})(jQEditor,jQuery);
(function(b,e){var h=b.consts,g=[],d,c="onready,oncreate,oncomplete,onafteraction,onmonitor,onscroll,mouseover,mousedown,mouseup,click,contextmenu,keyup,keydown,paste,load,dragenter,dragover,drop,dragleave,dragend".split(",");b.mod("Event",{getElement:function(){return f.element[b.eid]},getTarget:function(){var a=this.getElement();if(a)return a.target},setElement:function(a){f.saveCursorElem(a)},handlers:{},bind:function(a,d){if(e.inArray(a,c)===-1)return b.log("warning","\u7f16\u8f91\u5668\u4e0d\u5141\u8bb8\u6ce8\u518c"+
a+"\u7c7b\u578b\u7684\u4e8b\u4ef6");a.substr(0,2)==="on"?(typeof this.handlers[a]==="undefined"&&(this.handlers[a]=[]),this.handlers[a].push(d)):f.bind(a,d);b.log("run","\u6ce8\u518c\u7f16\u8f91\u5668"+a+"\u7c7b\u578b\u4e8b\u4ef6")},trigger:function(a){if(e.inArray(a.type,c)===-1)return b.log("warning","\u7f16\u8f91\u5668\u6ca1\u6709\u6ce8\u518c"+a.type+"\u7c7b\u578b\u7684\u4e8b\u4ef6");if(this.handlers[a.type]instanceof Array){var f=this.handlers[a.type];a.option=b.get("option");a.dom=b.get("document");
b.log("event","\u89e6\u53d1\u4e8b\u4ef6"+a.type+"\uff0c\u5b58\u5728\u4e2a"+f.length+"\u6ce8\u518c\u4e8b\u4ef6");for(var d=0,i=f.length;d<i;d++)f[d](a)}},remove:function(a,f){if(this.handlers[a]instanceof Array){for(var b=this.handlers[a],c=0,d=b.length;c<d;c++)if(b[c]===f)break;b.splice(c,1)}}});d=b.Event=b.mod("Event");d.bind("oncreate",function(){var a=f;a.mousedown();a.mouseup();a.click();a.contextmenu();a.keyup();a.keydown();a.paste();a.dragenter();a.dragover();a.drop();a.dragleave();a.dragend();
a.load()});d.bind("onready",function(){a.click();a.scroll()});var a={click:function(){function a(j){var f=e(j.target);if(h.mozilla&&j.button!==0||f.closest(".jqe-menu").size()||f.closest(".jqe-panel").size()||f.closest(".jqe-toolbar").size()||f.closest(".jqe-panel-overlay").size())return!0;(e(".jqe-menu:visible").size()||e(".jqe-panel:visible").size())&&b.hidePanel()}h.IE?e(document).mousedown(a):e(window).mousedown(a)},scroll:function(){e(window).scroll(function(a){b.Event.trigger({type:"onscroll",
event:a})})}},f={element:{},bind:function(a,f){var b=this[a+"s"];e.isArray(b)&&b.push(f);return this},init:function(){this.extend("mouseover").extend("mousedown").extend("mouseup").extend("click").extend("contextmenu").extend("keyup").extend("keydown").extend("paste").extend("load");this.extend("dragenter").extend("dragover").extend("drop").extend("dragleave");this.extend("dragend");return this},extend:function(a){var f=this;f[a+"s"]=[];g[a]=0;f[a]=function(){var c=b.get("document"),i=b.get("window"),
i=a=="load"?i:c;if(h.IE&&a==="paste")i=c.body;e(i).bind(a,function(b){var c=!0,i=f[a+"s"],d,e;for(e in i)d=i[e],typeof d=="function"&&!1===d(this,b)&&(c=!1);return c})};return f},saveCursorElem:function(a){var f=this.element[b.eid]={target:a[0]},c=a.closest("a"),i=a.closest("img"),d=a.closest("h2"),e=a.closest("h3"),g=a.closest("pre"),h=a.closest("sub"),q=a.closest("sup"),s=a.closest("td,th"),r=s.closest("tr"),t=r.closest("table"),w=a.closest("ol"),x=a.closest("ul"),y=a.closest("embed");c.size()&&
(f.a=c[0]);i.size()&&(f.img=i[0]);d.size()&&(f.h2=d[0]);e.size()&&(f.h3=e[0]);g.size()&&(f.pre=g[0]);h.size()&&(f.sub=h[0]);q.size()&&(f.sup=q[0]);s.size()&&(f.cell=s[0]);r.size()&&(f.row=r[0]);t.size()&&(f.table=t[0]);y.size()&&(f.embed=y[0]);w.size()&&(f.ol=w[0]);x.size()&&(f.ul=x[0]);b.log("run","\u8bb0\u5f55\u5149\u6807\u5904\u5143\u7d20"+a[0].nodeName)}};f.init();f.bind("mouseover",function(a){a=e("body",a).attr("id");b.setEid(a)});f.bind("mousedown",function(a,b){var c=e(b.target);f.saveCursorElem(c)});
f.bind("mouseup",function(a,f){var c=e("body",a).attr("id"),i=b.mod("Menu"),d=b.mod("Selection"),g=b.mod("Toolbar");b.setEid(c);d&&d.saveRange();g&&g.updateState();i&&i.set(f,"mouseup")});f.bind("click",function(a,f){e(f.target);var c=b.mod("Selection"),i=b.mod("Menu");if(h.mozilla&&f.button!==0)return!0;c&&c.getText();i&&i.set(f,"click");if(c&&e.browser.webkit&&f.target.nodeName.toLowerCase()==="img"){var d=f.target,i=a.createRange(),i=c.getRange();i.setStartBefore(d);i.setEndAfter(d);i.selectNode(d);
c=c.get();c.removeAllRanges();c.addRange(i)}});f.bind("contextmenu",function(a,f){e(f.target);var c=b.mod("Selection"),i=b.mod("Menu");if(c&&(c=""+c.get("text"),f.ctrlKey&&c))return!0;b.hidePanel();return i?i.set(f,"contextmenu"):!0});f.bind("keyup",function(a,c){var d=b.mod("Selection"),i=b.mod("Toolbar");if(/^(37|38|39|40)$/.test(c.keyCode||c.which||c.charCode))d&&(d.saveRange(),(d=d.getElementByCursor())&&f.saveCursorElem(e(d))),i&&i.updateState()});d.bind("keydown",function(a,f){if(e.inArray(f.keyCode||
f.which||f.charCode,[16,17,18,20,27,33,34,35,36,37,38,39,40,44,45,91,113,115,118,119,122,144])>-1||f.ctrlKey||f.altKey)return!0;clearTimeout(g.keydown);g.keydown=setTimeout(function(){b.monitor("keydown")},1E3)});f.bind("load",function(){b.log("run",b.eid+" onload")})})(jQEditor,jQuery);
(function(b,e){var h=b.consts,g=b.mod("Event");b.mod("Selection",{get:function(b){b=b||"text";return"text"==b?d.get():"html"==b?d.get("html"):"cursorElement"==b||"element"==b?g.getTarget():d.getSelection()},getText:function(){return d.get()},getHtml:function(){return d.get("html")},getElement:function(){return g.getTarget()},set:function(b){d.set(b)},saveRange:function(){return d.saveRange()},getRange:function(){return d.getRange()},getElementByCursor:function(){return d.getElementByCursor()},selectedText:function(b){return d.selectedText(b)},
selectNode:function(b,a){d.init();return d.selectNode(b,a)},getBookmark:function(){d.init();return d.getBookmark()},clearBookmark:function(){return d.clearBookmark()},moveToBookmark:function(b){d.init();return d.moveToBookmark(b)}});var d={dom:null,win:null,ranges:{},init:function(){this.dom=b.get("document");this.win=b.get("window")},get:function(c){c=c||0;this.init();var a="",f=this.dom,j=this.win;if(!f||!j)return b.log("run",""),"";f.selection?a=c?f.selection.createRange().htmlText:f.selection.createRange().text:
j.getSelection?a=j.getSelection():f.getSelection&&(a=f.getSelection());return a?a:""},getHtml:function(){return this.get(1)},getSelection:function(){var b=self.win,a=self.dom;return h.IE?a.selection:b.getSelection()},set:function(c){if(c!==""){this.init();b.focus();var a=this.dom,f=this.ranges[b.eid];if(h.IE)if(f){f.select&&f.select();try{f.pasteHTML?f.pasteHTML(c):b.$("body").append(c)}catch(j){}}else b.$("body").prepend(c),b.focus();else b.Plugin&&b.Plugin.inserthtml==="base"?a.execCommand("inserthtml",
!1,c):f&&f.insertNode?(f.collapsed||f.deleteContents(),c=f.createContextualFragment(c),a=c.lastChild,f.insertNode(c),f.setStartAfter(a),f.setEndAfter(a),f.collapse(!1),c=this.win.getSelection(),c.removeAllRanges(),c.addRange(f)):e("body",a).append(c)}},getRange:function(){this.init();var b=this.win,a=this.dom,f;if(a.selection)f=a.selection.createRange();else if(b.getSelection)if(b=b.getSelection(),b.getRangeAt)try{f=b.getRangeAt(0)}catch(j){}else f=a.createRange(),f.setStart(b.anchorNode,b.anchorOffset),
f.setEnd(b.focusNode,b.focusOffset);return f},saveRange:function(){var c;this.init();c=this.getRange();return this.ranges[b.eid]=c},getElementByCursor:function(){this.init();var b=this.dom,a=this.getRange(),b=b.body;if(h.IE)b=a.item?a.item(0):a.parentElement();else try{b=a.commonAncestorContainer;for(!a.collapsed&&a.startContainer==a.endContainer&&a.startOffset-a.endOffset<2&&a.startContainer.hasChildNodes()&&(b=a.startContainer.childNodes[a.startOffset]);b.nodeType==3&&b.parentNode;)b=b.parentNode}catch(f){}return b},
getCommonAncestor:function(b){return b.startContainer||b.parentElement&&b.parentElement()||b.commonParentElement&&b.commonParentElement()},selectedText:function(c){var a=!1;if(c&&e.trim(c).length){var f=this.getRange();h.IE?f&&f.findText(c)&&(f.select(),a=!0):a=b.get("window").find(c);this.saveRange()}return a},selectNode:function(c,a){var f=b.get("document"),c=typeof c==="object"?c:f.body.childNodes[0];b.focus();f=this.saveRange();h.IE?(f.moveToElementText(c),f.select()):f.selectNodeContents(c);
typeof a!=="undefined"&&f.collapse(a)},getBookmark:function(){this.init();var b=this.dom;if(h.IE)return b=b.selection.createRange(),b.getBookmark()},clearBookmark:function(){},moveToBookmark:function(b){this.init();var a=this.dom;h.IE&&b&&a.body.createTextRange&&(a=a.body.createTextRange(),a.moveToBookmark(b),a.select())}}})(jQEditor,jQuery);
(function(b,e){function h(){for(var a=e(".jqe-toolbar"),f=0,c=a.length;f<c;f++){var d=a.eq(f),h=d.attr("eid"),n=d.parent().width(),p=d.find(".jqe-message"),o=Math.round((n-p.width())/2),q=b.get("option",h),s=e(window).scrollTop(),r=e("#"+h+" .jqe-content"),t=0;g.IE6?n+=1:n-=2;d.width(n);d.find(".jqe-list").width(n);p.css({left:o});d.parent().height(d.height());if(h&&(b.setEid(h),q=b.get("option",h)))d.removeClass(q.fixedClassName),q.toolbarTop=d.offset().top;if(g.IE6&&!s)s=document.documentElement.scrollTop;
t=r.height()+r.offset().top;s<q.toolbarTop||s>t?(d.removeClass(q.fixedClassName),g.IE6&&d.css("top",0),b.log("run","\u5de5\u5177\u680f\u53d6\u6d88\u6d6e\u52a8")):(d.addClass(q.fixedClassName),b.log("run","\u5de5\u5177\u680f\u5f00\u59cb\u6d6e\u52a8"),g.IE6&&d.css("top",s))}}var g=b.consts,d={},c=b.mod("Event"),a=0;b.mod("Toolbar",{get:function(a){a=a||b.eid;return d[a]},getMessage:function(a){a=a||b.eid;return d[a].find(".jqe-message")},set:function(a){f.init(a).setHtml().setEvent()},selected:function(a){var f=
b.getButtonByName(a.name).closest(".jqe-button"),a=e("#panel_"+a.name+", #jqe-"+a.name+"-0");e(".jqe-button-hover").removeClass("jqe-button-hover");a.is(":visible")?f.addClass("jqe-button-hover"):f.removeClass("jqe-button-hover")},updateState:function(){f.updateState()},getCurrent:function(){for(var a=e(document).scrollTop(),f=e(".jqeditor"),c="",i,g=0,h=0,p=f.length;h<p;h++)if(i=f.eq(h),g=i.offset().top,bottom=g+i.height(),maxTop=a+e(window).height(),g>=a&&bottom<maxTop||g<a&&bottom>a&&bottom<maxTop||
g>=a&&g<maxTop&&bottom>maxTop||g<a&&bottom>maxTop){c=i.attr("id");break}return c?(b.setEid(c),d[c]):null},lock:function(){this.get().children(".jqe-list").css("opacity",0.3).bind("mousedown.lock",function(){b.alert("\u63d0\u793a\uff1a\u5de5\u5177\u680f\u88ab\u9501\u5b9a\uff0c\u8bf7\u7a0d\u7b49...");return!1});f.locked=1},unlock:function(){this.get().children(".jqe-list").css("opacity",1).unbind("mousedown.lock");f.locked=0},islock:function(){return f.locked},resetClickButton:function(){f.clickButton[b.eid]=
null}});c.bind("oncreate",function(){var a=b.mod("Toolbar"),f=b.get("option");a.set(f)});c.bind("onready",function(){setTimeout(function(){h()},200)});(!e.browser.msie||e.browser.version>6)&&e(window).bind("resize",function(){clearTimeout(a);a=setTimeout(function(){h()},300)});c.bind("onafteraction",function(a){var f=b.mod("Toolbar");b.get("option");a.Plugin.type=="base"&&f.updateState();f.selected(a.Plugin)});var f={option:null,clickButton:{},locked:0,init:function(a){this.option=a;return this},
setHtml:function(){var a=this.option,f;f=b.config("toolbars");var c=null,i=a.id,h=[],n=b.lang(a.lang),p=e("#"+i),o,q,c=typeof a.toolbar==="string"&&f[a.toolbar]?f[a.toolbar]:a.toolbar&&typeof a.toolbar==="object"?a.toolbar:f["default"];h.push('<ul class="jqe-list jqe-'+a.skin+'">');for(var s=0,r=c.length;s<r;s++)o=c[s],q="",(f=b.plugin(o))?e.inArray("plugin."+o,a.disabled)>-1?(b.log("warning","\u7f16\u8f91\u5668 "+i+" \u540d\u5b57\u4e3a"+o+"\u7684\u63d2\u4ef6\u88ab\u914d\u7f6e\u6587\u4ef6\u7981\u7528\u4e86"),
f.disable()):(typeof n[o]=="string"?q=n[o]:typeof n[o]=="object"&&(q=n[o].length?n[o][0]+n[o][1]:n[o].title),f.title=q,h.push('<li id="'+i+"-"+o+'" class="jqe-button '+o+'"'),h.push(' style="'),typeof f.menu==g.typeof_function?f.icon&&f.icon.width?h.push(" width:"+(f.icon.width+12)+"px;"):typeof f.menu==g.typeof_function&&h.push(" width:34px;"):f.icon&&f.icon.width&&h.push(" width:"+f.icon.width+"px;"),h.push('"'),h.push(">"),h.push('<div style="display:inline-block;" name="'+o+'" title="'+q+'" _title="'+
q+'">'),h.push('<a onclick="return false" tabIndex="-1" hidefocus="true" '),f.icon&&(h.push(' style="'),f.icon.width&&h.push(" width:"+f.icon.width+"px;"),h.push('"')),h.push(' class="jqe-icon '+o+'" href="jqe:'+q+"("+o+')">'),h.push('<span class="jqe-icon '+o+'"'),f.icon&&(h.push(' style="'),f.icon.width&&h.push(" width:"+f.icon.width+"px;"),h.push('"')),h.push(">"),f.icon&&f.icon.text&&h.push(f.icon.text),h.push("</span>"),/(ForeColor|BackColor)/i.test(o)&&h.push('<span class="selected-color"></span>'),
h.push("</a>"),typeof f.menu==g.typeof_function&&(h.push('<a onclick="return false" tabIndex="-1" hidefocus="true" '),f.menuTitle&&h.push(' title="'+f.menuTitle+'"'),h.push(' class="jqe-button-menu" href="jqe:'+q+'"><span></span></a>')),h.push("</div>"),h.push("</li>")):b.log("warning","\u7f16\u8f91\u5668 "+i+" \u540d\u5b57\u4e3a"+o+"\u7684\u63d2\u4ef6\u4e0d\u5b58\u5728");h.push("</ul>");h.push('<div class="jqe-message"></div>');a=p.find(".jqe-toolbar");a.size()||(p.prepend('<div><div class="jqe-toolbar"></div></div>'),
a=p.find(".jqe-toolbar"));a.html(h.join("")).attr("eid",i);d[i]=a;return this},action:function(a,f){if(a.is(".jqe-icon, .jqe-button-menu"))b.action(a,f);else{var c=b.mod("Panel"),d=b.mod("Menu");if(self.locked)return!1;d&&d.hide();c&&c.hide()}},setEvent:function(){var a=this,f=d[a.option.id];f.click(function(f){a.action(e(f.target),f);return!1});f.bind("mousedown",function(f){if(a.locked)return!1;f=e(f.target).closest(".jqe-icon, .jqe-button-menu");f.size()&&(f.addClass("mousedown"),f=f.closest(".jqe-button").attr("id").split("-"),
a.clickButton[f[0]]=f[1]);return!1}).bind("mouseup",function(f){if(a.locked)return!1;f=e(f.target).closest(".jqe-icon, .jqe-button-menu");f.size()&&f.removeClass("mousedown");return!1});f.find("div[name]").bind("mouseover",function(){var f=e(this),b=f.parent(),c=b.attr("id").split("-");if(a.locked||f.hasClass("disabled")||a.clickButton[c[0]]===c[1])return!1;b.hasClass("jqe-button-hover")||b.addClass("jqe-button-hover");a.clickButton[c[0]]=null;return!1}).bind("mouseout",function(){var f=e(this),b=
f.parent(),c=b.attr("id").split("-");if(a.locked||f.hasClass("disabled")||a.clickButton[c[0]]===c[1])return!1;b.hasClass("jqe-button-hover")&&b.removeClass("jqe-button-hover");return!1});b.debug||f.bind("contextmenu",g.returnFalse);return this},updateState:function(){for(var a=b.eid,f=b.get("document"),c=g.baseCmds,d,h=!1,n=0,p=c.length;n<p;n++){d=c[n];try{h=f.queryCommandState(d)}catch(o){h=!1}h?e("#"+a+"-"+d).addClass("jqe-button-checked"):e("#"+a+"-"+d).removeClass("jqe-button-checked")}return this}}})(jQEditor,
jQuery);
(function(b,e){function h(){return"Dialog"==b.get("option").panel?a:c}var g=b.consts,d=!1;b.mod("Panel",{get:function(a){return e("#panel_"+a)},set:function(a){b.get("option");h().set(a);d=!0},hide:function(){h().hide();d=!1},error:function(a){h().error(a)},notice:function(a){h().notice(a)},lock:function(a){a.find(".jqe-panel-button input, .jqe-panel-close").css("opacity",0.3).click(function(){b.alert("\u63d0\u793a\uff1a\u7a97\u53e3\u6b63\u5728\u8fdb\u884c\u6570\u636e\u5904\u7406\uff0c\u8bf7\u7a0d\u7b49...");return!1})},
unlock:function(a){a.find(".jqe-panel-button input, .jqe-panel-close").css("opacity",1).unbind("click")},isShow:function(a){return a?(a=e("#panel_"+a.name),a.size()&&a.is(":visible")&&b.eid==a.attr("eid")):d}});var c={eid:"",cmd:"",target:null,panel:null,panel_id:"",set:function(a){var j,c;c=this.panel_id="panel_"+a.name;j=e("#"+c);b.log("run","\u5f00\u59cb\u6784\u5efa\u9762\u677f"+c);if(j.size()){if(j.is(":visible")&&b.eid==j.attr("eid"))return b.hidePanel(),j}else if(j=this.build(a),this.setSize(a),
typeof a.one==="function")a.one(j,a);this.panel=j;a.panel=j;this.reset();typeof a.callback==="function"&&a.callback(j,a);this.show(a);return j},hide:function(){var a,j=e(".jqe-panel:visible");a=j.attr("id");if(!a)return!1;if(a){a=a.replace("panel_","");a=b.plugin(a);if(a.islock())return!1;if(typeof a.onclose==="function")a.onclose(j,a);j.hide()}e(".jqe-button-hover").removeClass("jqe-button-hover");this.hideOverlay();return!0},show:function(a){b.log("run","\u5f00\u59cb\u663e\u793a\u9762\u677f("+a.name+
")");var j=this.panel,c=a.title||a.getTitle(),d=j.find(".jqe-panel-title");c?d.unbind("selectstart").bind("selectstart",function(){return!1}).show().find("strong").text(c):d.hide();this.hide();this.cmd=a.name;this.eid=b.eid;j.show().attr("eid",b.eid);b.log("run","\u9762\u677f("+a.name+")\u663e\u793a\u7ed3\u675f");this.setPosition(a);a.config&&a.config.overlay&&this.showOverlay();a=j.find(":text:visible,textarea:visible");a.size()&&a.focus()},build:function(a){var j=this,c=[],d,i=j.panel_id;c.push('<div id="'+
i+'" class="jqe-panel');a.isNeedTitle?c.push('"><div class="jqe-panel-title"><strong></strong><a name="panel-close" class="jqe-panel-close" title="\u5173\u95ed">X</a></div>'):c.push(' jqe-panel-notitle">');c.push('<form onsubmit="return false" ');if(a.form&&a.form.action){var h=a.form;h.target=h.target||"jqe_iframe_submit";h.method=h.method||"post";h.enctype=h.enctype||"multipart/form-data";c.push(' action="'+h.action+'" method="'+h.method+'" enctype="'+h.enctype+'"')}c.push(">");c.push('<div class="jqe-panel-body"><div class="jqe-panel-notice"></div>');
c.push(a.panelHtml());c.push('<div class="jqe-panel-error"></div></div>');if(typeof a.get==="function"||typeof a.ok==="function")c.push('<div class="jqe-panel-button">'),c.push('<input name="panel-submit" type="submit" value=" \u786e \u5b9a "/>'),c.push('<input name="panel-close" type="button" value=" \u53d6 \u6d88 "/>'),c.push("</div>");c.push("</form>");c.push("</div>");e("body").append(c.join(""));d=j.panel=e("#"+i);d.click(function(b){var f;f=(j.target=e(b.target)).closest("[name]").attr("name"),
b=f;return j.action(a,d,b)===!1?!1:null}).mouseover(function(){var a=e(this).attr("id").replace("panel_","");e("#"+b.eid+"-"+a).addClass("jqe-button-hover")});(c=a.killEvents)&&e.isArray(c)&&d.bind(c.join(" "),g.returnFalse);b.debug||d.bind("contextmenu",g.returnFalse);return d},setSize:function(a){var c=this.panel,d={width:600},g=e("#"+b.eid).width();a.config&&(d=e.extend(d,a.config));a=d.width<=g?d.width:g;c.css({width:a});d.height&&c.find(".jqe-panel-body").css({height:d.height});d.HEIGHT&&c.css({height:d.HEIGHT})},
setPositionWithButton:function(a){var c={width:600},d=a.target.closest(".jqe-button"),g=e("#"+b.eid).find(".jqe-toolbar"),i=g.width();a.config&&(c=e.extend(c,a.config));var a=c.width<=i?c.width:i,h=g.offset(),n=d.offset(),g=n.top+d.height()+1;c.align=="left"?c=n.left:i>a&&a>400?c=h.left+(i-a)/2-3:(c=n.left,c+a>h.left+i&&(c=c-a+d.width()));return{top:g,left:c}},setPosition:function(a){var c=a.event,d,g=a.config,i=this.panel.width(),h=this.panel.height(),n=e(document).scrollTop()||document.documentElement.scrollTop;
b.log("run","\u5f00\u59cb\u8bbe\u7f6e\u9762\u677f\u663e\u793a\u4f4d\u7f6e("+a.name+")");/^(center|middle)$/i.test(g.position)?(d=(e(window).width()-i)/2,c=n+(e(window).height()-h)/2,d={left:d,top:c}):c&&(e(c.target).closest(".jqe-button").size()?d=this.setPositionWithButton(a):(d=c.pageX-80,c=c.pageY-40,d<20&&(d=20),c<20&&(c=20),d={left:d,top:c}));e("body").css("position")=="relative"&&(c=(e(window).width()-e("body").width())/2,c>0&&(d.left-=c));return this.panel.css(d)},action:function(a,c,d){var e=
this.target,i="",d=d||e.closest("[name]").attr("name");if("panel-close"===d){if(this.hide())return b.pluginExit(),!1}else if("panel-submit"===d){if(typeof a.check==="function"&&!a.check(c,a))return!1;if(typeof a.ok==="function")a.ok(c,a)&&(this.hide(),b.monitor(a.name));else if(typeof a.get==="function"&&(i=a.get(c,a,e)))a.pasteHTML(i),this.hide(),b.monitor(a.name);b.pluginExit()}else if(a.action)return b.Plugin=a,(i=a.action(e,c,a))?(a.pasteHTML(i),this.hide(),b.monitor(a.name),b.pluginExit(),!1):
!1===i?(b.pluginExit(),!1):!0},reset:function(){var a=this.panel;a.find(".jqe-panel-error").html("").hide();a.find("form").trigger("reset");var c="",d=a.find(":text[fill=Selection]");d.size()&&((a=b.mod("Selection"))&&(c=a.get("text")),c&&d.val(c))},error:function(a){this.panel.find(".jqe-panel-error").html(a).show()},notice:function(a){this.panel.find(".jqe-panel-notice").html(a).show()},showOverlay:function(){var a=e(".jqe-panel-overlay"),b=e(document).width(),c=e(document).height();e(window).width();
var d=e(window).height();a.size()||(e("body").append('<div class="jqe-panel-overlay"></div>'),a=e(".jqe-panel-overlay"));a.show().height(c);g.IE6&&(c>=d&&(b-=21),a.width(b))},hideOverlay:function(){e(".jqe-panel-overlay").hide()}},a={show:function(){}}})(jQEditor,jQuery);
(function(b){b.mod("Confirm",{config:{info:"\u60a8\u7684\u5185\u5bb9\u8fd8\u6ca1\u6709\u4fdd\u5b58\uff01"},set:function(e){e=e||this.config.info;if(typeof window.onbeforeunload=="function")return!1;window.onbeforeunload=function(){return e};b.log("run","\u8bbe\u7f6e\u4e86\u79bb\u5f00\u63d0\u793a\uff1a"+e);return!0},clear:function(){window.onbeforeunload=null;b.log("run","\u53d6\u6d88\u4e86\u79bb\u5f00\u63d0\u793a")}})})(jQEditor);
(function(b,e){function h(a){clearTimeout(c.hidePanel);c.hidePanel=setTimeout(function(){b.hidePanel()},a)}var g=b.consts,d=!1,c={mouseover:0,mouseout:0,hidePanel:0},a=b.mod("Event");a.bind("keydown",function(){h(1E3)});a.bind("mousedown",function(){h(0)});b.mod("Menu",{add:function(a,b){f.add(a,b)},set:function(a,b){f.type=b;return f.set(a)},hide:function(){f.hide()},isShow:function(a){return a?(a=e("div[id^=jqe-"+a.name+"]"),a.size()&&a.is(":visible")&&b.eid==a.attr("eid")):d}});var f={type:"",
menu:null,click_objs:[],contextmenu_objs:[],mouseup_objs:[],add:function(a,b){this[a+"_objs"]||(this[a+"_objs"]=[]);this[a+"_objs"].push(b)},set:function(a){var f=null,c=null,d=this[this.type+"_objs"],g,h=b.mod("Selection"),p=null,o="";h&&(o=""+h.getText(),p=h.getElement(),typeof p==="object"&&e.nodeName(p,"img")&&(o=p));try{for(var q in d)if(f=d[q],f.check(o||p,a)){g="jqe-"+this.type+"-"+q;this.hide();c=this.build(g,f,p);break}}catch(s){b.log("error","\u83dc\u5355\u63d2\u4ef6"+(f.title||"\u672a\u77e5")+
"\u9047\u5230\u9519\u8bef\uff0c"+s.description+"\uff0cmenuPlugin.check: "+f.check)}return c?(this.menu=c,this.setPosition(a),this.show(),b.log("run","\u663e\u793a\u83dc\u5355\uff1a"+f.title),!1):!0},build:function(a,f,c){var d=this,g=[],h=null,p=b.get("option"),o=b.lang(p.lang),q=b.icon(p.skin),s={};menubody=f.getHtml(c);if(typeof menubody==="string")g.push('<div id="'+a+'" class="jqe-menu" eid="'+b.eid+'">'),g.push(menubody),g.push("</div>");else if(typeof menubody==="object"&&menubody.html)menubody.className?
g.push('<div id="'+a+'" class="jqe-menu '+menubody.className+'" eid="'+b.eid+'">'):g.push('<div id="'+a+'" class="jqe-menu">'),g.push(menubody.html),g.push("</div>");else if(typeof menubody==="object"){g.push('<div id="'+a+'" class="jqe-menu" eid="'+b.eid+'">');g.push('<ul class="jqe-menu-list jqe-'+p.skin+'">');for(r in menubody)if("-"===r.substr(0,1))g.push('<li menutype="1" class="jqe-menu-separator"></li>');else{if((c=o[r])&&typeof c=="object")c=c.title;g.push('<li menutype="1" menuname="'+r+
'" ');menubody[r]||g.push(' class="jqe-menu-disabled"');g.push('><a name="'+r+'" href="jqe:menu-'+r+'" onclick="return false">');g.push('<span class="jqe-menu-icon '+r);q[r]||g.push(" jqe-menu-noicon");g.push('"></span>');g.push('<span class="jqe-menu-text">'+c+"</span>");if(menubody[r]==2||typeof menubody[r]==="object"){g.push('<span class="jqe-shortcut-key"></span>');g.push('<span class="jqe-menu-arrow"></span>');g.push('</a><div class="jqe-menu jqe-submenu">');if(menubody[r]==2){if(c=b.plugin(r))g.push(c.panelHtml()),
s[r]=c}else{g.push('<ul class="jqe-menu-list jqe-'+p.skin+'">');for(subname in menubody[r]){if((c=o[subname])&&typeof c=="object")c=c.title;g.push('<li menutype="2" ');"-"===subname.substr(0,1)?g.push(' class="jqe-menu-separator">'):(g.push('><a name="'+subname+'"><span class="jqe-menu-icon '+subname),q[subname]||g.push(" jqe-menu-noicon"),g.push('"></span><span class="jqe-menu-text">'+c+"</span></a>"));g.push("</li>")}g.push("</ul>");g.push('<div class="jqe-menu-vertical-separator"></div>')}g.push("</div>")}else g.push("</a>");
g.push("</li>")}g.push("</ul>");g.push('<div class="jqe-menu-vertical-separator"></div>');g.push("</div>")}e("body").append(g.join(""));h=e("#"+a);typeof f.callback==="function"&&f.callback(h);h.click(function(a){var b=e(a.target);return b.closest("li").hasClass("jqe-menu-disabled")?!1:d.action(b.closest("a[name]"),a)}).mousedown(function(a){return e(a.target).is(":input")?!0:!1}).mouseover(function(){var a=e(this).attr("id").replace(/(^jqe-|-\d\d?$)/g,"");e("#"+b.eid+"-"+a).addClass("jqe-button-hover")});
h.find("li").hover(function(){var a=e(this),b=a.children("div.jqe-submenu");a.attr("menutype")=="1"&&h.find("div.jqe-submenu").hide();a.children("a").addClass("hover");if(b.size()){b.show();var f=e(document).scrollTop()+e(window).height(),a=b.height()+a.offset().top;a>f&&b.css("top",f-a-20)}},function(){e(this).find("a.hover").removeClass("hover")});for(var r in s)(function(a){if(typeof a.one==="function"){var f=h.find("li[menuname="+r+"]"),c=f.find(".jqe-submenu");f.click(function(a){e(a.target);
return!1});a.one(c,a);c.click(function(f){e(f.target);if(f=a.action(e(f.target),c,a))a.pasteHTML(f),b.monitor(a.name),d.hide()})}})(s[r]);return h},action:function(a,f){var c=a.attr("name");c&&b.action(c,f)&&this.menu.hide();return a.closest(".jqe-shortcut-menu").size()?!0:!1},show:function(){this.menu.show();if(g.IE6){var a=this.menu.height();this.menu.find(".jqe-menu-vertical-separator").height(a)}d=!0},hide:function(){e(".jqe-menu").unbind("click").remove();e(".jqe-button-hover").removeClass("jqe-button-hover");
d=!1},setPosition:function(a){var f;f=b.get("iframe");var c=e(f).offset(),d=e(a.target),g=e(document).scrollTop()||document.documentElement.scrollTop;d.closest(".jqe-button").size()?(d=d.closest(".jqe-button"),c=d.offset(),f=c.left,a=c.top+d.height()+1,d.addClass("jqe-button-hover")):a.button===2||d.is("img")?(f=a.clientX+c.left,a=a.clientY+c.top,this.type=="contextmenu"?(f+=10,a+=10):this.type=="mouseup"&&(a+=10),d=g+e(window).height()-this.menu.height()-20,a=a<d?a:d):(f=a.clientX+c.left,a=a.clientY+
c.top+20,d=g+e(window).height()-this.menu.height(),a>d&&(a=d-50));e("body").css("position")==="relative"&&(d=(e(window).width()-e("body").width())/2,d>0&&(f-=d));return this.menu.css({left:f,top:a})}}})(jQEditor,jQuery);
(function(b){var e=b.consts,h={},g,d,c=b.mod("Event");setTimeout(function(){g=b.mod("Confirm");d=b.mod("Selection")},60);b.mod("History",{Redo:function(){a.redo()},Undo:function(){a.undo()},ischange:function(){return a.ischange()}});c.bind("onmonitor",function(){a.ischange()&&a.add()});c.bind("oncreate",function(b){var c=b.value.id,b=b.html;a.stack[c]=[];a.bookmarks[c]=[];h[c]=b;a.pointer[c]=-1});var a={stack:[],pointer:[],last:[],bookmarks:{},ischange:function(){var a=b.eid;return b.get("document").body.innerHTML!==
this.last[a]},add:function(){var a=b.eid,c=this.pointer[a],h=this.last,k=b.get("document"),i="",l=b.plugin("Undo"),n=b.plugin("Redo"),p=this.stack[a];if(e.IE){var o=this.bookmarks[a],i=k.body.innerHTML;if(p[c]&&Math.abs(i.length-p[c].length)<5)return b.log("run","\u548c\u5f53\u524d\u5185\u5bb9\u7684\u5dee\u5f02\u592a\u5c0f\uff0c\u6ca1\u6709\u589e\u52a0\u5386\u53f2\u8bb0\u5f55"),0;g&&c>-1&&g.set();c+=1;o[c]=d.getBookmark();h[a]=k.body.innerHTML}else h[a]="",g&&c>-1&&g.set(),c+=1;this.pointer[a]=c;
p[c]=h[a];l&&l.enable();n&&n.disable();c<p.length-1&&p.splice(c+1,p.length-1-c);b.log("run","\u589e\u52a0\u4e00\u6761\u5386\u53f2\u8bb0\u5f55, pointer="+c);return 1},undo:function(){var a=b.get("document"),c=b.eid,g=this.stack[c],k=this.bookmarks[c],i=--this.pointer[c],l="",n=b.plugin("Undo"),p=b.plugin("Redo"),l=i>=0?g[i]:h[c];this.last[c]=l;e.IE?(a.body.innerHTML=l,d.moveToBookmark(k[i])):b.execCommand("Undo");p&&p.enable();i<0&&n&&n.disable();b.log("run","undo");return 1},redo:function(){var a=
b.get("document"),c=b.eid,g=this.stack[c],h=this.bookmarks[c],i=++this.pointer[c],l="",n=b.plugin("Undo"),p=b.plugin("Redo"),l=g[i];this.last[c]=l;e.IE?(a.body.innerHTML=l,d.moveToBookmark(h[i])):b.execCommand("Redo");n.enable();i>=g.length-1&&p.disable();b.log("run","redo");return 1}}})(jQEditor);
(function(b){var e,h=[];setTimeout(function(){e=b.mod("Toolbar")},60);b.mod("Message",{show:function(b,c,a){g.show(b,c=="error"?"error":"notice",a)},showError:function(b,c){this.show(b,"error",c)},showNotice:function(b,c){this.show(b,"notice",c)},change:function(b){b&&g.message&&g.message.html(b)},hide:function(){g.hide()}});b.Message=b.mod("Message");var g={message:null,show:function(d,c,a){var f=this,c=c=="error"?"red":"green",j=e.getMessage(),g=b.get("option"),k=g.messageSpeed,i=e.get().height()+
1,a=parseInt(a,10),a=isNaN(a)?g.messageDuration:a||g.messageDuration;f.message=j;j.html(d).css({color:c,top:i}).fadeIn(k);clearTimeout(h[b.eid]);h[b.eid]=setTimeout(function(){f.hide()},a)},hide:function(d){var c=b.get("option"),d=d?parseInt(d,10):0,d=isNaN(d)?c.messageSpeed:d||c.messageSpeed;this.message.fadeOut(d)}}})(jQEditor);
(function(b,e){function h(d){for(var c=b.get("document"),a,f=b.$("body")[0].childNodes,j=[],h=[],k=0,i=f.length;k<i;k++)a=f[k],1===a.nodeType?g.test(a.nodeName)?(h.length&&(j.push(h),h=[]),/^p$/i.test(a.nodeName)&&(d?e(a).html(e(a).html().replace(/^(\s|&nbsp;|\u3000)*/i,"\u3000\u3000")):e(a).html(e(a).html().replace(/^(\s|&nbsp;|\u3000)*/i,"")))):h.push(a):3===a.nodeType&&e.trim(a.nodeValue)&&h.push(a);h.length&&j.push(h);k=0;for(i=j.length;k<i;k++){d=c.createElement("p");a=j[k];b.$(a[0]).before(d);
f=0;for(h=a.length;f<h;f++)b.$(d).append(a[f])}}var g=/^(blockquote|center|div|h[\d]|p)$/i;b.plugin("AutoFormat",{icon:{width:60,text:"\u81ea\u52a8\u6392\u7248","default":{AutoFormat:{XY:"none"}}},click:function(){h(!0);b.showNotice("\u6bb5\u843d\u9996\u884c\u81ea\u52a8\u7f29\u8fdb\u5b8c\u6210")}});b.plugin("CancelAutoFormat",{icon:{width:60,text:"\u81ea\u52a8\u6392\u7248","default":{CancelAutoFormat:{XY:"none"}}},click:function(){h(!1);b.showNotice("\u53d6\u6d88\u6bb5\u843d\u9996\u884c\u81ea\u52a8\u7f29\u8fdb\u5b8c\u6210")}})})(jQEditor,
jQuery);
(function(b){var e=[{name:"\u5b8b\u4f53",value:"SimSun"},{name:"\u4eff\u5b8b\u4f53",value:"FangSong_GB2312"},{name:"\u5fae\u8f6f\u96c5\u9ed1",value:"Microsoft YaHei"},{name:"\u9ed1\u4f53",value:"SimHei"},{name:"\u6977\u4f53",value:"KaiTi_GB2312"},"Courier New","Times New Roman","Impact","Georgia","Arial","Verdana","Tahoma"];b.plugin("FontName",{style:".jqe-plugin-fontname a{text-decoration:none;color:#333333;display:block;padding:2px 30px;border:1px solid #eeeeee;background-color:#eeeeee;_float:left;_width:120px;padding-left:25px;}.jqe-plugin-fontname a:hover{background-color:#ecf1f7;border:1px solid #aecff7;}#panel_FontName .jqe-panel-body{padding:2px;}",isNeedTitle:0,
icon:{width:40,text:"\u5b57 \u4f53"},config:{width:180,HEIGHT:340},selectedFont:{},init:function(b){for(var g=[],d,c,a,f=0,j=e.length;f<j;f++){d=typeof e[f];if(d==="string")c=e[f],a=e[f];else if(d==="object")c=e[f].value,a=e[f].name;g.push('<a href="jqe:FontName('+a+')" style="font-family: '+c+';line-height:22px" font="'+c+'">'+a+"</a>")}b.cache.html='<div class="jqe-plugin-fontname">'+g.join("")+"</div>"},set:function(e,g){g.setFontName(g.selectedFont[b.eid]||"SimSun");g.hide();return 1},menu:function(b,
g){b.set(g);return 1},action:function(e,g,d){var g=b.eid,c=d.name,a=e.closest("[font]").attr("font"),e=e.closest("[font]").text();a&&(d.selectedFont[g]=a,d.setFontName(a),d.hide(),$("#"+g+"-"+c).find("span.jqe-icon").text(e).css("font-family",a));return!1},setFontName:function(e){b.execCommand(this.name,!1,e)}})})(jQEditor);
(function(b){var e={12:3,14:4,18:5,24:6,36:7};b.plugin("FontSize",{menuTitle:"\u66f4\u591a\u5b57\u53f7",style:".jqe-plugin-fontsize a{text-decoration:none;color:#333333;display:block;padding:2px;border:1px solid #eeeeee;background-color:#eeeeee;_float:left;_width:127px;padding-left:25px;}\n.jqe-plugin-fontsize a:hover{background-color:#ecf1f7;border:1px solid #aecff7;}\n.jqe-plugin-fontsize a.jqe-panel-a-hover{background-color:#ecf1f7;border:1px solid #aecff7;}\n#panel_FontSize .jqe-panel-body{padding:2px;}\n",isNeedTitle:0,
icon:{width:40,text:"\u5b57 \u53f7"},config:{width:160,HEIGHT:160},selectedSize:{},init:function(b){var g=[],d;for(d in e)lineHeight=d>22?d:22,g.push('<a href="jqe:FontSize('+d+')" style="font-size:'+d+"px;line-height:"+lineHeight+'px" size="'+e[d]+'">'+d+"px</a>");b.cache.html='<div class="jqe-plugin-fontsize">'+g.join("")+"</div>"},set:function(e,g){var d=g.selectedSize[b.eid];d||(d=4);g.setFontSize(d);g.hide();return 1},menu:function(b,e){b.set(e);return 1},action:function(e,g,d){var g=b.eid,c=
d.name,a=e.closest("[size]").attr("size"),e=e.text();a&&(b.log("run","FontSize="+a),d.selectedSize[g]=a,d.setFontSize(a),d.hide(),$("#"+g+"-"+c).find("span.jqe-icon").text(e));return!1},setFontSize:function(e){b.execCommand(this.name,!1,e)}})})(jQEditor);
(function(b){b.plugin("Code",{inserthtml:"custom",config:{width:600,position:"center",overlay:!0},langs:{html:"HTML/XML",js:"Javascript",css:"CSS",php:"PHP",java:"Java",py:"Python",pl:"Perl",rb:"Ruby",cs:"C#",c:"C++/C",vb:"VB/ASP"},init:function(){var b='<select name="code_language" style="margin:2px 0;">';for(index in this.langs)b+='<option value="'+index+'">'+this.langs[index]+"</option>";b+='<option value="">\u5176\u4ed6</option>';b+="</select>";this.cache.html=b+'<textarea value="" name="content" style="width:99%;height:260px"></textarea>'},
check:function(b,h){var g=b.find("[name=content]").val();return!g||g.length<1?(h.error("\u4ee3\u7801\u5185\u5bb9\u4e0d\u80fd\u4e3a\u7a7a!"),!1):!0},get:function(e){var h=b.mod("Utils"),g=e.find("select[name=code_language]").val(),e=e.find("[name=content]").val(),e=h.escape(e);return'<pre class="prettyprint lang-'+g+'">'+e+"</pre>"}})})(jQEditor);
(function(b){function e(b){if(typeof b!=="string"||!b)b="Y-m-d";var c=new Date,a,f;a=c.getFullYear();f=c.getMonth()+1;c=c.getDate();return b.replace("Date_","").replace("Y",a).replace("m",f).replace("d",c)}function h(){var b=new Date;return b.getHours()+":"+b.getMinutes()+":"+b.getSeconds()}var g=b.mod("Menu");b.plugin("InsertDate",{menuTitle:"\u66f4\u591a\u65e5\u671f\u683c\u5f0f",click:function(){this.pasteHTML("2011-08-20")},menu:function(b,c){g.set(c.event,c.name);return 1}});b.plugin("InsertTime",
{click:function(){this.pasteHTML(h())}});g.add("InsertDate",{title:"\u66f4\u591a\u65e5\u671f\u683c\u5f0f",check:function(){return!0},getHtml:function(){return{"Date_Y-m-d":1,"Date_Y/m/d":1,"Date_Y.m.d":1,"Date_Y\u5e74m\u6708d\u65e5":1}}});b.plugin("Date_Y-m-d",{click:function(b,c){this.pasteHTML(e(c.name));return!0}});b.plugin("Date_Y/m/d",{click:function(b,c){this.pasteHTML(e(c.name));return!0}});b.plugin("Date_Y.m.d",{click:function(b,c){this.pasteHTML(e(c.name));return!0}});b.plugin("Date_Y\u5e74m\u6708d\u65e5",
{click:function(b,c){this.pasteHTML(e(c.name));return!0}})})(jQEditor);
(function(b){b.plugin("ForeColor, BackColor",{menuTitle:"\u989c\u8272\u9762\u677f",isNeedPanel:1,isNeedTitle:0,killEvents:["mousedown"],config:{width:230,height:160,colors:["000000,993300,333300,003300,003366,000080,333399,333333","800000,FF6600,808000,008000,008080,0000FF,666699,808080","FF0000,FF9900,99CC00,339966,33CCCC,3366FF,800080,999999","FF00FF,FFCC00,FFFF00,00FF00,00FFFF,00CCFF,993366,C0C0C0","FF99CC,FFCC99,FFFF99,CCFFCC,CCFFFF,99CCFF,CC99FF,FFFFFF"]},selectedColor:{},init:function(b){var h=
[],g,d,c=b.config.colors;h.push('<span class="jqe-plugin-color" color="Transparent" style="width:206px;line-height:25px;"><a href="color:Transparent" onclick="return false;" style="width:16px;height:16px;background:#000;"></a>\u4f7f\u7528\u9ed8\u8ba4\u989c\u8272</span>');for(var a=0;a<c.length;a++){d=c[a].split(",");for(var f=0;f<d.length;f++)g='<a href="color:#'+d[f]+'" style="background:#'+d[f]+'"  onclick="return false;"></a>',g='<span class="jqe-plugin-color" color="#'+d[f]+'">'+g+"</span>",h.push(g)}b.cache.html=
h.join("")},click:function(e,h){var g=h.selectedColor[b.eid];g||(g="ForeColor"==h.name?"blue":"yellow");h.setColor(g);h.hide();return 1},menu:function(b,h){b.set(h);return 1},action:function(e,h,g){h=g.name;if(e=e.closest("[color]").attr("color"))g.selectedColor[b.eid]=e,$("#"+b.eid+"-"+h).find(".selected-color").css("background-color",e),g.setColor(e),b.monitor(h),g.hide();return!1},setColor:function(e){var h=this.name;b.execCommand(h,!1,e||"Transparent")}})})(jQEditor);
(function(b){var e;b.plugin("GoogleMap",{language:"zh-cn",config:{width:600,height:360,position:"center",overlay:!0},init:function(b){b.cache.html='<div class="jqe-plugin-googlemap" style="margin:5px 0"></div>'},iframeLoad:function(b){e=b.win},one:function(e){var e=e.find(".jqe-plugin-googlemap"),g={id:"GoogleMap",autoHeight:!0,contentEditable:!1,iframeSrc:b.config("jqePath")+"/plugin_html/GoogleMap.html",iframeStyle:{width:"100%",height:"350px",margin:"0"}};b.iframe(g,e,"")},get:function(b,g){var d=
e.Main,c=d.map,a=c.getCenter().lat()+","+c.getCenter().lng(),f=d.marker?d.marker.position:a,j=c.getZoom(),c=c.getMapTypeId();return'<img class="googlemap" src="'+("http://maps.google.com/maps/api/staticmap?center="+a+"&zoom="+j+"&size=520x340&maptype="+c+"&markers="+f+"&language="+g.language+"&sensor=false")+'" title="'+d.address+'" alt="'+d.address+'"/>'}})})(jQEditor);
(function(b){var e=/^http:\/\/(\w+\.){0,3}(?:hudong|baike)\.com/i,h=typeof g_filterExternal==="undefined"?0:g_filterExternal;b.plugin("Link",{config:{width:320},init:function(b){b.cache.html='<table border="0" width="100%"><tr><td width="60">\u6587 \u5b57\uff1a</td><td height="25" align="left"><input type="text" style="width:220px;" name="text" maxlength="200" fill="Selection"/></td></tr><tr><td>\u7f51 \u5740\uff1a</td><td height="25" align="left"><input type="text" value="http://" style="width:220px;" name="url" maxlength="250"/></td></tr><tr><td>\u6253 \u5f00\uff1a</td><td align="left"><select name="target"><option value="_blank">\u5728\u65b0\u7a97\u53e3</option><option value="_self">\u5728\u672c\u7a97\u53e3</option></select></td></tr></table>'},
get:function(b,d){var c=d.getValues(),a="";c.text&&c.url?a='<a href="'+c.url+'" target="'+c.target+'">'+c.text+"</a>":c.text?c.url||d.error("\u8bf7\u8f93\u5165\u8d85\u94fe\u63a5\u7f51\u5740"):d.error("\u8bf7\u8f93\u5165\u8d85\u94fe\u63a5\u6587\u5b57");return a},check:function(b,d){var c=d.getValues();if(/^([\w]+\.){0,3}(hudong|baike)\.com$/i.test(location.hostname)){if(!e.test(c.url))return d.error("\u63d0\u793a\uff1a\u4e3a\u907f\u514d\u5916\u94fe\u5e7f\u544a\uff0c\u4ec5\u5141\u8bb8\u4e92\u52a8\u767e\u79d1\u7684\u94fe\u63a5"),
!1}else if(h&&c.url.indexOf("http:")==0&&c.url.indexOf(location.hostname)<0)return d.error("\u63d0\u793a\uff1a\u4e3a\u907f\u514d\u5916\u94fe\u5e7f\u544a\uff0c\u4ec5\u5141\u8bb8\u6dfb\u52a0\u672c\u7ad9\u7684\u94fe\u63a5"),!1;return!0}})})(jQEditor);
(function(b,e){function h(c){b.get("document");var a=g.getElement(),f="",d="";/^(circle|disc|square)$/i.test(c)?(d="ul",f="InsertUnorderedList"):(d="ol",f="InsertOrderedList");a[d]||b.execCommand(f);b.$("ol,ul").each(function(b,f){var d=e(f),j=d.css("list-style-type");(!d.attr("style")||f===a.ol||f===a.ul)&&j!==c&&d.css("list-style-type",c)})}var g=b.mod("Event"),d=b.mod("Menu");b.plugin("InsertOrderedList",{menuType:"Menu",menuTitle:"\u66f4\u591a\u5217\u8868\u6837\u5f0f",menu:function(b,a){d.set(a.event,
a.name);return 1}});b.plugin("InsertUnorderedList",{menuType:"Menu",menuTitle:"\u66f4\u591a\u5217\u8868\u6837\u5f0f",menu:function(b,a){d.set(a.event,a.name);return 1}});d.add("InsertOrderedList",{title:"\u66f4\u591a\u5217\u8868\u6837\u5f0f\u4e0b\u62c9\u83dc\u5355",check:function(){return!0},getHtml:function(){return{List_123:1,List_a_b:1,List_A_B:1,List_i_ii:1,List_I_II:1}}});d.add("InsertUnorderedList",{title:"\u66f4\u591a\u5217\u8868\u6837\u5f0f\u4e0b\u62c9\u83dc\u5355",check:function(){return!0},
getHtml:function(){return{List_circle:1,List_disc:1,List_square:1}}});b.plugin("List_123",{click:function(){h("decimal");return!0}});b.plugin("List_a_b",{click:function(){h("lower-alpha");return!0}});b.plugin("List_A_B",{click:function(){h("upper-alpha");return!0}});b.plugin("List_i_ii",{click:function(){h("lower-roman");return!0}});b.plugin("List_I_II",{click:function(){h("upper-roman");return!0}});b.plugin("List_circle",{click:function(){h("circle");return!0}});b.plugin("List_disc",{click:function(){h("disc");
return!0}});b.plugin("List_square",{click:function(){h("square");return!0}})})(jQEditor,jQuery);
(function(b,e){var h=0,g=b.mod("Menu"),d=b.mod("Event");b.plugin("InsertTable",{menuType:"Menu",menuTitle:"\u8868\u683c\u64cd\u4f5c",isNeedTitle:0,depends:["Panel","Selection"],config:{width:280},init:function(a){for(var b=['<table id="jqe-plugin-table" class="jqe-plugin-table">'],c=1;c<=10;c++){b.push("<tr>");for(var d=1;d<=12;d++)b.push('<td ij="'+c+"-"+d+'"><a href="jqe:\u70b9\u51fb\u63d2\u5165\u4e00\u4e2a'+c+"\u884c"+d+'\u5217\u7684\u8868\u683c" title="'+c+"\u884c"+d+'\u5217, \u70b9\u51fb\u63d2\u5165" onclick="return false;">&nbsp;</a></td>');
b.push("</tr>")}b.push('<tr><td colspan="12" style="text-align:left;color:#666666;">');b.push('&nbsp;\u8868\u683c\u5bbd <input name="width" style="width:40px;" maxlength="4" value="600"/>');b.push('<span class="jqe-plugin-table-xtrxtd">x\u884cx\u5217</span></td></tr>');b.push("</table>");a.cache.html=b.join("")},one:function(a,b){var b=this,c=a.find(".jqe-plugin-table td[ij]");c.mouseover(function(){var d=e(this);clearTimeout(h);h=setTimeout(function(){b.hightLight(d,c,a)},100)})},hightLight:function(a,
b,c){var d=a.attr("ij").split("-"),a=d[0],d=d[1];b.removeClass("hover");for(var e=1;e<=a;e++)for(var g=1;g<=d;g++)b.filter('[ij="'+e+"-"+g+'"]').addClass("hover");c.find(".jqe-plugin-table-xtrxtd").text(a+"\u884c "+d+"\u5217")},action:function(a,b,c){var a=a.closest("[ij]"),b=b.find("input[name=width]"),d=e.trim(b.val());if(!a.size())return!1;if(!d||!/^(\d{0,4}|\d{1,3}%)$/.test(d))d="";d&&b.val(d);a=a.attr("ij").split("-");ix=a[0];jx=a[1];c.hide();c=['<table class="jqe-table" width="'+d+'" border="1" bordercolor="#cccccc">'];
c.push("<tbody>");c.push("<tr>");for(a=1;a<=jx;a++)c.push("<th>&nbsp;&nbsp;</th>");c.push("</tr>");for(b=1;b<=ix;b++){c.push("<tr>");for(a=1;a<=jx;a++)c.push("<td>&nbsp;&nbsp;</td>");c.push("</tr>")}c.push("</tbody></table><br />");return c.join("")},menu:function(a,c){b.mod("Menu").set(c.event,c.name);return 1}});g.add("InsertTable",{title:"\u8868\u683c\u4e0b\u62c9\u83dc\u5355",check:function(){return!0},getHtml:function(){var a=d.getElement(),b=null,c,e;if(a)c=a.table,e=a.cell;if(c){if(a=c.getElementsByTagName("th"),
c=c.caption,b={InsertTable:0,addTableTitleRow:1,RemoveTableTitleRow:1,addTableCaption:1,RemoveTableCaption:1,Insert:{RowInsertBefore:1,RowInsertAfter:1,ColumnInsertBefore:1,ColumnInsertAfter:1,Append5Row:1,Append5Column:1},Remove:{RemoveRow:1,RemoveColumn:1,EmptyTable:1,RemoveTable:1},MergeCell:{ColumnMergeAfter:1,RowMergeAfter:1,CancelCellMerge:1},"-a":1,SetTableWidth:{TableWidthDefault:1,TableWidthAuto:1,TableWidthFixed:1,TableWidthAverage:1},SetColumnWidth:{SetColumnWidthAdd10:1,SetColumnWidthReduce10:1,
SetColumnWidthAdd50:1,SetColumnWidthReduce50:1},SetColumnAlign:{SetColumnAlignLeft:1,SetColumnAlignRight:1,SetColumnAlignCenter:1,SetColumnValignTop:1,SetColumnValignCenter:1},SetRowAlign:{SetRowAlignLeft:1,SetRowAlignRight:1,SetRowAlignCenter:1,SetRowValignTop:1,SetRowValignCenter:1},SetCellAlign:{SetCellAlignLeft:1,SetCellAlignRight:1,SetCellAlignCenter:1,SetCellValignTop:1,SetCellValignCenter:1},TableMove:{RowMoveBefore:1,RowMoveAfter:1,RowMoveFirst:1,RowMoveLast:1}},c&&c.innerHTML?delete b.addTableCaption:
delete b.RemoveTableCaption,a.length?delete b.addTableTitleRow:delete b.RemoveTableTitleRow,e.rowSpan==1&&e.colSpan==1)b.MergeCell.CancelCellMerge=0}else b={InsertTable:a?2:0,addTableTitleRow:0,RemoveTableTitleRow:0,addTableCaption:0,RemoveTableCaption:0,Insert:0,Remove:0,MergeCell:0,"-a":1,SetTableWidth:0,SetColumnWidth:0,SetColumnAlign:0,SetRowAlign:0,SetCellAlign:0,TableMove:0};return b}});g.add("contextmenu",{title:"\u4e00\u4e2a\u53f3\u952e\u83dc\u5355\uff0c\u6ca1\u6709\u9009\u4e2d\u5185\u5bb9\u65f6\u89e6\u53d1",
check:function(a,b){if(a&&typeof a=="object")if(/^(h2|h3|img|a)$/i.test(a.nodeName))return!1;else if(/^(td|th|caption)$/i.test(a.nodeName))return!0;else{if(b.ctrlKey)return!0}else return!1},getHtml:function(a){var c={Redo:1,Undo:1},d=b.$(a).closest("td,th"),a=b.$(a).closest("a");if(d.size()){if(c=d.closest("tr"),a=c.closest("table"),d=d[0],a=a[0],th=a.getElementsByTagName("th"),c={addTableTitleRow:1,RemoveTableTitleRow:1,addTableCaption:1,RemoveTableCaption:1,Insert:{RowInsertBefore:1,RowInsertAfter:1,
ColumnInsertBefore:1,ColumnInsertAfter:1,Append5Row:1,Append5Column:1},Remove:{RemoveRow:1,RemoveColumn:1,EmptyTable:1,RemoveTable:1},MergeCell:{ColumnMergeAfter:1,RowMergeAfter:1,CancelCellMerge:1},"-a":1,SetTableWidth:{TableWidthDefault:1,TableWidthAuto:1,TableWidthFixed:1,TableWidthAverage:1},SetColumnWidth:{SetColumnWidthAdd10:1,SetColumnWidthReduce10:1,SetColumnWidthAdd50:1,SetColumnWidthReduce50:1},SetColumnAlign:{SetColumnAlignLeft:1,SetColumnAlignRight:1,SetColumnAlignCenter:1,SetColumnValignTop:1,
SetColumnValignCenter:1},SetRowAlign:{SetRowAlignLeft:1,SetRowAlignRight:1,SetRowAlignCenter:1,SetRowValignTop:1,SetRowValignCenter:1},SetCellAlign:{SetCellAlignLeft:1,SetCellAlignRight:1,SetCellAlignCenter:1,SetCellValignTop:1,SetCellValignCenter:1},TableMove:{RowMoveBefore:1,RowMoveAfter:1,RowMoveFirst:1,RowMoveLast:1}},(caption=a.caption)&&caption.innerHTML?delete c.addTableCaption:delete c.RemoveTableCaption,th.length?delete c.addTableTitleRow:delete c.RemoveTableTitleRow,d.rowSpan==1&&d.colSpan==
1)c.MergeCell.CancelCellMerge=0}else{c.Image=1;c.InsertTable=2;if(a.size())c.Link=1;c.Source=1}return c}});b.plugin("RemoveTable",{isNeedPanel:0,click:function(){var a=d.getElement().table;b.$(a).remove();return!0}});b.plugin("RemoveRow",{isNeedPanel:0,click:function(){var a=d.getElement().row;b.$(a).remove();return!0}});var c={removeColumn:function(){var a,b;a=d.getElement();b=a.table;a=a.cell.cellIndex;for(var c=0,e=b.rows.length;c<e;c++)b.rows[c].deleteCell(a)},insertRow:function(a,c,d){var e,
d=d||0;a&&c&&(e=b.$(c).clone(),e.children().html("&nbsp;").attr("rowSpan",1),a=a.insertRow(c.rowIndex+d),b.$(a).html(e.html()))},moveRow:function(a,c,d){d=d||"after";a&&c&&(d==="before"?(a=b.$(c).prev(),a.size()&&a.before(c)):d==="after"?(a=b.$(c).next(),a.size()&&a.after(c)):d==="first"?b.$(a).prepend(c):d==="last"&&b.$(a).append(c))},addTitleRow:function(a){var c="";a&&(c=b.$(a.rows[0]).clone(),c.children().html("&nbsp;").attr("rowSpan",1),c=c.html().replace(/td/ig,"th"),a=a.insertRow(0),b.$(a).html(c))},
insertColumn:function(a,c,d){for(var e,g,c=c.cellIndex,d=c+d,i=0,h=a.rows.length;i<h;i++)e=a.rows[i],d<=e.cells.length&&(g=b.$(e.cells[c]).clone(),g.html("&nbsp;"),e=e.insertCell(d),b.$(e).replaceWith(g[0]))},setCell:function(){d.getElement()},setTable:function(){},setCaption:function(){var a;a=d.getElement().table;a.caption?a.deleteCaption():a.createCaption().innerHTML="\u8868\u683c\u540d\u79f0"},mergeColumn:function(){var a,b,c,e;a=d.getElement();b=a.cell;a=a.row;e=b.colSpan;c=b.cellIndex;if(c<
a.cells.length-1&&(c=a.cells[c+1])&&b.rowSpan==c.rowSpan)b.colSpan=e+c.colSpan,b.innerHTML+=c.innerHTML,a.removeChild(c)},mergeRow:function(){var a,b,c,e,g,i;a=d.getElement();e=a.table;b=a.cell;i=a.row;c=b.cellIndex;g=i.rowIndex;a=b.rowSpan;if(g<e.rows.length-1&&(g=e.rows[g+a],(c=g.cells[c])&&b.colSpan==c.colSpan)){if(i.cells.length>1)b.rowSpan=a+c.rowSpan;b.innerHTML+=c.innerHTML;g.removeChild(c);g.cells.length||e.deleteRow(g.rowIndex)}},unMerge:function(a,b,c){var d=c.cellIndex,e=b.rowIndex;if(c.rowSpan>
1){b=c.rowSpan;c.rowSpan=1;for(var g=0;g<b-1;g++)c=a.rows[e+g+1].insertCell(d),c.innerHTML="&nbsp;"}else if(c.colSpan>1){a=c.colSpan;c.colSpan=1;for(g=0;g<a-1;g++)c=b.insertCell(d+1),c.innerHTML="&nbsp;"}},setColumnWidth:function(a,c,d){for(var d=b.$(c).width()+d,e=c.cellIndex,g=0,i=a.rows.length;g<i;g++)if((c=a.rows[g].cells[e])&&c.colSpan==1)c.width=d},SetCellAlign:function(a,b,c){if(a){if(b)a.align=b;if(c)a.vAlign=c}},SetColumnAlign:function(a,b,c,d){for(var e=b.cellIndex,g=0,h=a.rows.length;g<
h;g++)if(b=a.rows[g].cells[e]){if(c)b.align=c;if(d)b.vAlign=d}},SetRowAlign:function(a,b,c){for(var d=0,e=a.cells.length;d<e;d++)if(cell=a.cells[d]){if(b)cell.align=b;if(c)cell.vAlign=c}}};b.plugin("RemoveColumn",{click:function(a){c.removeColumn(a);return!0}});b.plugin("RowInsertBefore",{click:function(){var a=d.getElement();c.insertRow(a.table,a.row,0);return!0}});b.plugin("RowInsertAfter",{click:function(){var a=d.getElement();c.insertRow(a.table,a.row,a.cell.rowSpan);return!0}});b.plugin("Append5Row",
{click:function(){for(var a=d.getElement(),b=a.table.rows,b=b[b.length-1],e=0;e<5;e++)c.insertRow(a.table,b,1);return!0}});b.plugin("ColumnInsertBefore",{click:function(){eles=d.getElement();table=eles.table;cell=eles.cell;c.insertColumn(table,cell,0);return!0}});b.plugin("ColumnInsertAfter",{click:function(){eles=d.getElement();table=eles.table;cell=eles.cell;c.insertColumn(table,cell,cell.colSpan);return!0}});b.plugin("Append5Column",{click:function(){var a=d.getElement(),c=a.table.rows,a=a.cell.width;
ths=b.$("<th></th><th></th><th></th><th></th><th></th>");tds=b.$("<td></td><td></td><td></td><td></td><td></td>");ths.html("&nbsp;");tds.html("&nbsp;");a&&(ths.width(a),tds.width(a));for(var a=0,g=c.length;a<g;a++)e.nodeName(c[a].cells[0],"th")?ths.clone().appendTo(c[a]):tds.clone().appendTo(c[a]);return!0}});b.plugin("ColumnMergeAfter",{click:function(a){c.mergeColumn(a,1);return!0}});b.plugin("RowMergeAfter",{click:function(a){c.mergeRow(a,1);return!0}});b.plugin("CancelCellMerge",{click:function(){var a=
d.getElement();c.unMerge(a.table,a.row,a.cell);return!0}});b.plugin("addTableCaption",{click:function(a){c.setCaption(a);return!0}});b.plugin("RemoveTableCaption",{click:function(a){c.setCaption(a);return!0}});b.plugin("addTableTitleRow",{click:function(){var a=d.getElement();a.table&&c.addTitleRow(a.table);return!0}});b.plugin("RemoveTableTitleRow",{click:function(){var a=d.getElement();a.table&&a.table.deleteRow(0);return!0}});b.plugin("EmptyTable",{click:function(){var a=d.getElement(),b;if(a.table)for(var a=
a.table,c=0,e=a.rows.length;c<e;c++){b=a.rows[c];for(var g=0,i=b.cells.length;g<i;g++)b.cells[g].innerHTML="<br />"}return!0}});b.plugin("TableWidthDefault",{click:function(){var a=d.getElement().table,b;a.removeAttribute("width");for(var c=0,e=a.rows.length;c<e;c++){b=a.rows[c];for(var g=0,i=b.cells.length;g<i;g++)b.cells[g].removeAttribute("width")}return!0}});b.plugin("TableWidthAuto",{click:function(){var a=d.getElement().table,b;a.width="99%";for(var c=0,e=a.rows.length;c<e;c++){b=a.rows[c];
for(var g=0,i=b.cells.length;g<i;g++)b.cells[g].removeAttribute("width")}return!0}});b.plugin("TableWidthFixed",{click:function(){var a=d.getElement().table,c,e;width=b.$(a).width();a.removeAttribute("width");for(var g=0,h=a.rows.length;g<h;g++){c=a.rows[g];for(var i=0,l=c.cells.length;i<l;i++)e=c.cells[i],e.width=b.$(e).outerWidth()}return!0}});b.plugin("TableWidthAverage",{click:function(){var a=d.getElement().table,c,e,g;c=a.rows[0].cells;for(var h=e=0,i=c.length;h<i;h++)e+=c[h].colSpan;g=a.width?
a.width/e:b.$(a).width()/e;g=Math.round(g)-10;a.removeAttribute("width");h=0;for(i=a.rows.length;h<i;h++){c=a.rows[h];for(var l=0,n=c.cells.length;l<n;l++)if(e=c.cells[l],e.colSpan==1)e.width=g}return!0}});b.plugin("SetColumnWidthAdd10",{click:function(){var a=d.getElement();c.setColumnWidth(a.table,a.cell,10);return!0}});b.plugin("SetColumnWidthReduce10",{click:function(){var a=d.getElement();c.setColumnWidth(a.table,a.cell,-10);return!0}});b.plugin("SetColumnWidthAdd50",{click:function(){var a=
d.getElement();c.setColumnWidth(a.table,a.cell,50);return!0}});b.plugin("SetColumnWidthReduce50",{click:function(){var a=d.getElement();c.setColumnWidth(a.table,a.cell,-50);return!0}});b.plugin("SetColumnAlignLeft",{click:function(){var a=d.getElement();c.SetColumnAlign(a.table,a.cell,"left","");return!0}});b.plugin("SetColumnAlignRight",{click:function(){var a=d.getElement();c.SetColumnAlign(a.table,a.cell,"right","");return!0}});b.plugin("SetColumnAlignCenter",{click:function(){var a=d.getElement();
c.SetColumnAlign(a.table,a.cell,"center","");return!0}});b.plugin("SetColumnValignTop",{click:function(){var a=d.getElement();c.SetColumnAlign(a.table,a.cell,"","top");return!0}});b.plugin("SetColumnValignCenter",{click:function(){var a=d.getElement();c.SetColumnAlign(a.table,a.cell,"","center");return!0}});b.plugin("SetRowAlignLeft",{click:function(){var a=d.getElement();c.SetRowAlign(a.row,"left","");return!0}});b.plugin("SetRowAlignRight",{click:function(){var a=d.getElement();c.SetRowAlign(a.row,
"right","");return!0}});b.plugin("SetRowAlignCenter",{click:function(){var a=d.getElement();c.SetRowAlign(a.row,"center","");return!0}});b.plugin("SetRowValignTop",{click:function(){var a=d.getElement();c.SetRowAlign(a.row,"","top");return!0}});b.plugin("SetRowValignCenter",{click:function(){var a=d.getElement();c.SetRowAlign(a.row,"","center");return!0}});b.plugin("SetCellAlignLeft",{click:function(){var a=d.getElement();c.SetCellAlign(a.cell,"left","");return!0}});b.plugin("SetCellAlignRight",{click:function(){var a=
d.getElement();c.SetCellAlign(a.cell,"right","");return!0}});b.plugin("SetCellAlignCenter",{click:function(){var a=d.getElement();c.SetCellAlign(a.cell,"center","");return!0}});b.plugin("SetCellValignTop",{click:function(){var a=d.getElement();c.SetCellAlign(a.cell,"","top");return!0}});b.plugin("SetCellValignCenter",{click:function(){var a=d.getElement();c.SetCellAlign(a.cell,"","center");return!0}});b.plugin("RowMoveBefore",{click:function(){var a=d.getElement();c.moveRow(a.table,a.row,"before");
return!0}});b.plugin("RowMoveAfter",{click:function(){var a=d.getElement();c.moveRow(a.table,a.row,"after");return!0}});b.plugin("RowMoveFirst",{click:function(){var a=d.getElement();c.moveRow(a.table,a.row,"first");return!0}});b.plugin("RowMoveLast",{click:function(){var a=d.getElement();c.moveRow(a.table,a.row,"last");return!0}});b.plugin("TableProps",{config:{position:"center",width:400},init:function(a){a.cache.html='<table width="100%" border="0" class="jqe-plugin-tableprops">\t\t\t<tbody><tr><td colspan="4" class="jqe-plugin-tableprops-title">\t\t\t\u8868\u683c<span class="jqe-panel-notice">(\u8bbe\u7f6e\u8868\u683c\u5c5e\u6027)</td></tr>\t\t\t<tr><td>\u884c\u6570:<br/><input type="text" name="talbeRows" maxlength="3"/></td>\t\t\t\t<td>\u8868\u683c\u5bbd\u5ea6:<br/><input type="text" name="talbeWidth" maxlength="5"/></td>\t\t\t\t<td>\u8868\u683c\u5bf9\u9f50:<br/><select name="tableAlign"><option value="left">\u5de6\u5bf9\u9f50</option>\t\t\t\t<option value="center">\u5c45\u4e2d</option>\t\t\t\t<option value="right">\u53f3\u5bf9\u9f50</option></select></td></tr>\t\t\t<tr><td>\u5217\u6570:<br/><input type="text" name="talbeCols" maxlength="3"/></td>\t\t\t<td>\u8868\u683c\u9ad8\u5ea6:<br/><input type="text" name="talbeHeight" maxlength="5"/></td>\t\t\t<td>\u8868\u683c\u8fb9\u6846:<br/><input type="text" name="talbeBorder" maxlength="2"/></td></tr>\t\t\t<tr><td colspan="4" class="jqe-plugin-tableprops-title">\t\t\t\u884c<span class="jqe-panel-notice">(\u8bbe\u7f6e\u6574\u884c\u5355\u5143\u683c\u7684\u5c5e\u6027)</span></td></tr>\t\t\t<tr><td>\u5355\u5143\u683c\u80cc\u666f:<br/><input type="text" name="rowBg" maxlength="16"/></td>\t\t\t<td>\u5355\u5143\u683c\u5bbd\u5ea6:<br/><input type="text" name="rowWidth" maxlength="3"/></td>\t\t\t<td>\u5355\u5143\u683c\u9ad8\u5ea6:<br/><input type="text" name="rowHeight" maxlength="3"/></td>\t\t\t<td>\u5355\u5143\u683c\u5bf9\u9f50:<br/><select name="tableAlign"><option value="left">\u5de6\u5bf9\u9f50</option>\t\t\t\t<option value="center">\u5c45\u4e2d</option>\t\t\t\t<option value="right">\u53f3\u5bf9\u9f50</option></select></td></tr>\t\t\t<tr><td colspan="4" class="jqe-plugin-tableprops-title">\t\t\t\u5217<span class="jqe-panel-notice">(\u8bbe\u7f6e\u6574\u5217\u5355\u5143\u683c\u7684\u5c5e\u6027)</span></td></tr>\t\t\t<tr><td>\u5355\u5143\u683c\u80cc\u666f:<br/><input type="text" name="columnBg" maxlength="16"/></td>\t\t\t<td>\u5355\u5143\u683c\u5bbd\u5ea6:<br/><input type="text" name="columnWeidth" maxlength="3"/></td>\t\t\t<td>\u5355\u5143\u683c\u9ad8\u5ea6:<br/><input type="text" name="columnHeight" maxlength="3"/></td>\t\t\t<td>\u5355\u5143\u683c\u5bf9\u9f50:<br/><select name="tableAlign"><option value="left">\u5de6\u5bf9\u9f50</option>\t\t\t\t<option value="center">\u5c45\u4e2d</option>\t\t\t\t<option value="right">\u53f3\u5bf9\u9f50</option></select></td></tr>\t\t\t<tr><td colspan="4" class="jqe-plugin-tableprops-title">\t\t\t\u5355\u5143\u683c<span class="jqe-panel-notice">(\u4ec5\u8bbe\u7f6e\u5f53\u524d\u4e00\u4e2a\u5355\u5143\u683c\u7684\u5c5e\u6027)</span></td></tr>\t\t\t<tr><td>\u5355\u5143\u683c\u80cc\u666f:<br/><input type="text" name="cellBg" maxlength="16"/></td>\t\t\t<td>\u5355\u5143\u683c\u5bbd\u5ea6:<br/><input type="text" name="cellWidth" maxlength="3"/></td>\t\t\t<td>\u5355\u5143\u683c\u9ad8\u5ea6:<br/><input type="text" name="cellHeight" maxlength="3"/></td>\t\t\t<td>\u5355\u5143\u683c\u5bf9\u9f50:<br/><select name="tableAlign"><option value="left">\u5de6\u5bf9\u9f50</option>\t\t\t\t<option value="center">\u5c45\u4e2d</option>\t\t\t\t<option value="right">\u53f3\u5bf9\u9f50</option></select></td></tr>\t\t\t</tbody></table>'},
callback:function(){},ok:function(){c.setTable(g);return 0}})})(jQEditor,jQuery);
(function(b){var e=b.consts,h="";b.plugin("Source",{icon:{width:50,text:"\u6e90\u4ee3\u7801","default":{Source:{XY:"none"}}},config:{width:800,position:"center",overlay:!0},init:function(b){b.cache.html='<textarea name="content" style="width:99%;height:420px"></textarea>'},callback:function(e){var d=b.getHTML(),d=d.replace(/<p([^>]*)>/ig,"\n<p$1>\n").replace(/<\/p>/ig,"\n</p>\n").replace(/<br \/>/ig,"<br />\n").replace(/\s\n<\/p>/ig,"\n</p>").replace(/<p([^>]*)>\n+/ig,"<p$1>\n").replace(/<p(?:[^>]*)>\s*<\/p>/ig,
"").replace(/\n{2,}/ig,"\n");h=(h=$.trim(d))||"<p>\n\n</p>";e.find("textarea[name=content]").val(h)},ok:function(g,d){var c=b.mod("Utils"),a=g.find("textarea[name=content]").val(),f=0,a=$.trim(a);a===h?f=1:(a===""?a=e.IE?"<p>&nbsp;</p>":"<p><br></p>":/<\w+/i.test(a)||(a="<p>"+a+"</p>"),(c=c.checkTag(a))?d.error(c):(b.setHTML(a),f=1));return f}})})(jQEditor);
(function(b){var e=b.mod("Event"),h=b.mod("History");b.plugin("Redo,Undo",{click:function(e,d){var c=d.name;if(h)h[c]();else b.execCommand(c);return 1}});e.bind("oncreate",function(){var e=b.plugin("Undo"),d=b.plugin("Redo");e.disable();d.disable()})})(jQEditor);
(function(b){b=b.mod("Menu");b.add("mouseup",{title:"\u5de6\u952e\u83dc\u53551",check:function(){return!1},getHtml:function(){var b=[];b.push('<div class="jqe-menu-text">');b.push("\u6587\u672c\u5904\u7406\u83dc\u5355");b.push("</div>");return b.join("")}});b.add("click",{title:"\u5de6\u952e\u83dc\u53552",check:function(){return 0},getHtml:function(){return{a:"\u83dc\u53551",b:"\u83dc\u53552",c:"\u83dc\u53553"}}});b.add("contextmenu",{title:"\u4e00\u4e2a\u53f3\u952e\u83dc\u5355\uff0c\u6709\u9009\u4e2d\u5185\u5bb9\u65f6\u89e6\u53d1",
check:function(){return!1},getHtml:function(){var b={};return b={H1:1,H2:1,Link:1,BaikeLink:1,Format:{Bold:1,Italic:1,Underline:1,StrikeThrough:1,SubScript:1,SuperScript:1},"-a":1,BaikeSearch:1,Search:{BaiduSearch:1,GoogleSearch:1}}}})})(jQEditor,jQuery);
(function(b){function e(d){b.setEid(d.id);var c=b.get("document");b.get("iframe");var a=b.plugin("Resize"),f=0,e=c.createElement("DIV");e.style.clear="both";e.style.display="block";c.body.appendChild(e);f=Math.max(e.offsetTop+20,d.height);c.body.removeChild(e);a.setHeight(f,d.autoHeight||100)}var h=b.consts,g=b.mod("Event");b.plugin("Resize",{autoHeight:function(){var d=b.get("option");d.autoHeight&&e(d)},setHeight:function(d,c){var a=$("#"+b.eid).find("div.jqe-content"),c=typeof c==="number"?c:1;
if(h.IE6)a.height(d),a.children("iframe").height(d);else return a.height(d),!1;b.log("run","autoHeight = "+d+", speed="+c)}});g.bind("oncreate",function(){var d=b.get("option");d.autoHeight&&(setTimeout(function(b){return function(){e(b)}}(d),250),setTimeout(function(b){return function(){e(b)}}(d),500))});g.bind("load",function(){var d=b.get("option");d.autoHeight&&e(d)});g.bind("onmonitor",function(){var d=b.get("option");d.autoHeight&&e(d)})})(jQEditor);
(function(b){var e=b.consts,h=b.mod("Event"),g=!1;b.plugin("FixedToolbar",{});h.bind("onscroll",function(){var d=$(document).scrollTop(),c=b.mod("Toolbar").getCurrent(),a=b.get("option"),f=$("#"+b.eid+" .jqe-content"),f=f.height()+f.offset().top;if(!c||!a.autoHeight)b.log("run","\u6ca1\u6709\u627e\u5230\u5de5\u5177\u680f\u6216\u672a\u8bbe\u7f6e\u6d6e\u52a8");else{if(e.IE6&&!d)d=document.documentElement.scrollTop;if(a.toolbarTop&&(d<a.toolbarTop||d>f))c.removeClass(a.fixedClassName),e.IE6&&c.css("top",
0),b.log("run","\u5de5\u5177\u680f\u53d6\u6d88\u6d6e\u52a8"),g=!1;else{g||(c.addClass(a.fixedClassName),b.log("run","\u5de5\u5177\u680f\u5f00\u59cb\u6d6e\u52a8"));if(e.IE6){for(var a=c.parents(),f=null,h=0;h<a.length;h++)if(f=a.eq(h),f.css("position")=="relative"){d-=f.offset().top;break}c.css("top",d)}g=!0}}})})(jQEditor);
(function(b){b.mod("Event");var e=b.mod("Utils"),h=b.mod("Message");b.plugin("BaikeLink",{linkName:"baikelink",click:function(){var b="";(b=this.getSelectionText())?e.strlen(b)>40?h.showError("\u767e\u79d1\u94fe\u63a5\uff0c\u4e0d\u80fd\u9009\u62e9\u8d85\u8fc740\u4e2a\u5b57\u7b26\u7684\u957f\u5ea6\uff01"):/[`~!\\\/]/.test(b)?h.showError("\u767e\u79d1\u94fe\u63a5\uff0c\u4e0d\u80fd\u5305\u542b\u7279\u6b8a\u5b57\u7b26\u201c`~!/\u201d\uff01"):(b='<a href="http://www.hudong.com/wiki/'+encodeURIComponent(b)+
'" class="'+this.linkName+'" title="'+b+'" target="_blank">'+b+"</a>",this.pasteHTML(b)):h.showError("\u8bf7\u9009\u62e9\u9700\u8981\u8bbe\u7f6e\u4e3a\u767e\u79d1\u94fe\u63a5\u7684\u6587\u5b57\uff01");return 1}})})(jQEditor);
(function(b){function e(c,a){var f="",f=a.getSelectionText(),e=a.getCursorElement(),m=b.get("document");$.nodeName(e,c)?(e=$(e),f=$.trim(e.text())?e.html():"",e.replaceWith(f)):a.check(f)&&(f=f||(h.IE?"":"<br>"),g.strlen(f)>40?b.showError("\u6807\u9898\u6700\u591a40\u4e2a\u5b57\u7b26\uff0c\u4e00\u4e2a\u6c49\u5b57\u7b972\u4e2a\u5b57\u7b26\u3002"):(a.pasteHTML("<"+c+">"+f+'<a id="jqe-tmp-title" style="display:none;">.</a></'+c+">"),(f==""||f=="<br>")&&b.showNotice("\u8bf7\u5728\u65b0\u5efa\u7684\u6807\u9898\u5904\u8f93\u5165\u6807\u9898",
2E3),setTimeout(function(){var a=$("#jqe-tmp-title",m)[0],b=d.getRange();if(h.IE)try{b.moveToElementText(a),b.collapse(!1),b.select()}catch(c){}else b.selectNode(a);a.parentNode.removeChild(a)},100)));return 1}var h=b.consts,g=b.mod("Utils"),d=b.mod("Selection");b.plugin("H1",{icon:{width:60,text:"\u4e00\u7ea7\u76ee\u5f55","default":{H1:{XY:"none"}}},check:function(){return 1},click:function(){return e("h2",this)}});b.plugin("H2",{icon:{width:60,text:"\u4e8c\u7ea7\u76ee\u5f55","default":{H2:{XY:"none"}}},
check:function(){return 1},click:function(){return e("h3",this)}})})(jQEditor);(function(b){b.plugin("PasteText",{config:{width:600,position:"center",overlay:!0},depends:["Panel","Selection"],init:function(b){b.cache.html='<textarea name="content" style="width:99%;height:260px"></textarea>'},get:function(e){var h=b.mod("Utils"),e=e.find("textarea[name=content]").val();return h.escape(e)}})})(jQEditor);
(function(b){var e=null;b.plugin("PasteWord",{defaultHtml:"<p>&nbsp;</p>",config:{width:600,position:"center",overlay:!0},init:function(b){b.cache.html='<div class="jqe-plugin-pasteword"></div>'},one:function(h,g){var d=h.find(".jqe-plugin-pasteword"),c={id:"PasteWord",contentEditable:!0,iframeStyle:{width:"99%",height:"99%",margin:"0 5px"},contentCssName:b.get("option").contentCssName};g.notice("\u8bf7\u5c06Word\u5f53\u4e2d\u7684\u5185\u5bb9\u7c98\u8d34\u5230\u4e0b\u9762\u7684\u65b9\u6846\u91cc\uff0c\u7136\u540e\u70b9\u51fb\u786e\u5b9a\u6309\u94ae\u3002");
d=b.iframe(c,d,g.defaultHtml);e=d.dom;d.win.focus()},callback:function(b,g){e.body.innerHTML=g.defaultHtml},get:function(b,g){var d="",c="";if(e)c=e.body.innerHTML,d=g.cleanWord(c),/^<p>&nbsp;<\/p>$/i.test(d)&&(d="");return d},cleanWord:function(b){if(b.match(/mso(-|normal)|WordDocument|<table\s+[^>]*?x:str/i))for(var b=b.replace(/<\!--[\s\S]*?--\>|<!(--)?\[[\s\S]+?\](--)?>|<style(\s+[^>]*?)?>[\s\S]*?<\/style>/ig,""),b=b.replace(/\r?\n/ig,""),b=b.replace(/(<(\/?)([\w-:]+))((?:\s+[\w-:]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^>\s]+))?)*)\s*(\/?>)/g,
function(b,c,a,f,e,g){f=f.toLowerCase();if(f.match(/^(link|img)$/)&&e.match(/file:\/\//i)||f.match(/:/)||f==="span")return"";a||(e=e.replace(/\s([\w-:]+)(?:\s*=\s*("[^"]*"|'[^']*'|[^>\s]+))?/ig,function(a,b,c){b=b.toLowerCase();c.match(/^(["']?)(.*)\1/);if(b.match(/:/))return"";else if(b.match(/^(class|lang|language|span)$/))return"";else if(f==="td"&&(b==="height"||b==="width"&&!e.match(/\scolspan="\d+"/i)))return"";else if(b==="style")return"";return a}));return c+e+g}),e=0;e<3;e++)b=b.replace(/<([^\s>]+)(\s+[^>]*)?>\s*<\/\1>/g,
function(b,c){return c.match(/^a$/i)?b:""});return b}})})(jQEditor);(function(b){b.plugin("Preview",{icon:{width:40,text:"\u9884 \u89c8","default":{Preview:{XY:"none"}}},click:function(){var e=b.getHTML(),h,g,e="<html><head><title>\u9884\u89c8</title></head><body>"+e+"</body></html>";h=window.open("","_blank","");g=h.document;g.open();g.write(e);g.close();h.focus()}})})(jQEditor,jQuery);
(function(b,e){var h=b.mod("Menu"),g=b.mod("Event");h.add("mouseup",{title:"\u94fe\u63a5\u5feb\u6377\u83dc\u5355",check:function(b){var a=!1;b&&typeof b==="object"&&e.nodeName(b,"A")&&(a=!0);return a},getHtml:function(b){var a=[],b=e(b),d=b.text(),g=b.attr("href");a.push('<a name="ShortcutMenu" method="unlink" title="\u5c06\u94fe\u63a5\u8f6c\u4e3a\u7eaf\u6587\u672c">\u53d6\u6d88\u94fe\u63a5(Esc)</a>');g&&(b=/^http:\/\/www\.hudong\.com\/wiki\//.test(g)||b.hasClass("baikelink")||b.hasClass("innerlink")?
"http://www.hudong.com/wiki/"+encodeURI(d):g,a.push('<a href="'+b+'" title="'+b+'" target="_blank" name="ShortcutMenu" method="openlink">\u6253\u5f00\u94fe\u63a5</a>'));return{className:"jqe-shortcut-menu",html:a.join(" ")}}});h.add("mouseup",{title:"\u76ee\u5f55\u5feb\u6377\u83dc\u5355",check:function(b){var a=!1;if(b&&typeof b==="object"&&(e.nodeName(b,"H2")||e.nodeName(b,"H3")))a=!0;return a},getHtml:function(){var b=[];b.push('<a name="ShortcutMenu" method="totext">\u53d6\u6d88\u76ee\u5f55(Esc)</a> <a name="ShortcutMenu" method="remove">\u5220\u9664\u76ee\u5f55</a>');
return{className:"jqe-shortcut-menu",html:b.join("")}}});b.plugin("ShortcutMenu",{isNeedPanel:0,click:function(b,a,d){var b=!1,e=g.getTarget(),h=d.attr("method");a[h]?b=a[h](e,d):alert("\u63d0\u793a\uff1a\u5feb\u6377\u83dc\u5355\u65b9\u6cd5\u540d\u79f0\u9519\u8bef\uff01");return b},totext:function(c){var a=e(c).text(),d=b.get("document");e(c,d).replaceWith(a);return!0},unlink:function(c){var a=e(c).html(),d=b.get("document");e(c,d).replaceWith(a);return!0},remove:function(b){b.parentNode.removeChild(b);
return!0},table:function(c,a){var d=a.attr("plugin");b.plugin(d).click();return d.indexOf("Insert")>-1?!1:!0},openlink:function(){return!0},removeRefer:function(b){b.parentNode.removeChild(b);return!0},editRefer:function(c,a){var d=b.plugin(a.attr("plugin"));d.editor_callback(c.getAttribute("name"),d);return!0}});h.add("mouseup",{title:"\u56fe\u7247\u5feb\u6377\u83dc\u5355",check:function(b){var a=!1;b&&typeof b==="object"&&e.nodeName(b,"IMG")&&(a=!0);return a},getHtml:function(b){var a=[],b=/a\d\.att\.hudong\.com/i.test(b.src);
a.push("<span>\u5c3a\u5bf8\uff1a");b?(a.push('<a name="ShortcutMenu-Image" method="resize" param="_950">\u5927</a>'),a.push('<a name="ShortcutMenu-Image" method="resize" param="_s">\u4e2d</a>'),a.push('<a name="ShortcutMenu-Image" method="resize" param="_140">\u5c0f</a>')):a.push("\u5927 \u4e2d \u5c0f ");a.push("</span>");a.push("<span>\u4f4d\u7f6e\uff1a");a.push('<a name="ShortcutMenu-Image" method="align" param="left">\u5c45\u5de6</a>');location.hostname!="www.hudong.com"&&a.push('<a name="ShortcutMenu-Image" method="align" param="center">\u5c45\u4e2d</a>');
a.push('<a name="ShortcutMenu-Image" method="align" param="right">\u5c45\u53f3</a>');a.push("</span>");a.push("<br />");a.push('<span><a name="ShortcutMenu-Image" method="desc">\u6dfb\u52a0\u63cf\u8ff0</a></span>|');a.push('<span><a name="ShortcutMenu-Image" method="remove">\u5220\u9664</a></span>');return{className:"jqe-shortcut-menu",html:a.join("")}},callback:function(b){var a=g.getTarget(),d=e(a).closest("div.img"),h=null,m={left:"img_l",center:"img_c",right:"img_r"},k=["_950","_s","_140"],i=
{color:"#333333",cursor:"default","text-decoration":"none"};if(d.length&&d.attr("class").indexOf("img")>-1){var l=d.attr("class"),n;for(n in m){var p=m[n];if(l.indexOf(p)>-1){h=n;break}}h&&b.find("[param="+h+"]").css(i).removeAttr("method").removeAttr("name");p=d.find("strong");p.length>0&&(p=b.find("[method=desc]"),p.css(i).removeAttr("method").removeAttr("name"))}if(/a\d\.att\.hudong\.com/i.test(a.src)){a=a.src;for(d=0;d<k.length;d++)if(p=k[d],a.indexOf(p)>-1){b.find("[param="+p+"]").css(i).removeAttr("method").removeAttr("name");
break}}}});h.add("mouseup",{title:"\u8868\u683c\u5feb\u6377\u83dc\u5355",timeout:3E3,check:function(c,a){var d=!1;if(a.button===2)return d;c&&typeof c==="object"&&b.$(c).closest("tr").size()&&(d=!0);return d},getHtml:function(){var b=[];b.push('<span>\u5220\u9664:<a name="ShortcutMenu" method="table" plugin="RemoveTable" title="\u5220\u9664\u6574\u4e2a\u8868\u683c">\u8868\u683c</a><a name="ShortcutMenu" method="table" plugin="RemoveRow" title="\u5220\u9664\u4e00\u884c">\u884c</a><a name="ShortcutMenu" method="table" plugin="RemoveColumn" title="\u5220\u9664\u4e00\u5217">\u5217</a></span>');
b.push('<span>\u79fb\u52a8:<a name="ShortcutMenu" method="table" plugin="RowMoveBefore" title="\u5411\u4e0a\u79fb\u52a8\u4e00\u884c">\u4e0a</a><a name="ShortcutMenu" method="table" plugin="RowMoveAfter" title="\u5411\u4e0b\u79fb\u52a8\u4e00\u884c">\u4e0b</a></span>');b.push('<span>\u63d2\u5165:<a name="ShortcutMenu" method="table" plugin="RowInsertBefore" title="\u5411\u4e0a\u63d2\u5165\u4e00\u884c">\u4e0a</a><a name="ShortcutMenu" method="table" plugin="RowInsertAfter" title="\u5411\u4e0b\u63d2\u5165\u4e00\u884c">\u4e0b</a><a name="ShortcutMenu" method="table" plugin="ColumnInsertBefore" title="\u5411\u5de6\u63d2\u5165\u4e00\u5217">\u5de6</a><a name="ShortcutMenu" method="table" plugin="ColumnInsertAfter" title="\u5411\u53f3\u63d2\u5165\u4e00\u5217">\u53f3</a></span>');
return{className:"jqe-shortcut-menu",html:b.join("")}}});b.plugin("ShortcutMenu-Image",{style:".ShortcutMenu-Image-selected{color:#333333;cursor:default;font-weight:bold;text-decoration:none;}",click:function(b,a,d){var b=g.getTarget(),e=d.attr("method"),h=d.attr("param"),k=!1;e&&(a[e]?k=a[e](b,h,d):alert("\u63d0\u793a\uff1a\u5feb\u6377\u83dc\u5355\u65b9\u6cd5\u540d\u79f0\u9519\u8bef\uff01"));return k},resize:function(b,a){d.update_img(b,a,"resize");return!0},align:function(b,a){d.update_img(b,a,
"align");return!0},desc:function(b){var a=e(b).closest("div.img"),f="";a.length&&(f=a.attr("class"),f.indexOf("img_l")>-1?f="left":f.indexOf("img_c")>-1?f="center":f.indexOf("img_r")>-1&&(f="right"));d.update_img(b,f,"desc");return!0},remove:function(b){b=e(b);b.closest("div.img").length?b=b.closest("div.img"):b.closest("a").length&&(b=b.closest("a"));b.remove();return!0}});var d={update_img:function(c,a,d){function g(c){k.attr("src");var e=l[a]?l[a]:"img_c";typeof c=="number"&&(i=c);if(i>h)i=h,k.width=
i;k.closest("a").length&&(k=k.closest("a"));c=k.closest("div.img");c.length?d=="resize"?c.width(i).find("img").width(i):c.removeClass("img_l img_c img_r").addClass(e):(c=b.$('<div class="img '+e+'" style="width:'+i+'px"></div>').append(k.clone()),k.replaceWith(c));d=="desc"&&!c.find("strong").length&&(n=k.attr("title")?k.attr("title"):k.attr("alt")?k.attr("alt"):"\u56fe\u7247\u63cf\u8ff0",c.append("<strong>"+n+"</strong>"))}var h=600,k=e(c),i=k.width(),l={left:"img_l",center:"img_c",right:"img_r"},
n="",c="";if(d=="resize"&&/a\d\.att\.hudong\.com/i.test(k.attr("src"))){c=k.attr("src").replace(/_140|_s|_950/i,a);k.attr("src",c);var p=new Image;p.onload=function(){k.attr("width",p.width);g(p.width)};p.src=c}else g()}}})(jQEditor,jQuery);
(function(b){function e(a){for(var g=a.childNodes,k=0;k<g.length;k++){var i=g[k];if(1==i.nodeType){var l=i.tagName.toLowerCase();if(c[l]){for(var n=h.IE?f:d.clone(i.attributes),p=c[l],o="",q=0,s=n.length;q<s;q++)o=h.IE?n[q]:n[q].name.toLowerCase(),$.inArray(o,p)==-1&&(i.removeAttribute(o),b.log("run","\u6e05\u7406\u6807\u7b7e"+i.tagName+"\u7684\u5c5e\u6027"+o),i.getAttribute(o));if(o=h.IE?i.style.cssText:i.getAttribute("style")){for(var o=o.replace(/; /g,";").toLowerCase(),r=o.split(";"),q=0,s=r.length;q<
s;q++)n=r[q].split(":"),$.inArray("."+n[0],p)==-1&&(o=o.replace(RegExp(n[0]+":"+n[1]+";?","i"),""));(o=$.trim(o))?h.IE?i.style.cssText=o:i.setAttribute("style",o):i.removeAttribute("style")}l==="table"&&(l=$(i),p=l.attr("bordercolor"),l.hasClass("jqe-table")||l.addClass("jqe-table"),p||l.attr("bordercolor","#cccccc"),l.attr("border",1));i.hasChildNodes()&&e(i)}else{if(i.hasChildNodes())for(q=0;q<i.childNodes.length;q++)e(i.childNodes[q]),i.parentNode.insertBefore(i.childNodes[q].cloneNode(!0),i);
i.parentNode.removeChild(i)}}}return a.innerHTML}var h=b.consts,g=[],d=b.mod("Utils"),c,a={font:[],span:["class","style",".font-weight",".font-style",".text-decoration"],div:["class","style",".width",".text-align"],a:["class","href","target","title","alt"],img:"class,src,alt,title,align,usemap,border,/".split(","),hr:["/"],br:["/"],p:["align","style",".text-align"],table:"class,style,width,.width,align,border,bordercolor,cellpadding".split(","),tbody:[],tr:[],th:["class","align","colspan","rowspan"],
td:["class","align","colspan","rowspan"],ol:["class"],ul:["class"],li:["class"],sub:["class"],sup:["class","name"],blockquote:["style",".margin",".padding"],h2:[],h3:[],h4:[],h5:[],h6:[],em:[],strong:["style",".width"],b:[],i:[],u:[],strike:[],object:"classid,class,id,width,height,codebase".split(","),embed:"style,src,type,loop,autostart,quality,.width,.height,flename,width,height,volume,pluginspage,console,controls,/".split(","),param:["name","value"],map:["id","name"],area:["shape","coords","href",
"title","/"]},f="onclick,onmouseout,onmouseover,onmousemove,align,color,font,height,vspace,hspace,id,class,style,left,right,name,rel,size,title,width,valign,bgcolor,dir".split(",");b.plugin("Cleanup",{click:function(a){var c=b.get("option");$.inArray("Cleanup",c.disabled)===-1&&this.exec(a)},exec:function(d){var f=b.get("document"),h=b.mod("Message"),i=b.get("option");c=i.allowTags&&typeof i.allowTags==="object"?$.extend({},a,i.allowTags):a;h.showNotice("\u6b63\u5728\u8fdb\u884c\u6e90\u7801\u6e05\u7406\uff0c\u8bf7\u7a0d\u7b49......\u3000\u3000\u3000",
2E4);e(f.body);typeof d==="function"&&d();clearTimeout(g[b.eid]);g[b.eid]=setTimeout(function(){h.change("\u6b63\u5728\u8fdb\u884c\u6e90\u7801\u6e05\u7406\uff0c\u8bf7\u7a0d\u7b49......\u5b8c\u6210\uff01");clearTimeout(g[b.eid]);g[b.eid]=setTimeout(function(){h.hide()},500)},100);return!0}})})(jQEditor);
(function(b){var e=b.mod("Menu");b.plugin("Bold",{menuType:"Menu",menuTitle:"\u66f4\u591a\u683c\u5f0f",menu:function(b,g){e.set(g.event,g.name);return 1}});e.add("Bold",{title:"\u6587\u672c\u683c\u5f0f\u4e0b\u62c9\u83dc\u5355",check:function(){return!0},getHtml:function(){return{Bold:1,Italic:1,Underline:1,SubScript:1,SuperScript:1}}})})(jQEditor,jQuery);
(function(b,e){b.plugin("Video",{config:{width:350,position:"center",overlay:!0},settings:{flash_mod:'<embed src="[url]" quality="high" width="[width]" height="[height]" align="middle" allowScriptAccess="always" allowFullScreen="true" mode="transparent" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" wmode="transparent" ></embed>',url_max_len:500,url_name:"url_name",width_name:"width_name",height_name:"height_name",url_tips:"\u6587\u4ef6\u7f51\u7edc\u5730\u5740\uff1a",
tips:"\u652f\u6301.swf\u6587\u4ef6\u683c\u5f0f",size_tips:"\u6587\u4ef6\u663e\u793a\u5927\u5c0f\uff1a",width_tips:"\u5bbd\u5ea6",height_tips:"\u9ad8\u5ea6",default_url:"http://",default_width:480,default_height:400,max_wid_len:3,max_hei_len:3},init:function(){var b=this.settings;e.extend(!0,b,this._settings);this.cache.html='<table border="0" width="100%">\t\t\t<tr><td colspan="2"><strong>'+b.url_tips+'</strong></td></tr>\t\t\t<tr><td colspan="2"><input type="text" name="'+b.url_name+'" maxlength="'+
b.url_max_len+'" value="'+b.default_url+'" style="width:280px;"></td></tr>\t\t\t<tr><td colspan="2" style="color:#999999;">'+b.tips+'</td></tr>\t\t\t<tr><td colspan="2"><strong>'+b.size_tips+'</strong></td></tr>\t\t\t<tr class="input_tr"><td>'+b.width_tips+' <input type="text" name="'+b.width_name+'" value="'+b.default_width+'" maxlength="'+b.max_wid_len+'" style="width:80px;"></td>\t\t\t<td>'+b.height_tips+' <input type="text" name="'+b.height_name+'" value="'+b.default_height+'" maxlength="'+b.max_hei_len+
'" style="width:80px;"></td></tr>\t\t\t</table>'},one:function(b,d){e.extend(!0,h,d._check_data)},check:function(b,d){var c=d.settings,a=d.getValues(),e=a[c.width_name],j=a[c.height_name];return(c=h.url(a[c.url_name])||h.width(e)||h.height(j))?(d.error(c),!1):!0},get:function(b,d){var c=d.settings,a=d.getValues(),e=a[c.url_name],h=a[c.height_name];return c.flash_mod.replace("[width]",a[c.width_name]).replace("[height]",h).replace("[url]",e)},onclose:function(){},_check_data:{},_settings:{}});var h=
{settings:{min_width:200,min_height:200,url_tips:"\u8bf7\u8f93\u5165\u4e00\u4e2a\u6709\u6548\u7684\u89c6\u9891\u6587\u4ef6\u5730\u5740\uff01",wid_tips:"\u5bbd\u5ea6\u5fc5\u987b\u662f\u4e00\u4e2a\u5927\u4e8e 200 \u7684\u6574\u6570\u3002",hei_tips:"\u9ad8\u5ea6\u5fc5\u987b\u662f\u4e00\u4e2a\u5927\u4e8e 200 \u7684\u6574\u6570\u3002"},url:function(b){var d=this.settings;return!b||b.length<1?d.url_tips:!/(.*)\.(swf)$/.test(b)||b.replace(".swf","").length==0?d.url_tips:null},width:function(b){var d=this.settings;
return/^[2-9]\d{2}$/.test(b)?null:d.wid_tips},height:function(b){var d=this.settings;return/^[2-9]\d{2}$/.test(b)?null:d.hei_tips}}})(jQEditor,jQuery);
(function(b){var e=["\u00b1,\u00d7,\u00f7,\u2236,\u2211,\u220f,\u222a,\u2229,\u2208,\u2237".split(","),"\u221a,\u22a5,\u2225,\u2220,\u2312,\u222b,\u222e,\u2261,\u224c,\u2248".split(","),"\u221d,\u2260,\u226e,\u226f,\u2264,\u2265,\u221e,\u2235,\u2234,\u33d1".split(","),["\u33d2"],"\uff04,\uffe0,\uffe1,\u33ce,\u338e,\u338f,\u339c,\u339d,\u339e,\u33a1".split(","),["\u33c4","\u33d5","\u2116"],"\u0101,\u00e1,\u01ce,\u00e0,\u0113,\u00e9,\u011b,\u00e8,\u012b,\u00ed".split(","),"\u01d0,\u00ec,\u014d,\u00f3,\u01d2,\u00f2,\u016b,\u00fa,\u01d4,\u00f9".split(","),
["\u01d6","\u01d8","\u01da","\u01dc","\u00fc"]];b.plugin("SpecialChar",{isNeedTitle:0,config:{width:280},style:".jqe-plugin-SpecialChar td{width:25px;height:25px;}\t\t\t.jqe-plugin-SpecialChar .special_num{background-color:#EEEEEE;border:1px solid #EEEEEE;cursor:pointer;height:20px;width:20px;line-height:20px;color:#000;display:block;text-align:center;}\t\t\t.jqe-plugin-SpecialChar a.special_num:hover{background-color:#ECF1F7;border:1px solid #AECFF7;}",init:function(){for(var b='<ul class="jqe-plugin-SpecialChar"><table>',
g=0;g<e.length;g++){var d=e[g];b+="<tr>";for(var c=0;c<d.length;c++)b+='<td><a href="javascript:void(0)" class="special_num">'+d[c]+"</a></td>";b+="</tr>"}b+="</table></ul>";this.cache.html=b},action:function(b,e,d){b=b.closest(".jqe-plugin-SpecialChar td");b.length&&(d.pasteHTML(b.text()),d.hide());return!1}})})(jQEditor,jQuery);
(function(b){var e=b.mod("Menu");b.plugin("JustifyLeft",{menuType:"Menu",menuTitle:"\u5bf9\u9f50\u65b9\u5f0f",menu:function(b,g){e.set(g.event,g.name);return 1}});e.add("JustifyLeft",{title:"\u5bf9\u9f50\u65b9\u5f0f\u4e0b\u62c9\u83dc\u5355",check:function(){return!0},getHtml:function(){return{JustifyLeft:1,JustifyCenter:1,JustifyRight:1}}})})(jQEditor,jQuery);
(function(b,e){var h=b.mod("Event"),g=b.mod("Selection"),d=b.mod("Panel");h.bind("keydown",function(c,a){var f=a.keyCode||a.which||a.charCode,j=""+g.getText();if(!a.ctrlKey&&!a.altKey&&!(a.shiftKey||f!==27))return j?b.plugin("BaikeLink").click():(f=h.getTarget(),/^(h\d|a|b|i|u|sup|sub|font)$/i.test(f.nodeName)?(e(f).replaceWith(f.innerHTML),b.monitor("esc")):d.hide()),!1});e(document).keydown(function(b){var a=b.keyCode||b.which||b.charCode;!b.ctrlKey&&!b.altKey&&!b.shiftKey&&a===27&&d.hide()})})(jQEditor,
jQuery);
(function(b){b.plugin("Image",{config:{width:420},init:function(){this.cache.html='<table border="0" width="100%"><tr><td width="75">\u56fe\u7247\u5730\u5740\uff1a</td><td height="25" align="left"><input type="text" value="http://" style="width:230px;" name="src" maxlength="250"/></td><td align="left"><select title="\u56fe\u7247\u7684\u5bf9\u9f50\u65b9\u5f0f" name="align" style="width:80px;height:21px;"><option value="left">\u5de6\u5bf9\u9f50</option><option value="right">\u53f3\u5bf9\u9f50</option></select></td></tr><tr><td>\u56fe\u7247\u8fde\u63a5\uff1a</td><td height="25" align="left"><input type="text" value="" style="width:230px;" name="url" maxlength="200"/></td><td align="left"><select title="\u6253\u5f00\u56fe\u7247\u94fe\u63a5\u7684\u65b9\u5f0f" name="target" style="width:80px;height:21px;"><option value="_blank" selected>\u65b0\u7a97\u53e3</option><option value="_self">\u5f53\u524d\u7a97\u53e3</option></select></td></tr></table>'},get:function(b,
h){var g=h.getValues(b),d="";if(!/.*?\.(jpg|gif|png)/i.test(g.src))return 1;d='<img src="'+g.src+'" align="'+g.align+'" border="0"/>';g.url&&(d='<a href="'+g.url+'" target="'+g.target+'">'+d+"</a>");return d+"<br />"},callback:function(){}})})(jQEditor,jQuery);
(function(b){var e=b.consts,h=typeof jqe_static_url==="string"?jqe_static_url:"./";b.plugin("HdImage",{inserthtml:"custom",config:{width:350,max_width:600,position:"center",overlay:!0},settings:{static_url:"./",moreSize:!0,maxUploadSize:"5M",moreAlign:!0,selectedClass:"selectedClass",img_src_action:"baike_article_create.php",getFileAction:function(){return alert("\u6ca1\u6709\u63d0\u4f9b\u53ef\u8c03\u7528\u7684\u4e0a\u4f20\u63a5\u53e3")},getUrlAction:function(){return alert("\u6ca1\u6709\u63d0\u4f9b\u53ef\u8c03\u7528\u7684\u4e0a\u4f20\u63a5\u53e3")}},
staticAttr:{inputFileName:"photofile",inputUrlName:"img_url",uploadFileBtn:"uploadFileBtn",urlFileBtn:"urlFileBtn",uploadShowName:"uploadShowName",urlShowName:"urlShowName",imgSizeName:"picWidthHeight",imgAlignName:"picAlign",imgDiscription:"picAlt",uploadButton:"uploadButton",uploadIsBusy:!1},style:'.jqe-plugin-HdImage{width:90%;margin:0 auto;}\t\t\t.jqe-plugin-HdImage .input_tr{height:26px;}\t\t\t.jqe-plugin-HdImage .first_span{left:15px;}\t\t\t.jqe-plugin-HdImage .last_span{left:110px;}\t\t\t.jqe-plugin-HdImage .uploadBoxTop{position:relative;border-bottom:1px solid #009AD9;height:29px;margin:0 0 3px;padding:0;}\t\t\t.jqe-plugin-HdImage .uploadBoxTop span{position:absolute;top:0px;color:#666666;cursor:pointer;display:inline-block;line-height:25px;text-align:center;width:80px;border-left: 1px solid #FFFFFF;border-right: 1px solid #FFFFFF;border-top: 4px solid #FFFFFF;}\t\t\t.jqe-plugin-HdImage .uploadBoxTop span.selectedClass{background-color:#FFFFFF;cursor:default;border-left: 1px solid #009AD9;border-right: 1px solid #009AD9;border-top: 4px solid #009AD9;border-bottom:2px solid #FFFFFF;color:#333333;}\t\t\t.jqe-plugin-HdImage input,textarea{color:#111111;font-family:"lucida grande",taho,verdana,"trebuchet ms",sans-serif;font-size:12px;}\t\t\t.jqe-plugin-HdImage .inputFile{height:22px;width:260px;border:1px solid #7F9DB9;}\t\t\t.jqe-plugin-HdImage .inputUrl{height:18px;line-height:18px;width:260px;border:1px solid #7F9DB9;}\t\t\t.jqe-plugin-HdImage .tips{color:#999999;line-height:22px;text-align:left;wodr-wrap:break-word;}\t\t\t.jqe-plugin-HdImage .bgImg{height:61px;background:url("'+
h+'/skins/bg/uploadimg_bg.gif") no-repeat scroll 0 0 transparent;margin:0 0 5px 10px;border:1px solid #999999;}\t\t\t.jqe-plugin-HdImage .bgImg1{background-position:0 0px;width:70px;}\t\t\t.jqe-plugin-HdImage .bgImg2{background-position:-72px -0px;width:68px;}\t\t\t.jqe-plugin-HdImage .bgImg3{background-position:-142px 0;width:69px;}\t\t\t.jqe-plugin-HdImage .alignImg{background:url("'+h+'/skins/bg/uploadimg_bg.gif") no-repeat scroll 0 0 transparent;margin:0 0 5px 10px;height:46px;border:1px solid #999999;}\t\t\t.jqe-plugin-HdImage .alignImg1{background-position:0 -69px;width:70px}\t\t\t.jqe-plugin-HdImage .alignImg2{background-position:-71px -69px;width:68px;}\t\t\t.jqe-plugin-HdImage .alignImg3{background-position:-142px -69px;width:69px;}\t\t\t.jqe-plugin-HdImage strong{line-height:22px;}',
init:function(){var b=this.staticAttr,d=this.settings,c=d.moreAlign,a='<table class="jqe-plugin-HdImage"><tr><td colspan="3"><div class="uploadBoxTop"><span name="'+b.uploadFileBtn+'" class="'+d.selectedClass+' first_span">\u4e0a\u4f20\u56fe\u7247</span><span class="last_span" name="'+b.urlFileBtn+'">\u6dfb\u52a0url</span></div></td></tr><tr name="'+b.uploadShowName+'" class="input_tr"><td colspan="3"><input class="inputFile" type="file" name="'+b.inputFileName+'" size="35"><input type="hidden" value="'+
d.img_src_action+'" name="img_src_action"></td></tr><tr name="'+b.uploadShowName+'" class="input_tr"><td colspan="3"><label class="tips">\u56fe\u7247\u683c\u5f0f\uff1ajpg\u3001jpeg\u3001png\u3001gif\uff0c\u5927\u5c0f\u4e3a'+d.maxUploadSize+'\u4ee5\u5185</label></td></tr><tr name="'+b.urlShowName+'" style="display:none;" class="input_tr"><td colspan="3"><input type="text" class="inputUrl" name="'+b.inputUrlName+'"></td></tr><tr name="'+b.urlShowName+'" style="display:none;" class="input_tr"><td colspan="3"><label class="tips">\u6ce8:\u8bf7\u8f93\u5165\u4ee5jpg\u3001jpeg\u3001png\u3001gif\u7ed3\u675f\u7684url</label></td></tr><tr><td height="30"><strong>\u56fe\u7247\u5927\u5c0f\uff1a</strong></td><td></td><td></td></tr>';
a+=d.moreSize?'<tr><td><label><div class="bgImg bgImg1"></div><input type="radio" imgsize="_950" value="1" name="'+b.imgSizeName+'" checked="true">\u5927(\u957f\u8fb9600)</label></td><td><label><div class="bgImg bgImg2"></div><input type="radio" imgsize="_s" value="1" name="'+b.imgSizeName+'">\u4e2d(\u957f\u8fb9300)</label></td><td><label><div class="bgImg bgImg3"></div><input type="radio" imgsize="_140" value="2" name="'+b.imgSizeName+'">\u5c0f(\u957f\u8fb9140)</label></td></tr>':'<tr><td colspan="3"><table width="100%;"><tr><td style="text-align:left;"><label><div class="bgImg bgImg1"></div><input type="radio" imgsize="_s" value="1" name="'+
b.imgSizeName+'" checked="true">\u5927(\u957f\u8fb9300px)</label></td><td style="text-align:left;"><label><div class="bgImg bgImg3"></div><input type="radio" imgsize="_140" value="2" name="'+b.imgSizeName+'">\u5c0f(\u957f\u8fb9140px)</label></td></tr></table></td></tr>';a+='<tr><td height="30"><strong>\u5bf9\u9f50\u65b9\u5f0f\uff1a</strong></td><td></td><td></td></tr>';a+=c?'<tr><td><label><div class="alignImg alignImg1"></div><input type="radio" value="left" name="'+b.imgAlignName+'">\u56fe\u7247\u5c45\u5de6</label></td><td><label><div class="alignImg alignImg2"></div><input type="radio" value="center" name="'+
b.imgAlignName+'" checked="true">\u56fe\u7247\u5c45\u4e2d</label></td><td><label><div class="alignImg alignImg3"></div><input type="radio" value="right" name="'+b.imgAlignName+'">\u56fe\u7247\u5c45\u53f3</label></td></tr>':'<tr><td colspan="3"><table width="100%"><tr><td style="text-align:left;"><label><div class="alignImg alignImg1"></div><input type="radio" value="left" name="'+b.imgAlignName+'" checked="true">\u56fe\u7247\u5c45\u5de6</label></td><td style="text-align:left;"><label><div class="alignImg alignImg3"></div><input type="radio" value="right" name="'+
b.imgAlignName+'">\u56fe\u7247\u5c45\u53f3</label></td></tr></table></td></tr>';a+='<tr><td colspan="3" height="30"><strong>\u56fe\u7247\u63cf\u8ff0[<font color="red">\u5fc5\u586b</font>]\uff1a</strong></td><td></td><td></td></tr><tr><td colspan="3"><textarea style="width:95%;height:30px;" maxlength="100" name="'+b.imgDiscription+'"></textarea></td></tr></table>';this.cache.html=a},action:function(b,d,c){var a=b.attr("name");if(typeof c[a]===e.typeof_function)return c[a](b,d,c)},callback:function(b,
d){var c=d.staticAttr;b.find(":submit").replaceWith("<input type='button' value=' \u63d0 \u4ea4 ' name='"+c.uploadButton+"'>")},uploadFileBtn:function(b,d,c){var a=c.staticAttr,c=c.settings;d.find("[name="+a.uploadShowName+"]").show();d.find("[name="+a.urlShowName+"]").hide();d.find("[name="+a.urlFileBtn+"]").removeClass(c.selectedClass);b.addClass(c.selectedClass);return!1},urlFileBtn:function(b,d,c){var a=c.staticAttr,c=c.settings;d.find("[name="+a.uploadShowName+"]").hide();d.find("[name="+a.urlShowName+
"]").show();d.find("[name="+a.uploadFileBtn+"]").removeClass(c.selectedClass);b.addClass(c.selectedClass);return!1},ok:function(){},onclose:function(b,d){d.staticAttr.uploadIsBusy=!1},uploadButton:function(b,d,c){var a=c.staticAttr,e=c.settings,b=d.find("[name="+a.inputFileName+"]"),h=$.trim(d.find("[name="+a.inputUrlName+"]").val()),m=$.trim(d.find("[name="+a.imgDiscription+"]").val()),k=/^(http\:\/\/)(\w|\.|\/)+\.(jpg|jpeg|gif|png)$/i;if((d=d.find("[name="+a.uploadFileBtn+"]").attr("class").indexOf(e.selectedClass)>
-1)&&!c._checkFile(b))return c.error("\u63d0\u793a\uff1a\u8bf7\u9009\u62e9\u4e00\u4e2a\u6709\u6548\u7684\u56fe\u7247\u6587\u4ef6\uff01"),!1;else if(!d)if(h.length<1)return c.error("url\u5730\u5740\u4e0d\u80fd\u4e3a\u7a7a!"),!1;else if(!k.test(h))return c.error("url\u5730\u5740\u683c\u5f0f\u6709\u8bef!"),!1;if(m.length<1)return c.error("\u8bf7\u586b\u5199\u56fe\u7247\u63cf\u8ff0\uff0c\u826f\u597d\u7684\u63cf\u8ff0\u53ef\u4ee5\u5e2e\u52a9\u8bfb\u8005\u7406\u89e3\u56fe\u7247\uff01"),!1;else if(m.length>
500)return c.error("\u8fc7\u591a\u7684\u56fe\u7247\u63cf\u8ff0\u53ef\u80fd\u4f1a\u5f71\u54cd\u9875\u9762\u5e03\u5c40\uff01"),!1;c._uploadFile();c.lock();setTimeout(function(){c.unlock()},1E4)},_uploadFile:function(){var e=b.plugin("HdImage"),d=e.staticAttr;d.uploadIsBusy?e.error("\u8bf7\u7a0d\u540e..."):(d.uploadIsBusy=!0,$("#articleUpload_iframe").length||$("body").append('<iframe id="articleUpload_iframe" name="articleUpload_iframe" width="0" height="0"></iframe>'),e._uploadForm("articleUpload_iframe"))},
_uploadForm:function(e){var d=b.plugin("HdImage"),c=d.panel,a=d.staticAttr,f=d.settings,h=c.find("[name="+a.uploadFileBtn+"]"),c=c.find("form"),f=d.settings,e={target:e,method:"POST",onsubmit:"return true"},m=null,m=null,k="enctype";if($.browser.msie&&($.browser.version<8||document.documentMode==7))k="encoding";if(h.hasClass(f.selectedClass)){m=f.getFileAction();if(!m)return a.uploadIsBusy=!1;c[0].setAttribute(k,"multipart/form-data")}else{m=f.getUrlAction();if(!m)return a.uploadIsBusy=!1;c[0].setAttribute(k,
"application/x-www-form-urlencoded")}if(typeof m==="string")e.action=m;else if(typeof m==="object"&&(e.action=m.action,typeof m.postParms==="object")){var m=m.postParms,i;for(i in m)c.append('<input type="hidden" name="'+i+'" value="'+m[i]+'">')}c.attr(e);d.error("\u56fe\u7247\u4e0a\u4f20\u4e2d....");c[0].submit()},insert:function(e,d){var c=b.plugin("HdImage"),a=c.panel,f=c.staticAttr,h=new Image,m=e,k=a.find("[name="+f.imgSizeName+"]:checked").attr("imgsize"),m=e.replace(/_140|_s|_950/i,k);c.unlock();
h.onload=function(){var e,g,k=parseInt(h.width),p=0;e=a.find("[name="+f.imgDiscription+"]").val();!e&&$("_doc_title").length?e=$("_doc_title").val():!e&&$("title").length&&(e=$("title").val());p=k>c.config.max_width?c.config.max_width:k;g=a.find("[name="+f.imgAlignName+"]:checked").val();var o="",o="width:"+p+"px;";g=="left"?g="img_l":g=="right"?g="img_r":(g="img_c",o="width:"+p+"px;");o='<br /><br /><DIV class="img '+g+'" style="'+o+'">';d&&(o+='<A title="'+e+'" href="'+d+'" target=_blank>');o+=
'<IMG title="'+e+'" alt="'+e+'"';k>c.config.max_width&&(o+=' width="'+p+'"');o+=' src="'+m+'"/>';d&&(o+="</A>");o+="<STRONG>"+e+"</STRONG></DIV><br />";c.pasteHTML(o);c.hide();b.monitor(c.name);h.onload=function(){};f.uploadIsBusy=!1};h.onerror=function(){c.error("\u63d0\u793a\uff1a\u56fe\u7247\u63d2\u5165\u5931\u8d25\uff01");f.uploadIsBusy=!1};h.src=m},_checkFile:function(b){return b.val().length==0?!1:!/\.(jpg|jpeg|gif|png)$/i.test(b.val())?!1:!0}})})(jQEditor);
(function(b){b.addFilter("default",{type:"html",replace:function(b){if(typeof b!=="string"||!b)return b;b=b.replace(/^\s+/g,"");b=b.replace(/\s+$/g,"");b=b.replace(/>\s+</g,"><");b=b.replace(/<\/?textarea>/ig,"");b=b.replace(/<\!--[\s\S]*?--\>/gi,"");b=b.replace(/<(div|strong|span|a)[^>]*?>\s*<\/\1>/ig,"");b=b.replace(/<(span|font)>([^<]+)<\/\1>/ig,"$2");b=b.replace(/<\??xml(:\w+)?(\s+[^>]*?)?>([\s\S]*?<\/xml>)?/ig,"");b=b.replace(/<\/?(html|head|body|meta|title|iframe|frame)(\s+[^>]*?)?>/ig,"");
b=b.replace(/<link(\s+[^>]*?)?>/ig,"");b=b.replace(/<script(\s+[^>]*?)?>[\s\S]*?<\/script>/ig,"");b=b.replace(/(<\w+)(\s+[^>]*?)?\s+on(?:click|dblclick|mousedown|mouseup|mousemove|mouseover|mouseout|mouseenter|mouseleave|keydown|keypress|keyup|change|select|submit|reset|blur|focus|load|unload)\s*=\s*(["']?).*?\3((?:\s+[^>]*?)?\/?>)/ig,"$1$2$4");b=b.replace(/<style(\s+[^>]*?)?>[\s\S]*?<\/style>/ig,"");b=b.replace(/<\/(strong|b|u|strike|em|i)>((?:\s|<br\/?>|&nbsp;)*?)<\1(\s+[^>]*?)?>/ig,"$2");b=b.replace(/class=\"Apple-style-span\"/ig,
"");b=b.replace(/ jquery\d+=\"?\d+\"?/ig," ");b=b.replace(/<\!--\[if gte mso [0-9]{1,2}\]>[\s\S]*?<!\[endif\]--\>/ig,"");b=b.replace(/<style>[\s\S]*?mso[\s\S]*?<\/style>/ig,"");b=b.replace(/ lang=".+?"/ig,"");b=b.replace(/<o:p><\/o:p>/ig,"");b=b.replace(/ class="Mso.+?"/ig,"");return b=b.replace(/ mso-spacerun: 'yes'/ig,"")}})})(jQEditor,jQuery);
(function(b,e){var h=/^http:\/\/(\w+\.){0,2}(?:hudong|baike)\.com/i;b.addFilter("baike",{replace:function(g){if(typeof g!="object"||!g.body)return g;b.$("a").each(function(){var b=e(this),c=b.attr("href"),a=b.text();b.is(".innerlink,.baikelink")||/www\.hudong\.com\/wiki\//i.test(c)?b.attr("href","http://www.hudong.com/wiki/"+encodeURI(a)):c&&(c=c.toLowerCase(),c.indexOf("http:")===0&&!h.test(c)&&b.replaceWith(b.html()))})}})})(jQEditor,jQuery);
(function(b,e){var h=/^(area|p|blockquote|center|dir|div|form|ol|ul|pre|dl|table|h[123456r]|audio|canvas|section|video)$/i,g=b.addFilter("paragraph",{replace:function(d){if(typeof d!="object"||!d.body)return d;for(var c,a=b.$("body")[0].childNodes,f=[],g=[],m=0,k=a.length;m<k;m++)if(c=a[m],1===c.nodeType)h.test(c.nodeName)?g.length&&(f.push(g),g=[]):g.push(c);else if(3===c.nodeType){var i=e.trim(b.$(c).text());i&&(b.$(c).text(i),g.push(c))}g.length&&f.push(g);m=0;for(k=f.length;m<k;m++){c=d.createElement("p");
a=f[m];b.$(a[0]).before(c);g=0;for(i=a.length;g<i;g++)b.$(c).append(a[g])}}});b.Event.bind("oncomplete",function(b){g.replace(b.dom)})})(jQEditor,jQuery);
(function(b){var e=b.consts;b.addFilter("xhtml",{type:"html",replace:function(b){if(typeof b!="string"||!b)return b;var g,b=b.replace(/<(br|hr)>/ig,"<$1 />"),b=b.replace(/<(img[^>]*)([^\/])>/ig,"<$1$2 />");if(!e.IE)return b;g=/(<\/?)([A-Z]+)>/g;b=b.replace(g,function(b,c,a){return c+a.toLowerCase()+">"});g=/<([A-Z]+)([^>]*)>/g;return b=b.replace(g,function(b,c,a){a=a.replace(/\s([A-Z]+)=/g,function(a,b){return" "+b.toLowerCase()+"="});a=a.replace(/\s+(\w+=)(\w[^\s]+)/g,function(a,b,c){return" "+b+
'"'+c+'"'});return"<"+c.toLowerCase()+a+">"})}})})(jQEditor,jQuery);(function(b,e){var h=/^javascript:/i;b.addFilter("xss",{replace:function(b){if(typeof b!="object"||!b.body)return b;e("a",b).each(function(){var b=e(this),c=b.attr("href");c&&(c=c.replace(/\s/g,""),h.test(c)&&b.replaceWith(b.html()))});e("img",b).each(function(){var b=e(this),c=b.attr("src");c&&(c=c.replace(/\s/g,""),h.test(c)&&b.remove())})}})})(jQEditor,jQuery);
(function(b,e){function h(){var a=b.config("tagAndDisablePlugin"),f=a["*"],h=[],m=d.getElement(),k=c.getRange();for(tagName in m)if(a[tagName])if(e.isArray(a[tagName]))h=h.concat(a[tagName]);else{h="*";break}if("*"===h)for(var i in f)b.disablePlugin(f[i]);else{for(i in f)b.enablePlugin(f[i]);if(e.isArray(h)&&h.length)for(var l in h)b.disablePlugin(h[l])}i=c.getHtml();f=""+c.getText();m={};h=null;if(g.IE){if(i)/<t(d|h)/i.test(i)&&(m.table=1),/<h2/i.test(i)&&(m.h2=1),/<h3/i.test(i)&&(m.h3=1),/<img/i.test(i)&&
(m.img=1),/<pre/i.test(i)&&(m.pre=1)}else if(f){var k=i.getRangeAt(0),k=k.cloneContents().childNodes,n;for(i=0;i<k.length;i++)n=k[i].nodeName.toLowerCase(),m[n]=1}m.talbe?h=a.selectedTable:f&&f.length>40&&(h=["BaikeLink","H1","H2"]);if(e.isArray(h)&&h.length)for(l in h)b.disablePlugin(h[l])}var g=b.consts,d=b.mod("Event"),c=b.mod("Selection");d.bind("mouseup",function(a,b){h(b)});d.bind("keyup",function(a,b){h(b)})})(jQEditor,jQuery);
(function(b,e){var h=b.mod("Event");h.bind("keydown",function(b,d){var c=e(h.getTarget()),a=d.keyCode;if(c.is("sup.refer"))if(a==8||a==46)return c.remove(),!1;else if(a<37||a>40)return!1});h.bind("keyup",function(b,d){e(h.getTarget());if(d.keyCode!==13)return!0})})(jQEditor,jQuery);
(function(b,e){if(typeof e.isEmptyObject!=="function")e.isEmptyObject=function(b){if(!b||typeof b!=="object")return!0;for(var a in b)return!1;return!0};var h=b.mod("Event"),g=b.config("ctrlKeys"),d=b.config("ctrlShiftKeys");e.isEmptyObject(g)&&e.isEmptyObject(d)?b.log("run","ctrlKeys && ctrlShiftKeys is empty"):(b.log("run","shortcutKey is binded"),h.bind("keydown",function(c,a){if(!a.ctrlKey)return!0;var e=null,h=a.keyCode||a.which||a.charCode;a.ctrlKey&&!a.altKey&&(e=a.shiftKey?d[h]:g[h]);if(e)return(h=
b.plugin(e))?(h.isEnabled()&&h.click(null,h),b.log("run","\u6267\u884c\u5feb\u6377\u952e\u547d\u4ee4"+e)):b.execCommand(e,null,null),!1;else(h<16||h>18)&&b.log("run","keyCode:"+h)}))})(jQEditor,jQuery);
(function(b,e){function h(){var a=b.$("body").children(),d=b.$("body").html(),d=e.trim(d);if(d==="")return b.$("body").html(c);else if(!a.size())return b.$("body").html("<p>"+d+"</p>");a.eq(0);var a=a.eq(a.length-1),h="";a.is("p")?(h=a.html(),(h=e.trim(h))&&">"==h.substr(h.length-1)&&!a.children().last().is("br")?b.$("body").append(c):h||a.append(g.IE?"&nbsp;":"<br/>")):b.$("body").append(c);/^\s*<(h\d|table|div)/i.test(d)&&b.$("body").prepend(c)}var g=b.consts,d=b.mod("Event"),c=g.IE?"<p>&nbsp;</p>":
"<p><br></p>";d.bind("onmonitor",function(){h()});d.bind("oncomplete",function(){h()})})(jQEditor,jQuery);
(function(b,e){function h(c){var d=b.eid,e=b.get("option");clearTimeout(a[d]);a[d]=setTimeout(function(){m=b.getHTML(!1).length;m-j>e.AutoCleanup&&b.plugin("Cleanup").click(c)},500)}var g=b.mod("Event"),d=b.mod("Selection"),c=b.mod("Utils"),a={},f=e.browser,j=0,m=0;b.plugin("PasteToText",{click:function(a,c,d){if(!f.webkit&&!f.mozilla&&!f.msie)return!0;a=d?d.closest(".jqe-button"):e("PasteToText");c=b.get("option");c.PasteToText?(c.PasteToText=!1,a.removeClass("jqe-button-checked"),b.showNotice("\u5173\u95ed\u7eaf\u6587\u672c\u7c98\u5e16\u6a21\u5f0f")):
(c.PasteToText=!0,a.addClass("jqe-button-checked"),b.showNotice("\u7c98\u5e16\u5185\u5bb9\u5230\u7f16\u8f91\u5668\u5c06\u81ea\u52a8\u8f6c\u4e3a\u7eaf\u6587\u672c",3E3))}});g.bind("paste",function(g,i){var l=b.eid,l=b.get("option");if(l.PasteToText)if(f.webkit)b.pasteHTML('<textarea class="jqe-paste-wrap"></textarea>'),e(".jqe-paste-wrap",g).focus(),setTimeout(function(){var a=e(".jqe-paste-wrap",g),b=a.val(),b=c.escape(b),b=b.replace("\n","<br>\n");a.replaceWith(b)},0),i.shiftKey=!0,setTimeout(function(){b.monitor("PasteToText")},
50);else if(f.mozilla)b.pasteHTML('<div class="jqe-paste-wrap"><a class="jqe-paste-text"></a></div>'),l=b.$(".jqe-paste-text")[0],d.getRange().selectNode(l),setTimeout(function(){var a=b.$(".jqe-paste-wrap"),d=a.text(),e=g.createTextNode(""),d=c.escape(d),d=d.replace("\n","<br>\n");a.before(e);a.remove();b.$(e).before(d).remove()},0),setTimeout(function(){b.monitor("PasteToText")},50);else if(f.msie){if(l=window.clipboardData.getData("text"))l=c.escape(l),l=l.replace(/\n/g,"<br>\n"),b.pasteHTML(l);
setTimeout(function(){b.monitor("PasteToText")},50);return!1}else h(function(){b.monitor("PasteToText")});else if(l.AutoCleanup){if(typeof l.AutoCleanup!=="number")l.AutoCleanup=500;else if(l.AutoCleanup<100)l.AutoCleanup=100;j=b.getHTML(!1).length;h(function(){b.monitor("PasteToText")})}else l=b.eid,clearTimeout(a[l]),a[l]=setTimeout(function(){b.monitor("Paste")},200);b.log("run","\u6267\u884c\u7c98\u5e16\u4e8b\u4ef6")})})(jQEditor,jQuery);
(function(b,e){var h=b.mod("Panel"),g=null;b.plugin("Dialog",{title:"\u63d0\u793a",config:{width:350,position:"center",overlay:!0},show:function(b,c,a){var f=e(window).width(),a=typeof a==="number"?a:350;a<200&&(a=200);a>f&&(a=f);if(b)g.title=b;g.config.width=a;g.cache.html=c;h.set(g)},showError:function(b){g.show("\u63d0\u793a",'<table width="100%"><tr><td valign="center" align="center" style="height:150px;line-height:150%;color:red;">'+b+"</td></tr></table>")},showNotice:function(b){g.show("\u63d0\u793a",
'<table width="100%"><tr><td valign="center" align="center" style="height:180px;line-height:150%;color:#666666;">'+b+"</td></tr></table>")}});g=b.plugin("Dialog")})(jQEditor,jQuery);(function(b){var e=b.consts.IE?"<p>&nbsp;</p>":"<p><br></p>";b.plugin("ClearDoc",{click:function(){confirm("\u786e\u5b9a\u6e05\u7a7a\u6240\u6709\u5185\u5bb9\u5417\uff1f")&&(b.setHTML(e),b.focus(),b.hidePanel())}})})(jQEditor,jQuery);
(function(b){function e(b,a,e){e=e||(new Date).getHours();return e>=b&&e<a&&(!d||d.h<b||d.h>=a)?!0:!1}function h(){var b=new Date,a=b.getHours(),b=b.getMinutes();return{h:a,m:b}}function g(c){var c=c||3E3,a="";e(0,2)?a="Hi\uff01\u592a\u665a\u4e86\uff0c\u8be5\u4f11\u606f\u5566\uff0c\u6709\u4ec0\u4e48\u4e8b\u5929\u660e\u4e86\u518d\u641e\u5427":e(2,4)?a="\u600e\u4e48\u8fd8\u6ca1\u6709\u4f11\u606f\u5462\uff1f\u592a\u8f9b\u82e6\u4e86\uff0c\u8981\u4e0d\u5148\u559d\u70b9\u4ec0\u4e48\uff1f":e(4,6)?a="\u5929\u8981\u4eae\u4e86\uff0c\u6293\u7d27\u65f6\u95f4\u4f11\u606f\u4f1a\u5427\uff01":
e(6,8)?a="\u54c7\uff01\u8fd9\u4e48\u65e9\u5c31\u6765\u4e86\uff0c\u6ca1\u5403\u65e9\u9910\u7684\u8bdd\u8bb0\u5f97\u5403\u54e6\uff01":e(8,9)?a="\u65e9\u4e0a\u597d\uff01\u65e9\u9910\u5f88\u91cd\u8981\uff0c\u522b\u5fd8\u4e86\u5403\u54e6\uff01":e(12,13)?a="\u5348\u9910\u8981\u5403\u597d\uff0c\u60a8\u5403\u4e86\u5417\uff1f":e(13,14)?a="\u5348\u4f11\u65f6\u95f4\uff0c\u5efa\u8bae\u60a8\u4f11\u606f\u4e00\u4f1a":e(18,19)?a="\u665a\u9910\u65f6\u95f4\u5230\u4e86\uff0c\u665a\u9910\u53ef\u4ee5\u5c11\u5403\u4e00\u4e9b\u54e6":
e(22,23)?a="Hi\uff0c\u65e9\u70b9\u4f11\u606f\u5427\uff0c\u65e9\u7761\u65e9\u8d77\u8eab\u4f53\u68d2\uff01":e(23,24)&&(a="\u591c\u6df1\u4eba\u9759\u4e86\uff0c\u8d76\u7d27\u4f11\u606f\u5427\uff0c\u8eab\u4f53\u6bd4\u5de5\u4f5c\u66f4\u91cd\u8981\uff01");d=h();a&&b.showNotice(a,c)}var d;setTimeout(function(){var c=b.get("option");$.inArray("plugin.Hello",c.disabled)==-1&&(h(),g(5E3),setInterval(g,3E4))},2E3)})(jQEditor);

