/gi,"[tr]\n");m=m.replace(/<\/tr>/gi,"[/tr]\n");m=m.replace(/([\s\S]*?)<\/td>/gi,"[td][align=$1]$2[/align][/td]");m=m.replace(/(\t)* | (\t)*/gi,"[td]");m=m.replace(/(\t)*<\/td>/gi,"[/td]\n");var w={};m.replace(/<\/span>/,function(z){var A=z.hashCode();w[A]=z.replace(/\$/g,"$$$$");return"@@"+A+"@@"});m=m.replace(/<[^>]+>/g,"");if($.getLength(w)){for(var j in w){var t=new RegExp("@@"+j+"@@","g");data=data.replace(t,w[j])}}m=m.replace(/</g,"<");m=m.replace(/>/g,">");m=m.replace(/&/g,"&");m=m.replace(/%28/g,"(");m=m.replace(/%29/g,")");var r={};for(var a=0,i=__REDACTOR_SOURCE_BBCODES.length;a/g,">");var b={};for(var k=0,i=__REDACTOR_SOURCE_BBCODES.length;k$1');e=e.replace(/\[url\='([^'"]+)'](.+?)\[\/url]/gi,'$2');e=e.replace(/\[url\=([^'"\]]+)](.+?)\[\/url]/gi,'$2');e=e.replace(/\[email\]([^"]+?)\[\/email]/gi,'$1');e=e.replace(/\[email\=([^"\]]+)](.+?)\[\/email]/gi,'$2');e=e.replace(/\[b\](.*?)\[\/b]/gi,"$1");e=e.replace(/\[i\](.*?)\[\/i]/gi,"$1");e=e.replace(/\[u\](.*?)\[\/u]/gi,"$1");e=e.replace(/\[s\](.*?)\[\/s]/gi,"$1");e=e.replace(/\[sub\](.*?)\[\/sub]/gi,"$1");e=e.replace(/\[sup\](.*?)\[\/sup]/gi,"$1");e=e.replace(/\[img\]([^"]+?)\[\/img\]/gi,'');e=e.replace(/\[img='?([^"]*?)'?,'?(left|right)'?\]\[\/img\]/gi,'');e=e.replace(/\[img='?([^"]*?)'?\]\[\/img\]/gi,'');e=e.replace(/\[size=(\d+)\](.*?)\[\/size\]/gi,'$2');e=e.replace(/\[color=([#a-z0-9]*?)\](.*?)\[\/color\]/gi,'$2');e=e.replace(/\[font='?([a-z,\- ]*?)'?\](.*?)\[\/font\]/gi,'$2');e=e.replace(/\[align=(left|right|center|justify)\](.*?)\[\/align\]/gi,'$2 ');e=e.replace(/\[\*\](.*?)(?=\[\*\]|\[\/list\])/gi,"$1");e=e.replace(/\[list\]/gi,"");e=e.replace(/\[list=1\]/gi,'');e=e.replace(/\[list=a\]/gi,'');e=e.replace(/\[list=(none|circle|square|disc|decimal|lower-roman|upper-roman|decimal-leading-zero|lower-greek|lower-latin|upper-latin|armenian|georgian)\]/gi,'');e=e.replace(/\[\/list]/gi," ");e=e.replace(/\[table\]([\S\s]*?)\[\/table\]/gi,function(m,n){return"[table]"+$.trim(n)+"[/table]"});e=e.replace(/\[table\]/gi,'');e=e.replace(/\[\/table\]/gi," ");e=e.replace(/\[tr\]/gi,"");e=e.replace(/\[\/tr\]/gi," ");e=e.replace(/\[td\]/gi,"");e=e.replace(/\[\/td\]/gi," | ");e=e.replace(/([\S\s]*?)<\/td>/gi,function(m,o){var n=$.trim(o);if(!n.length){n=""}return" | "+n+" | "});for(var l in __REDACTOR_SMILIES){$smileyCode=l.replace(//g,">");var g=new RegExp("(\\s|>|^)"+WCF.String.escapeRegExp($smileyCode)+"(?=\\s|<|$)","gi");e=e.replace(g,'$1')}e=e.replace(/(javascript):/gi,"$1:");e=e.replace(/(\r|\r\n)/,"\n");var a=e.split("\n");e="";for(var k=0,i=a.length;k"}e+=""+j+" "}}if($.getLength(b)){for(var f in b){var h=new RegExp("@@"+f+"@@","g");e=e.replace(h,b[f])}}e=e.replace(/\[code\][\S\s]*?\[\/code\]/," $& ");this.$source.val(e)},_wPasteBeforeCallback:function(a){var b={1:24,2:22,3:18,4:14,5:12,6:10};a=a.replace(/]+>/g,function(c,d){return"[size="+b[d]+"]"});a=a.replace(/<\/h[1-6]>/g,"[/size]");a=a.replace(/<(article|header)[^>]+>/g,"");a=a.replace(/<\/(article|header)>/g," ");a=a.replace(/<(div|p)([^>]+)?><(div|p)([^>]+)?>/g,"");a=a.replace(/<\/(div|p)><\/(div|p)>/g," @@@wcf_break@@@");return a},_wPasteAfterCallback:function(a){a=a.replace(/([\s\S]*?)<\/p>/g," $1
");a=a.replace(/]*>/g,"");a=a.replace(/<\/header>/g,"");a=a.replace(/.*?<\/div>/g," $1 ");a=a.replace(/<\/?div>/g,"");a=a.replace(/@@@wcf_break@@@/g,"
");a=a.replace(/ /g," ");a=a.replace(/\[size=(\d+)\]/g,'
');a=a.replace(/\[\/size\]/g,"
");return a}};
// wbutton.js
if(!RedactorPlugins){var RedactorPlugins={}}RedactorPlugins.wbutton={_bbcodes:{},init:function(){this._bbcodes={};for(var g=0,d=__REDACTOR_BUTTONS.length;g ").append(d).insertAfter(this.buttonGet(c).parent());if(a!==null){this.buttonAwesome(b,a)}},_addBBCodeButton:function(b){var c="__wcf_"+b.name;var a=this.buttonAdd(c,b.label,this._insertBBCode);this._bbcodes[c]=b.name;if(b.icon.match(/^fa\-[a-z\-]+$/)){this.buttonAwesome(c,b.icon)}else{a.css("background-image","url("+__REDACTOR_ICON_PATH+b.icon+")")}},_insertBBCode:function(a,f,b,e){var d=this._bbcodes[a];var c=this.getSelectionHtml();this.insertHtml("["+d+"]"+c+"[/"+d+"]");this.sync()}};
// wfontcolor.js
-if(!RedactorPlugins){var RedactorPlugins={}}RedactorPlugins.wfontcolor={init:function(){var a=this._createFontColorDropdown();this.buttonReplace("fontcolor","fontcolor",this.opts.curLang.fontcolor,$.proxy(function(f,c,b,d){this.dropdownShow(d,f)},this));this.buttonGet("fontcolor").data("dropdown",a)},_createFontColorDropdown:function(){var d=$(' ');var b=["#000000","#800000","#8B4513","#2F4F4F","#008080","#000080","#4B0082","#696969","#B22222","#A52A2A","#DAA520","#006400","#40E0D0","#0000CD","#800080","#808080","#FF0000","#FF8C00","#FFD700","#008000","#00FFFF","#0000FF","#EE82EE","#A9A9A9","#FFA07A","#FFA500","#FFFF00","#00FF00","#AFEEEE","#ADD8E6","#DDA0DD","#D3D3D3","#FFF0F5","#FAEBD7","#FFFFE0","#F0FFF0","#F0FFFF","#F0F8FF","#E6E6FA","#FFFFFF"];for(var g=0,e=b.length;g ').data("color",f).css("background-color",f);d.append(c);c.click($.proxy(this._onColorPick,this))}var a=$(' ').html(this.opts.curLang.none).data("color","none");a.click($.proxy(this._onColorPick,this));d.append(a);$(this.$toolbar).append(d);return d},_onColorPick:function(a){a.preventDefault();var b=$(a.currentTarget).data("color");if(b==="none"){this.inlineRemoveStyle("color")}else{this.inlineSetStyle("color",b)}}};
+if(!RedactorPlugins){var RedactorPlugins={}}RedactorPlugins.wfontcolor={init:function(){var a=this._createFontColorDropdown();this.buttonReplace("fontcolor","fontcolor",this.opts.curLang.fontcolor,$.proxy(function(f,c,b,d){this.dropdownShow(d,f)},this));this.buttonGet("fontcolor").data("dropdown",a)},_createFontColorDropdown:function(){var d=$(' |
");for(g=0;g