Updating minified JavaScript files
authorwoltlab.com <woltlab@woltlab.com>
Thu, 19 Jan 2017 10:31:49 +0000 (11:31 +0100)
committerwoltlab.com <woltlab@woltlab.com>
Thu, 19 Jan 2017 10:31:49 +0000 (11:31 +0100)
wcfsetup/install/files/js/3rdParty/redactor2/plugins/combined.min.js

index b1037b3057abfaa0a3cf32ea92bd28606def3d0a..95979cd1fc6191bccd69b6a52d5c5559d819ba67 100644 (file)
@@ -51,7 +51,7 @@ $.Redactor.prototype.WoltLabMention=function(){"use strict";return{init:function
 // WoltLabModal.js
 $.Redactor.prototype.WoltLabModal=function(){"use strict";var t=null,i="",e=null,o={close:function(){this.selection.restore(),e.getDialog("redactorOverlay-"+this.uuid)&&e.close("redactorOverlay-"+this.uuid)},load:function(e,o){t.innerHTML=this.modal.getTemplate(e),i=o},setTitle:function(t){e.setTitle(this,t)},show:function(){this.selection.save(),e.open(this),e.setTitle(this,i)}};return{init:function(){t=elCreate("div"),t.className="redactorModalWrapper",t.id="redactorOverlay-"+this.uuid,elHide(t),document.body.appendChild(t),this.$modalBody=$(t),require(["Ui/Dialog"],function(t){e=t;for(var i in o)o.hasOwnProperty(i)&&(this.modal[i]=o[i].bind(this))}.bind(this)),this._dialogSetup=function(){return{id:"redactorOverlay-"+this.uuid,options:{onClose:function(t){var i=e.getDialog(t);elBySelAll("[id]",i.content,function(t){t.removeAttribute("id")})}}}}},rebuild:function(){e&&e.rebuild("redactorOverlay-"+this.uuid)}}};
 // WoltLabObserve.js
-$.Redactor.prototype.WoltLabObserve=function(){"use strict";return{init:function(){var t=elByClass("re-button",this.button.toolbar()[0]);this.button.setInactiveAll=function(e){for(var o,s=0,i=t.length;i>s;s++)o=t[s],o.classList.contains("re-"+e)||o.classList.remove("redactor-act")}.bind(this),this.observe.buttons=function(t,e){var o=this.selection.current();if(t!==!1?this.button.setInactiveAll():this.button.setInactiveAll(e),t===!1&&"html"!==e)return void(-1!==$.inArray(e,this.opts.activeButtons)&&this.button.toggleActive(e));if(this.utils.isRedactorParent(o)){this.utils.isCurrentOrParentHeader()||this.utils.isCurrentOrParent(["table","pre","blockquote","li"])?this.button.disable("horizontalrule"):this.button.enable("horizontalrule"),this.utils.isCurrentOrParent(["table","li"])?(this.button.disable("code"),this.button.disable("spoiler"),this.button.disable("woltlabQuote")):(this.button.enable("code"),this.button.enable("spoiler"),this.button.enable("woltlabQuote"));var s=this.$editor[0];o.nodeType!==Node.ELEMENT_NODE&&(o=o.parentNode);for(var i,n=[];o!==s;)i=o.nodeName.toLowerCase(),-1===n.indexOf(i)&&(this.opts.activeButtonsStates.hasOwnProperty(i)&&this.button.setActive(this.opts.activeButtonsStates[i]),n.push(i)),o=o.parentNode}}.bind(this),this.observe.dropdowns=function(){var t,e=this.selection.current(),o=this.$editor[0],s=this.utils.isRedactorParent(e),i=[];if(e&&s)for(e.nodeType!==Node.ELEMENT_NODE&&(e=e.parentNode);e!==o;)t=e.nodeName.toLowerCase(),-1===i.indexOf(t)&&i.push(t),e=e.parentNode;for(var n,r=null,a=0,l=this.opts.observe.dropdowns.length;l>a;a++){n=this.opts.observe.dropdowns[a];var u=n.observe,h=u.element,b=n.item,d=u.in?u.in:!1,c=u.out?u.out:!1;"a"===h&&null===r&&(r=$("<div />").html(this.selection.html()).find("a").length),-1!==i.indexOf(h)&&s||"a"===h&&0!==r?this.observe.setDropdownProperties(b,d,c):this.observe.setDropdownProperties(b,c,d)}}.bind(this)}}};
+$.Redactor.prototype.WoltLabObserve=function(){"use strict";return{init:function(){var t=elByClass("re-button",this.button.toolbar()[0]);this.button.setInactiveAll=function(e){for(var o,s=0,i=t.length;i>s;s++)o=t[s],o.classList.contains("re-"+e)||o.classList.remove("redactor-act")}.bind(this),this.observe.buttons=function(t,e){var o=this.selection.current();if(t!==!1?this.button.setInactiveAll():this.button.setInactiveAll(e),t===!1&&"html"!==e)return void(-1!==$.inArray(e,this.opts.activeButtons)&&this.button.toggleActive(e));if(this.utils.isRedactorParent(o)){var s=this.WoltLabSource.isActive();this.utils.isCurrentOrParentHeader()||this.utils.isCurrentOrParent(["table","pre","blockquote","li"])?this.button.disable("horizontalrule"):s||this.button.enable("horizontalrule"),this.utils.isCurrentOrParent(["table","li"])?(this.button.disable("code"),this.button.disable("spoiler"),this.button.disable("woltlabQuote")):s||(this.button.enable("code"),this.button.enable("spoiler"),this.button.enable("woltlabQuote"));var i=this.$editor[0];o.nodeType!==Node.ELEMENT_NODE&&(o=o.parentNode);for(var n,r=[];o!==i;)n=o.nodeName.toLowerCase(),-1===r.indexOf(n)&&(this.opts.activeButtonsStates.hasOwnProperty(n)&&this.button.setActive(this.opts.activeButtonsStates[n]),r.push(n)),o=o.parentNode}}.bind(this),this.observe.dropdowns=function(){var t,e=this.selection.current(),o=this.$editor[0],s=this.utils.isRedactorParent(e),i=[];if(e&&s)for(e.nodeType!==Node.ELEMENT_NODE&&(e=e.parentNode);e!==o;)t=e.nodeName.toLowerCase(),-1===i.indexOf(t)&&i.push(t),e=e.parentNode;for(var n,r=null,a=0,l=this.opts.observe.dropdowns.length;l>a;a++){n=this.opts.observe.dropdowns[a];var u=n.observe,h=u.element,b=n.item,d=u.in?u.in:!1,c=u.out?u.out:!1;"a"===h&&null===r&&(r=$("<div />").html(this.selection.html()).find("a").length),-1!==i.indexOf(h)&&s||"a"===h&&0!==r?this.observe.setDropdownProperties(b,d,c):this.observe.setDropdownProperties(b,c,d)}}.bind(this)}}};
 // 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