Updating minified JavaScript files
authorwoltlab.com <woltlab@woltlab.com>
Mon, 13 Feb 2017 13:01:49 +0000 (14:01 +0100)
committerwoltlab.com <woltlab@woltlab.com>
Mon, 13 Feb 2017 13:01:49 +0000 (14:01 +0100)
wcfsetup/install/files/js/3rdParty/redactor2/plugins/combined.min.js

index 12c021ad98b08f01c3ead59f1a1ba45f128630d1..5364782af2fb78b598427b32ecf6cdb4f7472e16 100644 (file)
@@ -27,7 +27,7 @@ $.Redactor.prototype.WoltLabDragAndDrop=function(){"use strict";return{init:func
 // WoltLabDropdown.js
 $.Redactor.prototype.WoltLabDropdown=function(){"use strict";return{init:function(){this.utils.disableBodyScroll=function(){},this.utils.enableBodyScroll=function(){},this.WoltLabDropdown._hideAll(),this.WoltLabDropdown._show()},_hideAll:function(){var o=this.dropdown.hideAll;this.dropdown.hideAll=function(t,i){o.call(this,t,i),$(".redactor-dropdown-"+this.uuid).stop(!0,!0).hide()}.bind(this)},_show:function(){var o=this.dropdown.show;this.dropdown.show=function(t,i){var l=this.button.get(i),d=l.data("dropdown");if(!elDataBool(d[0],"woltlab")){var n=elCreate("ul");for(n.className="dropdownMenu";d[0].childElementCount;)n.appendChild(d[0].children[0]);d[0].appendChild(n),elData(d[0],"woltlab",!0)}var s=l.hasClass("dropact");o.call(this,t,i),s||d.stop(!0).show()}.bind(this)}}};
 // WoltLabEvent.js
-$.Redactor.prototype.WoltLabEvent=function(){"use strict";var e=0;return{init:function(){this._callbacks=[],this._elementId=this.$element[0].id,elData(this.$editor[0],"element-id",this._elementId),require(["EventHandler"],function(e){this.WoltLabEvent._setEvents(e),e.add("com.woltlab.wcf.redactor2","destroy_"+this._elementId,function(){e.removeAllBySuffix("com.woltlab.wcf.redactor2",this._elementId)}.bind(this))}.bind(this));var t=window.navigator.userAgent.toLowerCase();-1===t.indexOf("windows phone")&&-1===t.indexOf("edge/")&&(this.$editor[0].addEventListener("focus",function(){e++,document.documentElement.classList.add("redactorActive")}),this.$editor[0].addEventListener("blur",function(){e--,window.setTimeout(function(){0===e&&document.documentElement.classList.remove("redactorActive")},100)})),this.events.iterateObserver=function(e){var t=!1;(("textarea"===this.opts.type||"div"===this.opts.type)&&!this.detect.isFirefox()&&e.target===this.core.editor()[0]&&"childList"===e.type&&!e.addedNodes.length||"class"===e.attributeName&&e.target===this.core.editor()[0])&&(console.log(e,e.addedNodes.length),t=!0),t||(this.observe.load(),this.events.changeHandler())}.bind(this),this.events.observer.disconnect(),this.events.createObserver(),this.events.setupObserver()},_setEvents:function(e){var t=this.$element[0].id,i=this.observe.load;this.observe.load=function(){i.call(this),e.fire("com.woltlab.wcf.redactor2","observe_load_"+t,{editor:this.$editor[0]})}.bind(this),this.opts.callbacks.keyup=function(i){var n={cancel:!1,event:i};return e.fire("com.woltlab.wcf.redactor","keyup_"+t,n),n.cancel===!1},e.add("com.woltlab.wcf.redactor2","getText_"+t,function(e){e.message=this.code.get()}.bind(this)),e.add("com.woltlab.wcf.redactor2","reset_"+t,function(){this.code.set("")}.bind(this))},register:function(e,t){require(["EventHandler"],function(i){var n=this.uuid;-1===this._callbacks.indexOf(e)&&(this.opts.callbacks[e]=function(t){var s={cancel:!1,event:t,redactor:this};return i.fire("com.woltlab.wcf.redactor2",e+"_"+n+"_"+this.WoltLabEvent._elementId,s),s.cancel===!1}.bind(this),this._callbacks.push(e)),require(["EventHandler"],function(i){i.add("com.woltlab.wcf.redactor2",e+"_"+n+"_"+this.WoltLabEvent._elementId,t)}.bind(this))}.bind(this))}}};
+$.Redactor.prototype.WoltLabEvent=function(){"use strict";var e=0;return{init:function(){this._callbacks=[],this._elementId=this.$element[0].id,elData(this.$editor[0],"element-id",this._elementId),require(["EventHandler"],function(e){this.WoltLabEvent._setEvents(e),e.add("com.woltlab.wcf.redactor2","destroy_"+this._elementId,function(){e.removeAllBySuffix("com.woltlab.wcf.redactor2",this._elementId)}.bind(this))}.bind(this));var t=window.navigator.userAgent.toLowerCase();-1===t.indexOf("windows phone")&&-1===t.indexOf("edge/")&&(this.$editor[0].addEventListener("focus",function(){e++,document.documentElement.classList.add("redactorActive")}),this.$editor[0].addEventListener("blur",function(){e--,window.setTimeout(function(){0===e&&document.documentElement.classList.remove("redactorActive")},100)})),this.events.iterateObserver=function(e){var t=!1;(("textarea"===this.opts.type||"div"===this.opts.type)&&!this.detect.isFirefox()&&e.target===this.core.editor()[0]&&"childList"===e.type&&!e.addedNodes.length||"class"===e.attributeName&&e.target===this.core.editor()[0])&&(t=!0),t||(this.observe.load(),this.events.changeHandler())}.bind(this),this.events.observer.disconnect(),this.events.createObserver(),this.events.setupObserver()},_setEvents:function(e){var t=this.$element[0].id,i=this.observe.load;this.observe.load=function(){i.call(this),e.fire("com.woltlab.wcf.redactor2","observe_load_"+t,{editor:this.$editor[0]})}.bind(this),this.opts.callbacks.keyup=function(i){var n={cancel:!1,event:i};return e.fire("com.woltlab.wcf.redactor","keyup_"+t,n),n.cancel===!1},e.add("com.woltlab.wcf.redactor2","getText_"+t,function(e){e.message=this.code.get()}.bind(this)),e.add("com.woltlab.wcf.redactor2","reset_"+t,function(){this.code.set("")}.bind(this))},register:function(e,t){require(["EventHandler"],function(i){var n=this.uuid;-1===this._callbacks.indexOf(e)&&(this.opts.callbacks[e]=function(t){var s={cancel:!1,event:t,redactor:this};return i.fire("com.woltlab.wcf.redactor2",e+"_"+n+"_"+this.WoltLabEvent._elementId,s),s.cancel===!1}.bind(this),this._callbacks.push(e)),require(["EventHandler"],function(i){i.add("com.woltlab.wcf.redactor2",e+"_"+n+"_"+this.WoltLabEvent._elementId,t)}.bind(this))}.bind(this))}}};
 // WoltLabFont.js
 $.Redactor.prototype.WoltLabFont=function(){"use strict";return{_fonts:["Arial, Helvetica, sans-serif","Comic Sans MS, Marker Felt, cursive","Consolas, Courier New, Courier, monospace","Georgia, serif","Lucida Sans Unicode, Lucida Grande, sans-serif","Tahoma, Geneva, sans-serif","Times New Roman, Times, serif",'Trebuchet MS", Helvetica, sans-serif',"Verdana, Geneva, sans-serif"],init:function(){var t=this.WoltLabFont.setFont.bind(this),e={};this.WoltLabFont._fonts.forEach(function(o,i){e["fontFamily_"+i]={title:o.split(",")[0].replace(/['"]/g,""),func:t}}),e.removeFont={title:this.lang.get("remove-font"),func:this.WoltLabFont.removeFont.bind(this)};var o=this.button.add("woltlabFont","");this.button.addDropdown(o,e);var i=o.data("dropdown");i.find("a").each(function(t,e){e.className.match(/^redactor-dropdown-fontFamily_(\d+)$/)&&e.style.setProperty("font-family",this.WoltLabFont._fonts[RegExp.$1],"")}.bind(this)),$('<li class="dropdownDivider"></li>').insertBefore(i.children("li").last())},setFont:function(t){t=t.replace(/^fontFamily_/,""),this.selection.save(),require(["WoltLabSuite/Core/Ui/Redactor/Format"],function(e){this.buffer.set(),e.format(this.$editor[0],"font-family",this.WoltLabFont._fonts[t]),this.buffer.set()}.bind(this))},removeFont:function(){this.selection.save(),require(["WoltLabSuite/Core/Ui/Redactor/Format"],function(t){this.buffer.set(),t.removeFormat(this.$editor[0],"font-family"),this.buffer.set()}.bind(this))}}};
 // WoltLabFullscreen.js