From 09ed22c3815a33a89e90f66870313b06c1300a15 Mon Sep 17 00:00:00 2001 From: "woltlab.com" Date: Tue, 13 Sep 2016 12:32:26 +0200 Subject: [PATCH] Updating minified JavaScript files --- .../install/files/js/3rdParty/redactor2/plugins/combined.min.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 2bf83dab42..edd467e283 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,i=document.documentMode&&"object"==typeof window.clipboardData,e=this.paste.init;this.paste.init=function(a){var r="pre"===this.opts.type||this.utils.isCurrentOrParent("pre")?!0:!1;if(r){t=i?window.clipboardData.getData("Text"):a.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,a)}.bind(this);var a=this.paste.getPasteBoxCode;this.paste.getPasteBoxCode=function(i){var e=a.call(this,i);return i&&!e?t:e}.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(i)return window.clipboardData.files.length>0;if(this.detect.isFirefox())return!1;var a=e.types;if(Array.isArray(a)&&-1!==a.indexOf("public.tiff"))return t.preventDefault(),!1;if(e.items&&e.items.length){var r=!1,n=e.items[0].getAsFile();if(null===n&&(this.detect.isWebkit()&&e.items.length>1&&(n=e.items[1].getAsFile(),r=!0),null===n))return!1;var s=new FileReader;return s.readAsDataURL(n),s.onload=this.paste.insertFromClipboard.bind(this),r===!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 r="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",n=this.paste.insert;this.paste.insert=function(t,i){var e=[];if(!i.pre&&!i.text){var a=elCreate("div");a.innerHTML=t,elBySelAll("img",a,function(t){var i=t.src;if(0===i.indexOf("data:image")&&i!==r){t.src=r;var a=WCF.getUUID();elData(t,"uuid",a),e.push({src:i,uuid:a}),elHide(t)}}.bind(this)),t=a.innerHTML}n.call(this,t,i),e.length&&window.setTimeout(function(){for(var t,i,a=0,r=e.length;r>a;a++)t=e[a],i=elBySel('img[data-uuid="'+t.uuid+'"]',this.$editor[0]),i&&WCF.System.Event.fireEvent("com.woltlab.wcf.redactor2","pasteFromClipboard_"+this.$element[0].id,{blob:this.utils.dataURItoBlob(t.src),replace:i})}.bind(this),50)}.bind(this),this.paste.clipboardUpload=function(){}}}}; +$.Redactor.prototype.WoltLabPaste=function(){"use strict";return{init:function(){var t=null,i=document.documentMode&&"object"==typeof window.clipboardData,e=this.paste.init;this.paste.init=function(a){var r="pre"===this.opts.type||this.utils.isCurrentOrParent("pre")?!0:!1;if(r){t=i?window.clipboardData.getData("Text"):a.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,a)}.bind(this);var a=this.paste.getPasteBoxCode;this.paste.getPasteBoxCode=function(e){var r=a.call(this,e);return!e||r&&!i?r:t}.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(i)return window.clipboardData.files.length>0;if(this.detect.isFirefox())return!1;var a=e.types;if(Array.isArray(a)&&-1!==a.indexOf("public.tiff"))return t.preventDefault(),!1;if(e.items&&e.items.length){var r=!1,n=e.items[0].getAsFile();if(null===n&&(this.detect.isWebkit()&&e.items.length>1&&(n=e.items[1].getAsFile(),r=!0),null===n))return!1;var s=new FileReader;return s.readAsDataURL(n),s.onload=this.paste.insertFromClipboard.bind(this),r===!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 r="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",n=this.paste.insert;this.paste.insert=function(t,i){var e=[];if(!i.pre&&!i.text){var a=elCreate("div");a.innerHTML=t,elBySelAll("img",a,function(t){var i=t.src;if(0===i.indexOf("data:image")&&i!==r){t.src=r;var a=WCF.getUUID();elData(t,"uuid",a),e.push({src:i,uuid:a}),elHide(t)}}.bind(this)),t=a.innerHTML}n.call(this,t,i),e.length&&window.setTimeout(function(){for(var t,i,a=0,r=e.length;r>a;a++)t=e[a],i=elBySel('img[data-uuid="'+t.uuid+'"]',this.$editor[0]),i&&WCF.System.Event.fireEvent("com.woltlab.wcf.redactor2","pasteFromClipboard_"+this.$element[0].id,{blob:this.utils.dataURItoBlob(t.src),replace:i})}.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 -- 2.20.1