From 0d3f1c9882e66c46eb015e3ee6396d8a9a4b6a56 Mon Sep 17 00:00:00 2001 From: "woltlab.com" Date: Sun, 27 Nov 2016 00:46:44 +0100 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 f59b380cc7..c82d77f677 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/combined.min.js +++ b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/combined.min.js @@ -51,7 +51,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=document.documentMode&&"object"==typeof window.clipboardData,i=this.paste.init;this.paste.init=function(a){var r="pre"===this.opts.type||this.utils.isCurrentOrParent("pre")?!0:!1;if(r){t=e?window.clipboardData.getData("Text"):a.originalEvent.clipboardData.getData("text/plain");var s=this.clean.encodeEntities;this.clean.encodeEntities=function(t){return this.clean.encodeEntities=s,WCF.String.escapeHTML(t)}.bind(this)}i.call(this,a)}.bind(this);var a=this.paste.getPasteBoxCode;this.paste.getPasteBoxCode=function(i){var r=a.call(this,i);return!i||r&&!e?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 i;if(e){if(!window.clipboardData.files.length)return!1;i=window.clipboardData.files.item(0)}else{if(this.detect.isFirefox())return!1;var a=t.clipboardData,r=a.types;if(Array.isArray(r)&&-1!==r.indexOf("public.tiff"))return t.preventDefault(),!1;if(!a.items||!a.items.length)return;var s=!1;if(i=a.items[0].getAsFile(),null===i&&(this.detect.isWebkit()&&a.items.length>1&&(i=a.items[1].getAsFile(),s=!0),null===i))return!1}var n=new FileReader;return n.readAsDataURL(i),n.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)}),this.rtePaste=!1)}.bind(this);var r="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",s=this.paste.insert;this.paste.insert=function(t,e){if(e.pre)return s.call(this,t,e);var i=elCreate("div");i.innerHTML=t;var a=[];e.pre||e.text||elBySelAll("img",i,function(t){var e=t.src;if(0===e.indexOf("data:image")&&e!==r){t.src=r;var i=WCF.getUUID();elData(t,"uuid",i),a.push({src:e,uuid:i}),elHide(t)}}.bind(this)),elBySelAll(".redactor-selection-marker",i,elRemove),i.appendChild(elCreate("woltlab-selection-marker")),s.call(this,i.innerHTML,e);var n=elBySel("woltlab-selection-marker",this.$editor[0]);n&&(this.caret.end(n.previousElementSibling||n.parentNode),elRemove(n)),a.length&&window.setTimeout(function(){for(var t,e,i=0,r=a.length;r>i;i++)t=a[i],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),this.rtePaste=!1}.bind(this),this.paste.clipboardUpload=function(){}}}}; +$.Redactor.prototype.WoltLabPaste=function(){"use strict";return{init:function(){var t=null,e=document.documentMode&&"object"==typeof window.clipboardData,i=this.paste.init;this.paste.init=function(a){var r="pre"===this.opts.type||this.utils.isCurrentOrParent("pre")?!0:!1;if(r){t=e?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)}i.call(this,a)}.bind(this);var a=this.paste.getPasteBoxCode;this.paste.getPasteBoxCode=function(i){var r=a.call(this,i);return!i||r&&!e?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 i;if(e){if(!window.clipboardData.files.length)return!1;i=window.clipboardData.files.item(0)}else{if(this.detect.isFirefox())return!1;var a=t.clipboardData,r=a.types;if(Array.isArray(r)&&-1!==r.indexOf("public.tiff"))return t.preventDefault(),!1;if(!a.items||!a.items.length)return;var n=!1;if(i=a.items[0].getAsFile(),null===i&&(this.detect.isWebkit()&&a.items.length>1&&(i=a.items[1].getAsFile(),n=!0),null===i))return!1}var s=new FileReader;return s.readAsDataURL(i),s.onload=this.paste.insertFromClipboard.bind(this),n===!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)}),this.rtePaste=!1)}.bind(this);var r="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",n=this.paste.insert;this.paste.insert=function(t,e){if(e.pre)return n.call(this,t,e);var i=elCreate("div");i.innerHTML=t;var a=[];e.pre||e.text||elBySelAll("img",i,function(t){var e=t.src;if(0===e.indexOf("data:image")&&e!==r){t.src=r;var i=WCF.getUUID();elData(t,"uuid",i),a.push({src:e,uuid:i}),elHide(t)}}.bind(this)),elBySelAll(".redactor-selection-marker",i,elRemove),i.appendChild(elCreate("woltlab-selection-marker")),n.call(this,i.innerHTML,e);var s=elBySel("woltlab-selection-marker",this.$editor[0]);if(s){var l=document.createRange();l.setStartBefore(s),l.setEndBefore(s);var o=window.getSelection();o.removeAllRanges(),o.addRange(l),elRemove(s)}a.length&&window.setTimeout(function(){for(var t,e,i=0,r=a.length;r>i;i++)t=a[i],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),this.rtePaste=!1}.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