Updating minified JavaScript files
authorwoltlab.com <woltlab@woltlab.com>
Mon, 12 Sep 2016 15:32:32 +0000 (17:32 +0200)
committerwoltlab.com <woltlab@woltlab.com>
Mon, 12 Sep 2016 15:32:32 +0000 (17:32 +0200)
wcfsetup/install/files/js/3rdParty/redactor2/plugins/combined.min.js

index f6542bb9327090d4e8c57b3ba8a626d140780aab..5374b402423c96998ac014abcb647cdc10d58a3e 100644 (file)
@@ -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