Updating minified JavaScript files
authorwoltlab.com <woltlab@woltlab.com>
Wed, 31 Aug 2016 10:21:46 +0000 (12:21 +0200)
committerwoltlab.com <woltlab@woltlab.com>
Wed, 31 Aug 2016 10:21:46 +0000 (12:21 +0200)
wcfsetup/install/files/js/3rdParty/redactor2/plugins/combined.min.js

index b3130c9319ce5e0b9bf94c3bba54ac37a55f326c..e076796ea4890c55bc5ac51fc8cfd45ab7324bda 100644 (file)
@@ -35,7 +35,7 @@ $.Redactor.prototype.WoltLabInlineCode=function(){"use strict";return{init:funct
 // WoltLabInsert.js
 $.Redactor.prototype.WoltLabInsert=function(){"use strict";return{init:function(){var t=this.opts.woltlab.placeholderCallback,e=this.insert.html;this.insert.html=function(i,n){t&&(t=t()),this.placeholder.hide(),this.core.editor().focus();var r=this.selection.block(),l=""===this.$editor[0].innerHTML.replace(/<\/?p>/g,"").replace(/<br>/g,"").replace(/\u200B/g,"").trim();if(e.call(this,i,n),l&&(r=this.$editor[0].firstElementChild),r&&"P"===r.nodeName&&r.nextElementSibling){var s=!1;0===r.childElementCount&&""===r.textContent.replace(/\u200B/g,"").trim()?s=!0:1===r.childElementCount&&"<br>"===r.innerHTML&&(s=!0),s&&elRemove(r)}}.bind(this);var i=this.insert.text;this.insert.text=function(e){t&&(t=t()),i.call(this,e)}.bind(this)}}};
 // WoltLabKeydown.js
-$.Redactor.prototype.WoltLabKeydown=function(){"use strict";var t=[];return{init:function(){this.keydown.onArrowDown=function(){for(var t=this.WoltLabKeydown._getBlocks(),e=0;e<t.length;e++)if(t[e])return this.keydown.insertAfterLastElement(t[e]),!1}.bind(this),this.keydown.onArrowUp=function(){for(var t=this.WoltLabKeydown._getBlocks(),e=0;e<t.length;e++)if(t[e])return this.keydown.insertBeforeFirstElement(t[e]),!1}.bind(this);var t=this.keydown.onEnter;this.keydown.onEnter=function(e){var n=this.keydown.blockquote;n&&(this.keydown.blockquote=!1),t.call(this,e),n&&(this.keydown.blockquote=n)}.bind(this);var e=this.keydown.onTab;this.keydown.onTab=function(t,n){return this.keydown.pre||0!==$(this.selection.current()).closest("ul, ol",this.core.editor()[0]).length?e.call(this,t,n):!0}.bind(this),require(["Core","Environment"],function(t,e){if("desktop"===e.platform()){var n=this.$editor[0].closest("form, .message");if(null!==n){var o=elBySel(".formSubmit",n);if(null!==o){var i=elBySel('input[type="submit"], button[data-type="save"], button[accesskey="s"]',o);i&&(i.removeAttribute("accesskey"),this.WoltLabEvent.register("keydown",function(e){if(83===e.event.which){var n=!1;window.navigator.platform.match(/^Mac/)?e.event.ctrlKey&&e.event.altKey&&(n=!0):e.event.altKey&&!e.event.ctrlKey&&(n=!0),n&&(e.cancel=!0,t.triggerEvent(i,WCF_CLICK_EVENT))}}.bind(this)))}}}}.bind(this))},register:function(e){-1===t.indexOf(e)&&t.push(e)},_getBlocks:function(){for(var e=[this.keydown.blockquote,this.keydown.pre,this.keydown.figcaption],n=0,o=t.length;o>n;n++)e.push(this.utils.isTag(this.keydown.current,t[n]));return e}}};
+$.Redactor.prototype.WoltLabKeydown=function(){"use strict";var t=[];return{init:function(){this.keydown.onArrowDown=function(){for(var t=this.WoltLabKeydown._getBlocks(),e=0;e<t.length;e++)if(t[e])return this.keydown.insertAfterLastElement(t[e]),!1}.bind(this),this.keydown.onArrowUp=function(){for(var t=this.WoltLabKeydown._getBlocks(),e=0;e<t.length;e++)if(t[e])return this.keydown.insertBeforeFirstElement(t[e]),!1}.bind(this);var t=this.keydown.onEnter;this.keydown.onEnter=function(e){var n=this.keydown.blockquote;n&&(this.keydown.blockquote=!1),t.call(this,e),n&&(this.keydown.blockquote=n)}.bind(this),this.keydown.onShiftEnter=function(t){return this.buffer.set(),this.keydown.pre?this.keydown.insertNewLine(t):this.insert.raw("<br>​")}.bind(this);var e=this.keydown.onTab;this.keydown.onTab=function(t,n){return this.keydown.pre||0!==$(this.selection.current()).closest("ul, ol",this.core.editor()[0]).length?e.call(this,t,n):!0}.bind(this),require(["Core","Environment"],function(t,e){if("desktop"===e.platform()){var n=this.$editor[0].closest("form, .message");if(null!==n){var i=elBySel(".formSubmit",n);if(null!==i){var o=elBySel('input[type="submit"], button[data-type="save"], button[accesskey="s"]',i);o&&(o.removeAttribute("accesskey"),this.WoltLabEvent.register("keydown",function(e){if(83===e.event.which){var n=!1;window.navigator.platform.match(/^Mac/)?e.event.ctrlKey&&e.event.altKey&&(n=!0):e.event.altKey&&!e.event.ctrlKey&&(n=!0),n&&(e.cancel=!0,t.triggerEvent(o,WCF_CLICK_EVENT))}}.bind(this)))}}}}.bind(this))},register:function(e){-1===t.indexOf(e)&&t.push(e)},_getBlocks:function(){for(var e=[this.keydown.blockquote,this.keydown.pre,this.keydown.figcaption],n=0,i=t.length;i>n;n++)e.push(this.utils.isTag(this.keydown.current,t[n]));return e}}};
 // WoltLabLink.js
 $.Redactor.prototype.WoltLabLink=function(){"use strict";var i=null;return{init:function(){this.link.show=this.WoltLabLink.show.bind(this),require(["WoltLabSuite/Core/Ui/Redactor/Link"],function(t){i=t})},show:function(t){"undefined"!=typeof t&&t.preventDefault&&t.preventDefault(),this.selection.save(),this.observe.closeAllTooltip();var e=this.link.is();i.showDialog({insert:e===!1,submitCallback:function(){var i=this.link.buildLinkFromModal();return i===!1?!1:(this.link.insert(i,!0),!0)}.bind(this)});var n=this.link.buildLinkFromElement(e);n.url=this.link.removeSelfHostFromUrl(n.url),this.link.setModalValues(n),this.detect.isDesktop()&&$("#redactor-link-url").focus()}}};
 // WoltLabList.js