Updating minified JavaScript files
authorwoltlab.com <woltlab@woltlab.com>
Tue, 30 Aug 2016 21:02:25 +0000 (23:02 +0200)
committerwoltlab.com <woltlab@woltlab.com>
Tue, 30 Aug 2016 21:02:25 +0000 (23:02 +0200)
wcfsetup/install/files/js/3rdParty/redactor2/plugins/combined.min.js

index 62dbb46b6297422c9a2fe68a5c13454d6c16703c..281c39b9bf6604170e57b39a82258f8680fa2a4b 100644 (file)
@@ -46,6 +46,8 @@ $.Redactor.prototype.WoltLabMedia=function(){"use strict";return{init:function()
 $.Redactor.prototype.WoltLabMention=function(){"use strict";return{init:function(){require(["WoltLabSuite/Core/Ui/Redactor/Mention"],function(t){new t(this)}.bind(this))}}};
 // WoltLabModal.js
 $.Redactor.prototype.WoltLabModal=function(){"use strict";var t=null,i="",e=null,o={close:function(){this.selection.restore(),e.close(this)},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.WoltLabCaret=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");var s=this.$editor[0];o.nodeType!==Node.ELEMENT_NODE&&(o=o.parentNode);for(var i,r=[];o!==s;)i=o.nodeName.toLowerCase(),-1===r.indexOf(i)&&(this.opts.activeButtonsStates.hasOwnProperty(i)&&this.button.setActive(this.opts.activeButtonsStates[i]),r.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 r,n=null,a=0,h=this.opts.observe.dropdowns.length;h>a;a++){r=this.opts.observe.dropdowns[a];var l=r.observe,u=l.element,d=r.item,c=l.in?l.in:!1,b=l.out?l.out:!1;"a"===u&&null===n&&(n=$("<div />").html(this.selection.html()).find("a").length),-1!==i.indexOf(u)&&s||"a"===u&&0!==n?this.observe.setDropdownProperties(d,c,b):this.observe.setDropdownProperties(d,b,c)}}.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