Updating minified JavaScript files
authorwoltlab.com <woltlab@woltlab.com>
Sun, 25 May 2014 11:46:05 +0000 (13:46 +0200)
committerwoltlab.com <woltlab@woltlab.com>
Sun, 25 May 2014 11:46:05 +0000 (13:46 +0200)
wcfsetup/install/files/js/3rdParty/redactor/plugins/wcombined.min.js

index 46295ee9e36addc8f53f9afe977e79d230f306be..5636c2164913141d2e4da051f9790d9134d077ed 100644 (file)
@@ -1,5 +1,5 @@
 // wbbcode.js
-if(!RedactorPlugins){var RedactorPlugins={}}RedactorPlugins.wbbcode={init:function(){this._createSmileyDropdown();this.buttonReplace("smiley","wsmiley","Smiley",$.proxy(function(d,b,a,c){this.dropdownShow(c,d)},this));this.buttonAwesome("wsmiley","fa-smile-o");this.opts.initCallback=$.proxy(function(){if(this.$source.val().length){this.toggle();this.toggle()}},this)},_createSmileyDropdown:function(){var d=$('<div class="redactor_dropdown redactor_dropdown_box_wsmiley" style="display: none; width: 195px;" />');var c=$('<ul class="smileyList" />').appendTo(d);for(var a in __REDACTOR_SMILIES){var b=$('<li><img src="'+__REDACTOR_SMILIES[a]+'" class="smiley" /></li>').data("smileyCode",a);b.appendTo(c).click($.proxy(this._onSmileyPick,this))}$(this.$toolbar).append(d)},_onSmileyPick:function(b){var a=$(b.currentTarget).data("smileyCode");this.insertSmiley(a,__REDACTOR_SMILIES[a],false)},insertSmiley:function(a,b,c){if(c){this.registerSmiley(a,b)}if(this.opts.visual){this.bufferSet();this.$editor.focus();this.insertHtml('&nbsp;<img src="'+b+'" class="smiley" alt="'+a+'" />&nbsp;');if(this.opts.air){this.$air.fadeOut(100)}this.sync()}else{this.insertAtCaret(" "+a+" ")}},registerSmiley:function(a,b){if(__REDACTOR_SMILIES[a]){return false}__REDACTOR_SMILIES[a]=b;return true},toggle:function(a){if(this.opts.visual){this._convertParagraphs();this.toggleCode(a);this._convertFromHtml();this.buttonGet("html").children("i").removeClass("fa-square-o").addClass("fa-square")}else{this._convertToHtml();this.toggleVisual();this.buttonGet("html").children("i").removeClass("fa-square").addClass("fa-square-o")}},_convertParagraphs:function(){this.$editor.find("p").replaceWith(function(){var a=$(this).html();if(a=="<br>"){return a}return a+"<br>"});this.sync()},_convertFromHtml:function(){var g=this.$source.val();g=g.replace(/<br>\n<pre>\n/g,"");g=g.replace(/<\/pre>\n<br>\n/g,"");g=g.replace(/<br>/g,"");g=g.replace(/&nbsp;/gi," ");g=g.replace(/<a [^>]*?href=(["'])mailto:(.+?)\1.*?>([\s\S]+?)<\/a>/gi,"[email=$2]$3[/email]");g=g.replace(/<a [^>]*?href=(["'])(.+?)\1.*?>([\s\S]+?)<\/a>/gi,function(m,k,l,n){if(l==n){return"[url]"+l+"[/url]"}return"[url='"+l+"']"+n+"[/url]"});g=g.replace(/<(?:b|strong)>/gi,"[b]");g=g.replace(/<\/(?:b|strong)>/gi,"[/b]");g=g.replace(/<(?:i|em)>/gi,"[i]");g=g.replace(/<\/(?:i|em)>/gi,"[/i]");g=g.replace(/<u>/gi,"[u]");g=g.replace(/<\/u>/gi,"[/u]");g=g.replace(/<(?:s(trike)?|del)>/gi,"[s]");g=g.replace(/<\/(?:s(trike)?|del)>/gi,"[/s]");g=g.replace(/<sub>/gi,"[sub]");g=g.replace(/<\/sub>/gi,"[/sub]");g=g.replace(/<sup>/gi,"[sup]");g=g.replace(/<\/sup>/gi,"[/sup]");g=g.replace(/<img [^>]*?alt="([^"]+?)" class="smiley".*?>/gi,"$1");g=g.replace(/<img [^>]*?class="smiley" alt="([^"]+?)".*?>/gi,"$1");g=g.replace(/<img [^>]*?src=(["'])([^"']+?)\1 style="float: (left|right)[^"]*".*?>/gi,"[img='$2',$3][/img]");g=g.replace(/<img [^>]*?src=(["'])([^"']+?)\1.*?>/gi,"[img]$2[/img]");g=g.replace(/<span style="color: ?rgb\((\d{1,3}), ?(\d{1,3}), ?(\d{1,3})\);?">([\s\S]*?)<\/span>/gi,function(l,n,m,k,p){var o=("0123456789ABCDEF".charAt((n-n%16)/16)+""+"0123456789ABCDEF".charAt(n%16))+""+("0123456789ABCDEF".charAt((m-m%16)/16)+""+"0123456789ABCDEF".charAt(m%16))+""+("0123456789ABCDEF".charAt((k-k%16)/16)+""+"0123456789ABCDEF".charAt(k%16));return"[color=#"+o+"]"+p+"[/color]"});g=g.replace(/<span style="color: ?(.*?);?">([\s\S]*?)<\/span>/gi,"[color=$1]$2[/color]");g=g.replace(/<span style="font-size: ?(\d+)pt;?">([\s\S]*?)<\/span>/gi,"[size=$1]$2[/size]");g=g.replace(/<span style="font-family: ?(.*?);?">([\s\S]*?)<\/span>/gi,function(l,k,m){return"[font='"+k.replace(/'/g,"")+"']"+m+"[/font]"});g=g.replace(/<div style="text-align: ?(left|center|right|justify);? ?">([\s\S]*?)<\/div>/gi,"[align=$1]$2[/align]");g=g.replace(/<li>/gi,"[*]");g=g.replace(/<\/li>/gi,"");g=g.replace(/<ul>/gi,"[list]");g=g.replace(/<(ol|ul style="list-style-type: decimal")>/gi,"[list=1]");g=g.replace(/<ul style="list-style-type: (none|circle|square|disc|decimal|lower-roman|upper-roman|decimal-leading-zero|lower-greek|lower-latin|upper-latin|armenian|georgian)">/gi,"[list=$1]");g=g.replace(/<\/(ul|ol)>/gi,"[/list]");g=g.replace(/<table[^>]*>/gi,"[table]");g=g.replace(/<\/table>/gi,"[/table]");g=g.replace(/<tr><\/tr>/gi,"");g=g.replace(/<tr>/gi,"[tr]");g=g.replace(/<\/tr>/gi,"[/tr]");g=g.replace(/<td style="text-align: ?(left|center|right|justify);? ?">([\s\S]*?)<\/td>/gi,"[td][align=$1]$2[/align][/td]");g=g.replace(/<td>/gi,"[td]");g=g.replace(/<\/td>/gi,"[/td]");var b={};g.replace(/<span id="selection-marker-\d+" class="redactor-selection-marker"><\/span>/,function(k){var l=k.hashCode();b[l]=k.replace(/\$/g,"$$$$");return"@@"+l+"@@"});g=g.replace(/<[^>]+>/g,"");if($.getLength(b)){for(var f in b){var i=new RegExp("@@"+f+"@@","g");data=data.replace(i,b[f])}}g=g.replace(/&lt;/g,"<");g=g.replace(/&gt;/g,">");g=g.replace(/&amp;/g,"&");g=g.replace(/%28/g,"(");g=g.replace(/%29/g,")");g=g.replace(/%20/g," ");var c={};for(var j=0,h=__REDACTOR_SOURCE_BBCODES.length;j<h;j++){var e=__REDACTOR_SOURCE_BBCODES[j];var d=new RegExp("\\["+e+"([\\S\\s]+?)\\[\\/"+e+"\\]","gi");g=g.replace(d,function(k){var l=k.hashCode();c[l]=k.replace(/\$/g,"$$$$");return"@@"+l+"@@"})}var a=g.split("\n");for(var j=0,h=a.length;j<h;j++){a[j]=a[j].replace(/^\s*/,"")}g=a.join("\n");if($.getLength(c)){for(var f in c){var i=new RegExp("@@"+f+"@@","g");g=g.replace(i,c[f])}}this.$source.val(g)},_convertToHtml:function(){var e=this.$source.val();e=this.removeZeroWidthSpace(e);e=e.replace(/&/g,"&amp;");e=e.replace(/</g,"&lt;");e=e.replace(/>/g,"&gt;");var b={};for(var k=0,i=__REDACTOR_SOURCE_BBCODES.length;k<i;k++){var c=__REDACTOR_SOURCE_BBCODES[k];var d=new RegExp("\\["+c+"([\\S\\s]+?)\\[\\/"+c+"\\]","gi");e=e.replace(d,function(m){var n=m.hashCode();b[n]=m.replace(/\$/g,"$$$$");return"@@"+n+"@@"})}e=e.replace(/\[url\]([^"]+?)\[\/url]/gi,'<a href="$1">$1</a>');e=e.replace(/\[url\='([^'"]+)'](.+?)\[\/url]/gi,'<a href="$1">$2</a>');e=e.replace(/\[url\=([^'"\]]+)](.+?)\[\/url]/gi,'<a href="$1">$2</a>');e=e.replace(/\[email\]([^"]+?)\[\/email]/gi,'<a href="mailto:$1">$1</a>');e=e.replace(/\[email\=([^"\]]+)](.+?)\[\/email]/gi,'<a href="mailto:$1">$2</a>');e=e.replace(/\[b\](.*?)\[\/b]/gi,"<b>$1</b>");e=e.replace(/\[i\](.*?)\[\/i]/gi,"<i>$1</i>");e=e.replace(/\[u\](.*?)\[\/u]/gi,"<u>$1</u>");e=e.replace(/\[s\](.*?)\[\/s]/gi,"<strike>$1</strike>");e=e.replace(/\[sub\](.*?)\[\/sub]/gi,"<sub>$1</sub>");e=e.replace(/\[sup\](.*?)\[\/sup]/gi,"<sup>$1</sup>");e=e.replace(/\[img\]([^"]+?)\[\/img\]/gi,'<img src="$1" />');e=e.replace(/\[img='?([^"]*?)'?,'?(left|right)'?\]\[\/img\]/gi,'<img src="$1" style="float: $2" />');e=e.replace(/\[img='?([^"]*?)'?\]\[\/img\]/gi,'<img src="$1" />');e=e.replace(/\[size=(\d+)\](.*?)\[\/size\]/gi,'<span style="font-size: $1pt">$2</span>');e=e.replace(/\[color=([#a-z0-9]*?)\](.*?)\[\/color\]/gi,'<span style="color: $1">$2</span>');e=e.replace(/\[font='?([a-z,\- ]*?)'?\](.*?)\[\/font\]/gi,'<span style="font-family: $1">$2</span>');e=e.replace(/\[align=(left|right|center|justify)\](.*?)\[\/align\]/gi,'<div style="text-align: $1">$2</div>');e=e.replace(/\[\*\](.*?)(?=\[\*\]|\[\/list\])/gi,"<li>$1</li>");e=e.replace(/\[list\]/gi,"<ul>");e=e.replace(/\[list=1\]/gi,'<ul style="list-style-type: decimal">');e=e.replace(/\[list=a\]/gi,'<ul style="list-style-type: lower-latin">');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,'<ul style="list-style-type: $1">');e=e.replace(/\[\/list]/gi,"</ul>");e=e.replace(/\[table\]/gi,'<table border="1" cellspacing="1" cellpadding="1" style="width: 500px;">');e=e.replace(/\[\/table\]/gi,"</table>");e=e.replace(/\[tr\]/gi,"<tr>");e=e.replace(/\[\/tr\]/gi,"</tr>");e=e.replace(/\[td\]/gi,"<td>");e=e.replace(/\[\/td\]/gi,"</td>");for(var l in __REDACTOR_SMILIES){$smileyCode=l.replace(/</g,"&lt;").replace(/>/g,"&gt;");var g=new RegExp("(\\s|>|^)"+WCF.String.escapeRegExp($smileyCode)+"(?=\\s|<|$)","gi");e=e.replace(g,'$1<img src="'+__REDACTOR_SMILIES[l]+'" class="smiley" alt="'+$smileyCode+'" />')}e=e.replace(/(javascript):/gi,"$1<span></span>:");e=e.replace(/(\r|\r\n)/,"\n");var a=e.split("\n");e="";for(var k=0,i=a.length;k<i;k++){var j=$.trim(a[k]);if(!j){j="<br>"}e+="<p>"+j+"</p>"}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\]/,"<pre>$&</pre>");this.$source.val(e)}};
+if(!RedactorPlugins){var RedactorPlugins={}}RedactorPlugins.wbbcode={init:function(){this._createSmileyDropdown();this.buttonReplace("smiley","wsmiley","Smiley",$.proxy(function(d,b,a,c){this.dropdownShow(c,d)},this));this.buttonAwesome("wsmiley","fa-smile-o");this.opts.initCallback=$.proxy(function(){if(this.$source.val().length){this.toggle();this.toggle()}},this)},_createSmileyDropdown:function(){var d=$('<div class="redactor_dropdown redactor_dropdown_box_wsmiley" style="display: none; width: 195px;" />');var c=$('<ul class="smileyList" />').appendTo(d);for(var a in __REDACTOR_SMILIES){var b=$('<li><img src="'+__REDACTOR_SMILIES[a]+'" class="smiley" /></li>').data("smileyCode",a);b.appendTo(c).click($.proxy(this._onSmileyPick,this))}$(this.$toolbar).append(d)},_onSmileyPick:function(b){var a=$(b.currentTarget).data("smileyCode");this.insertSmiley(a,__REDACTOR_SMILIES[a],false)},insertSmiley:function(a,b,c){if(c){this.registerSmiley(a,b)}if(this.opts.visual){this.bufferSet();this.$editor.focus();this.insertHtml('&nbsp;<img src="'+b+'" class="smiley" alt="'+a+'" />&nbsp;');if(this.opts.air){this.$air.fadeOut(100)}this.sync()}else{this.insertAtCaret(" "+a+" ")}},registerSmiley:function(a,b){if(__REDACTOR_SMILIES[a]){return false}__REDACTOR_SMILIES[a]=b;return true},toggle:function(a){if(this.opts.visual){this._convertParagraphs();this.toggleCode(a);this._convertFromHtml();this.buttonGet("html").children("i").removeClass("fa-square-o").addClass("fa-square")}else{this._convertToHtml();this.toggleVisual();this.buttonGet("html").children("i").removeClass("fa-square").addClass("fa-square-o")}},_convertParagraphs:function(){this.$editor.find("p").replaceWith(function(){var a=$(this).html();if(a=="<br>"){return a}return a+"<br>"});this.sync()},_convertFromHtml:function(){var g=this.$source.val();console.clear();console.debug("_convertFromHtml()");console.debug(g);g=g.replace(/<br>\n<pre>\n/g,"");g=g.replace(/<\/pre>\n<br>\n/g,"");g=g.replace(/<br>/g,"");g=g.replace(/&nbsp;/gi," ");g=g.replace(/<a [^>]*?href=(["'])mailto:(.+?)\1.*?>([\s\S]+?)<\/a>/gi,"[email=$2]$3[/email]");g=g.replace(/<a [^>]*?href=(["'])(.+?)\1.*?>([\s\S]+?)<\/a>/gi,function(m,k,l,n){if(l==n){return"[url]"+l+"[/url]"}return"[url='"+l+"']"+n+"[/url]"});g=g.replace(/<(?:b|strong)>/gi,"[b]");g=g.replace(/<\/(?:b|strong)>/gi,"[/b]");g=g.replace(/<(?:i|em)>/gi,"[i]");g=g.replace(/<\/(?:i|em)>/gi,"[/i]");g=g.replace(/<u>/gi,"[u]");g=g.replace(/<\/u>/gi,"[/u]");g=g.replace(/<(?:s(trike)?|del)>/gi,"[s]");g=g.replace(/<\/(?:s(trike)?|del)>/gi,"[/s]");g=g.replace(/<sub>/gi,"[sub]");g=g.replace(/<\/sub>/gi,"[/sub]");g=g.replace(/<sup>/gi,"[sup]");g=g.replace(/<\/sup>/gi,"[/sup]");g=g.replace(/<img [^>]*?alt="([^"]+?)" class="smiley".*?>/gi,"$1");g=g.replace(/<img [^>]*?class="smiley" alt="([^"]+?)".*?>/gi,"$1");g=g.replace(/<img [^>]*?src=(["'])([^"']+?)\1 style="float: (left|right)[^"]*".*?>/gi,"[img='$2',$3][/img]");g=g.replace(/<img [^>]*?src=(["'])([^"']+?)\1.*?>/gi,"[img]$2[/img]");g=g.replace(/<span style="color: ?rgb\((\d{1,3}), ?(\d{1,3}), ?(\d{1,3})\);?">([\s\S]*?)<\/span>/gi,function(l,n,m,k,p){var o=("0123456789ABCDEF".charAt((n-n%16)/16)+""+"0123456789ABCDEF".charAt(n%16))+""+("0123456789ABCDEF".charAt((m-m%16)/16)+""+"0123456789ABCDEF".charAt(m%16))+""+("0123456789ABCDEF".charAt((k-k%16)/16)+""+"0123456789ABCDEF".charAt(k%16));return"[color=#"+o+"]"+p+"[/color]"});g=g.replace(/<span style="color: ?(.*?);?">([\s\S]*?)<\/span>/gi,"[color=$1]$2[/color]");g=g.replace(/<span style="font-size: ?(\d+)pt;?">([\s\S]*?)<\/span>/gi,"[size=$1]$2[/size]");g=g.replace(/<span style="font-family: ?(.*?);?">([\s\S]*?)<\/span>/gi,function(l,k,m){return"[font='"+k.replace(/'/g,"")+"']"+m+"[/font]"});g=g.replace(/<div style="text-align: ?(left|center|right|justify);? ?">([\s\S]*?)<\/div>/gi,"[align=$1]$2[/align]");g=g.replace(/<li>/gi,"[*]");g=g.replace(/<\/li>/gi,"");g=g.replace(/<ul>/gi,"[list]");g=g.replace(/<(ol|ul style="list-style-type: decimal")>/gi,"[list=1]");g=g.replace(/<ul style="list-style-type: (none|circle|square|disc|decimal|lower-roman|upper-roman|decimal-leading-zero|lower-greek|lower-latin|upper-latin|armenian|georgian)">/gi,"[list=$1]");g=g.replace(/<\/(ul|ol)>/gi,"[/list]");g=g.replace(/<table[^>]*>/gi,"[table]");g=g.replace(/<\/table>/gi,"[/table]");g=g.replace(/<tbody>([\s\S]*?)<\/tbody>/,function(k,l){return $.trim(l)});g=g.replace(/<tr><\/tr>/gi,"");g=g.replace(/<tr>/gi,"[tr]");g=g.replace(/<\/tr>/gi,"[/tr]");g=g.replace(/<td style="text-align: ?(left|center|right|justify);? ?">([\s\S]*?)<\/td>/gi,"[td][align=$1]$2[/align][/td]");g=g.replace(/<td>/gi,"[td]");g=g.replace(/<\/td>/gi,"[/td]");var b={};g.replace(/<span id="selection-marker-\d+" class="redactor-selection-marker"><\/span>/,function(k){var l=k.hashCode();b[l]=k.replace(/\$/g,"$$$$");return"@@"+l+"@@"});g=g.replace(/<[^>]+>/g,"");if($.getLength(b)){for(var f in b){var i=new RegExp("@@"+f+"@@","g");data=data.replace(i,b[f])}}g=g.replace(/&lt;/g,"<");g=g.replace(/&gt;/g,">");g=g.replace(/&amp;/g,"&");g=g.replace(/%28/g,"(");g=g.replace(/%29/g,")");g=g.replace(/%20/g," ");var c={};for(var j=0,h=__REDACTOR_SOURCE_BBCODES.length;j<h;j++){var e=__REDACTOR_SOURCE_BBCODES[j];var d=new RegExp("\\["+e+"([\\S\\s]+?)\\[\\/"+e+"\\]","gi");g=g.replace(d,function(k){var l=k.hashCode();c[l]=k.replace(/\$/g,"$$$$");return"@@"+l+"@@"})}var a=g.split("\n");for(var j=0,h=a.length;j<h;j++){a[j]=a[j].replace(/^\s*/,"")}g=a.join("\n");if($.getLength(c)){for(var f in c){var i=new RegExp("@@"+f+"@@","g");g=g.replace(i,c[f])}}this.$source.val(g)},_convertToHtml:function(){var e=this.$source.val();e=this.removeZeroWidthSpace(e);e=e.replace(/&/g,"&amp;");e=e.replace(/</g,"&lt;");e=e.replace(/>/g,"&gt;");var b={};for(var k=0,i=__REDACTOR_SOURCE_BBCODES.length;k<i;k++){var c=__REDACTOR_SOURCE_BBCODES[k];var d=new RegExp("\\["+c+"([\\S\\s]+?)\\[\\/"+c+"\\]","gi");e=e.replace(d,function(m){var n=m.hashCode();b[n]=m.replace(/\$/g,"$$$$");return"@@"+n+"@@"})}e=e.replace(/\[url\]([^"]+?)\[\/url]/gi,'<a href="$1">$1</a>');e=e.replace(/\[url\='([^'"]+)'](.+?)\[\/url]/gi,'<a href="$1">$2</a>');e=e.replace(/\[url\=([^'"\]]+)](.+?)\[\/url]/gi,'<a href="$1">$2</a>');e=e.replace(/\[email\]([^"]+?)\[\/email]/gi,'<a href="mailto:$1">$1</a>');e=e.replace(/\[email\=([^"\]]+)](.+?)\[\/email]/gi,'<a href="mailto:$1">$2</a>');e=e.replace(/\[b\](.*?)\[\/b]/gi,"<b>$1</b>");e=e.replace(/\[i\](.*?)\[\/i]/gi,"<i>$1</i>");e=e.replace(/\[u\](.*?)\[\/u]/gi,"<u>$1</u>");e=e.replace(/\[s\](.*?)\[\/s]/gi,"<strike>$1</strike>");e=e.replace(/\[sub\](.*?)\[\/sub]/gi,"<sub>$1</sub>");e=e.replace(/\[sup\](.*?)\[\/sup]/gi,"<sup>$1</sup>");e=e.replace(/\[img\]([^"]+?)\[\/img\]/gi,'<img src="$1" />');e=e.replace(/\[img='?([^"]*?)'?,'?(left|right)'?\]\[\/img\]/gi,'<img src="$1" style="float: $2" />');e=e.replace(/\[img='?([^"]*?)'?\]\[\/img\]/gi,'<img src="$1" />');e=e.replace(/\[size=(\d+)\](.*?)\[\/size\]/gi,'<span style="font-size: $1pt">$2</span>');e=e.replace(/\[color=([#a-z0-9]*?)\](.*?)\[\/color\]/gi,'<span style="color: $1">$2</span>');e=e.replace(/\[font='?([a-z,\- ]*?)'?\](.*?)\[\/font\]/gi,'<span style="font-family: $1">$2</span>');e=e.replace(/\[align=(left|right|center|justify)\](.*?)\[\/align\]/gi,'<div style="text-align: $1">$2</div>');e=e.replace(/\[\*\](.*?)(?=\[\*\]|\[\/list\])/gi,"<li>$1</li>");e=e.replace(/\[list\]/gi,"<ul>");e=e.replace(/\[list=1\]/gi,'<ul style="list-style-type: decimal">');e=e.replace(/\[list=a\]/gi,'<ul style="list-style-type: lower-latin">');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,'<ul style="list-style-type: $1">');e=e.replace(/\[\/list]/gi,"</ul>");e=e.replace(/\[table\]([\S\s]*?)\[\/table\]/gi,function(m,n){return"[table]"+$.trim(n)+"[/table]"});e=e.replace(/\[table\]/gi,'<table border="1" cellspacing="1" cellpadding="1" style="width: 500px;">');e=e.replace(/\[\/table\]/gi,"</table>");e=e.replace(/\[tr\]/gi,"<tr>");e=e.replace(/\[\/tr\]/gi,"</tr>");e=e.replace(/\[td\]/gi,"<td>");e=e.replace(/\[\/td\]/gi,"</td>");e=e.replace(/<td>([\S\s]*?)<\/td>/gi,function(m,n){return"<td>"+$.trim(n)+"</td>"});for(var l in __REDACTOR_SMILIES){$smileyCode=l.replace(/</g,"&lt;").replace(/>/g,"&gt;");var g=new RegExp("(\\s|>|^)"+WCF.String.escapeRegExp($smileyCode)+"(?=\\s|<|$)","gi");e=e.replace(g,'$1<img src="'+__REDACTOR_SMILIES[l]+'" class="smiley" alt="'+$smileyCode+'" />')}e=e.replace(/(javascript):/gi,"$1<span></span>:");e=e.replace(/(\r|\r\n)/,"\n");var a=e.split("\n");e="";for(var k=0,i=a.length;k<i;k++){var j=$.trim(a[k]);if(j.indexOf("<")===0){e+=j}else{if(!j){j="<br>"}e+="<p>"+j+"</p>"}}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\]/,"<pre>$&</pre>");this.$source.val(e)}};
 // wbutton.js
 if(!RedactorPlugins){var RedactorPlugins={}}RedactorPlugins.wbutton={_bbcodes:{},init:function(){this._bbcodes={};for(var g=0,d=__REDACTOR_BUTTONS.length;g<d;g++){this._addBBCodeButton(__REDACTOR_BUTTONS[g])}var a={html:"fa-square-o",bold:"fa-bold",italic:"fa-italic",underline:"fa-underline",deleted:"fa-strikethrough",subscript:"fa-subscript",superscript:"fa-superscript",orderedlist:"fa-list-ol",unorderedlist:"fa-list-ul",outdent:"fa-outdent",indent:"fa-indent",link:"fa-link",alignment:"fa-align-left",table:"fa-table"};var b=this.getOption("buttons");var f="";for(var g=0,d=b.length;g<d;g++){var c=b[g];if(c=="separator"){this.buttonGet(f).parent().addClass("separator");continue}var e=this.buttonGet(c);if(e.length){if(a[c]){this.buttonAwesome(c,a[c])}}else{this._addCoreButton(c,(a[c]?a[c]:null),f)}f=c}},_addCoreButton:function(b,a,c){var d=this.buttonBuild(b,{title:b,exec:b},false);$("<li />").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