From: woltlab.com Date: Mon, 12 Sep 2016 15:32:32 +0000 (+0200) Subject: Updating minified JavaScript files X-Git-Tag: 3.0.0_Beta_1~203 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=98825c987dffd84fe7ce6e737297b2c84d50dc5b;p=GitHub%2FWoltLab%2FWCF.git Updating minified JavaScript files --- diff --git a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/combined.min.js b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/combined.min.js index f6542bb932..5374b40242 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/combined.min.js +++ b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/combined.min.js @@ -53,7 +53,7 @@ $.Redactor.prototype.WoltLabObserve=function(){"use strict";return{init:function // WoltLabPage.js $.Redactor.prototype.WoltLabPage=function(){"use strict";return{init:function(){var t=this.button.add("woltlabPage","");require(["WoltLabSuite/Core/Ui/Redactor/Page"],function(e){new e(this,t[0])}.bind(this))}}}; // WoltLabPaste.js -$.Redactor.prototype.WoltLabPaste=function(){"use strict";return{init:function(){var t=null,e=this.paste.init;this.paste.init=function(i){var s="pre"===this.opts.type||this.utils.isCurrentOrParent("pre")?!0:!1;if(s){t=i.originalEvent.clipboardData.getData("text/plain");var n=this.clean.encodeEntities;this.clean.encodeEntities=function(t){return this.clean.encodeEntities=n,WCF.String.escapeHTML(t)}.bind(this)}e.call(this,i)}.bind(this);var i=this.paste.getPasteBoxCode;this.paste.getPasteBoxCode=function(e){var s=i.call(this,e);return e&&!s?t:s}.bind(this),this.core.editor().off("paste.redactor").on("paste.redactor",this.paste.init.bind(this)),this.paste.detectClipboardUpload=function(t){t=t.originalEvent||t;var e=t.clipboardData;if(this.detect.isIe()&&("edge"!==this.detect.isIe()||document.documentMode))return!0;if(this.detect.isFirefox())return!1;var i=e.types;if(Array.isArray(i)&&-1!==i.indexOf("public.tiff"))return t.preventDefault(),!1;if(e.items&&e.items.length){var s=!1,n=e.items[0].getAsFile();if(null===n&&(this.detect.isWebkit()&&e.items.length>1&&(n=e.items[1].getAsFile(),s=!0),null===n))return!1;var r=new FileReader;return r.readAsDataURL(n),r.onload=this.paste.insertFromClipboard.bind(this),s===!1}}.bind(this),this.paste.insertFromClipboard=function(t){window.FormData&&(this.buffer.set(),WCF.System.Event.fireEvent("com.woltlab.wcf.redactor2","pasteFromClipboard_"+this.$element[0].id,{blob:this.utils.dataURItoBlob(t.target.result)}))}.bind(this),this.paste.clipboardUpload=function(){elBySelAll("img",this.$editor[0],function(t){window.FormData&&0===t.src.indexOf("data:image")&&(this.buffer.set(),elHide(t),WCF.System.Event.fireEvent("com.woltlab.wcf.redactor2","pasteFromClipboard_"+this.$element[0].id,{blob:this.utils.dataURItoBlob(t.src),replace:t}))}.bind(this))}.bind(this);var s=this.paste.insert;this.paste.insert=function(t,e){if(!e.pre&&!e.text){var i=elCreate("div");i.innerHTML=t,elBySelAll("img",this.$editor[0],function(t){0===t.src.indexOf("data:image")&&elHide(t)}),t=i.innerHTML}s.call(this,t,e)}.bind(this)}}}; +$.Redactor.prototype.WoltLabPaste=function(){"use strict";return{init:function(){var t=null,e=this.paste.init;this.paste.init=function(i){var s="pre"===this.opts.type||this.utils.isCurrentOrParent("pre")?!0:!1;if(s){t=i.originalEvent.clipboardData.getData("text/plain");var a=this.clean.encodeEntities;this.clean.encodeEntities=function(t){return this.clean.encodeEntities=a,WCF.String.escapeHTML(t)}.bind(this)}e.call(this,i)}.bind(this);var i=this.paste.getPasteBoxCode;this.paste.getPasteBoxCode=function(e){var s=i.call(this,e);return e&&!s?t:s}.bind(this),this.core.editor().off("paste.redactor").on("paste.redactor",this.paste.init.bind(this)),this.paste.detectClipboardUpload=function(t){t=t.originalEvent||t;var e=t.clipboardData;if(this.detect.isIe()&&("edge"!==this.detect.isIe()||document.documentMode))return!0;if(this.detect.isFirefox())return!1;var i=e.types;if(Array.isArray(i)&&-1!==i.indexOf("public.tiff"))return t.preventDefault(),!1;if(e.items&&e.items.length){var s=!1,a=e.items[0].getAsFile();if(null===a&&(this.detect.isWebkit()&&e.items.length>1&&(a=e.items[1].getAsFile(),s=!0),null===a))return!1;var r=new FileReader;return r.readAsDataURL(a),r.onload=this.paste.insertFromClipboard.bind(this),s===!1}}.bind(this),this.paste.insertFromClipboard=function(t){window.FormData&&(this.buffer.set(),WCF.System.Event.fireEvent("com.woltlab.wcf.redactor2","pasteFromClipboard_"+this.$element[0].id,{blob:this.utils.dataURItoBlob(t.target.result)}))}.bind(this);var s="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",a=this.paste.insert;this.paste.insert=function(t,e){var i=[];if(!e.pre&&!e.text){var r=elCreate("div");r.innerHTML=t,elBySelAll("img",r,function(t){var e=t.src;if(0===e.indexOf("data:image")&&e!==s){t.src=s;var a=WCF.getUUID();elData(t,"uuid",a),i.push({src:e,uuid:a}),elHide(t)}}.bind(this)),t=r.innerHTML}a.call(this,t,e),i.length&&window.setTimeout(function(){for(var t,e,s=0,a=i.length;a>s;s++)t=i[s],e=elBySel('img[data-uuid="'+t.uuid+'"]',this.$editor[0]),e&&WCF.System.Event.fireEvent("com.woltlab.wcf.redactor2","pasteFromClipboard_"+this.$element[0].id,{blob:this.utils.dataURItoBlob(t.src),replace:e})}.bind(this),50)}.bind(this),this.paste.clipboardUpload=function(){}}}}; // WoltLabQuote.js $.Redactor.prototype.WoltLabQuote=function(){"use strict";return{init:function(){var t=this.button.add("woltlabQuote","");this.WoltLabBlock.register("woltlab-quote",!0),this.opts.replaceTags.blockquote="woltlab-quote",this.opts.activeButtonsStates["woltlab-quote"]="woltlabQuote",require(["WoltLabSuite/Core/Ui/Redactor/Quote"],function(o){new o(this,t)}.bind(this))}}}; // WoltLabReply.js