Updating minified JavaScript files
authorwoltlab.com <woltlab@woltlab.com>
Sun, 25 Feb 2018 18:07:54 +0000 (19:07 +0100)
committerwoltlab.com <woltlab@woltlab.com>
Sun, 25 Feb 2018 18:07:54 +0000 (19:07 +0100)
wcfsetup/install/files/js/3rdParty/redactor2/redactor.combined.min.js

index 6848f34225100d6192f96ee63a5e93db50f67e7c..54d1d2565b35f011623b85e7f1b1fe94bf2c8ebd 100644 (file)
@@ -114,7 +114,7 @@ void 0!==this.freezeScrollTop&&this.utils.getScrollTarget().scrollTop(this.freez
 (function (window, undefined) { $.Redactor.prototype.WoltLabSpoiler=function(){"use strict";return{init:function(){this.WoltLabBlock.register("woltlab-spoiler",!0),this.opts.activeButtonsStates["woltlab-spoiler"]="woltlabSpoiler",require(["WoltLabSuite/Core/Ui/Redactor/Spoiler"],function(t){new t(this)}.bind(this))}}}; })(this);
 
 // plugins/WoltLabTable.js
-(function (window, undefined) { $.Redactor.prototype.WoltLabTable=function(){"use strict";var e=null;return{init:function(){this.WoltLabEvent.register("insertedTable",function(){window.setTimeout(function(){var e=this.selection.block()||this.selection.current();if(e===this.$editor[0]){var t=window.getSelection();t.isCollapsed&&t.anchorNode===this.$editor[0]&&t.anchorOffset>0&&(e=t.anchorNode.childNodes[t.anchorOffset-1])}if("TBODY"===e.nodeName&&(e=e.parentNode),"TABLE"===e.nodeName){for(var i,o=[],r=0,s=e.childNodes.length;r<s;r++)i=e.childNodes[r],i.nodeType===Node.TEXT_NODE&&i.textContent.length>0&&o.push(i);o.forEach(elRemove);var l=elBySel("td",e);l&&this.caret.end(l)}}.bind(this),10)}.bind(this));var t=this.button.get("table").data("dropdown"),i=t.find(".redactor-dropdown-insert_table");i.off("mousedown"),i[0].addEventListener("mousedown",this.WoltLabTable._promptTableSize.bind(this)),require(["WoltLabSuite/Core/Ui/Redactor/Table"],function(t){e=t})},_promptTableSize:function(t){t.preventDefault(),this.table.getTable()||(this.selection.save(),e.showDialog({submitCallback:function(){this.WoltLabTable._insertTable(~~elById("redactor-table-rows").value,~~elById("redactor-table-cols").value)}.bind(this)}))},_insertTable:function(e,t){this.placeholder.hide();var i,o="<tr>";for(i=0;i<t;i++)o+="<td>"+this.opts.invisibleSpace+"</td>";o+="</tr>";var r="<table>";for(i=0;i<e;i++)r+=0===i?o.replace(new RegExp("^(<tr><td>"+this.opts.invisibleSpace+")"),"$1"+this.marker.html()):o;r+="</table>",this.buffer.set();var s=this.selection.current();0!==$(s).closest("li",this.core.editor()[0]).length?$(s).closest("ul, ol").first().after(r):this.insert.html(r),this.selection.restore(),this.core.callback("insertedTable",void 0)}}}; })(this);
+(function (window, undefined) { $.Redactor.prototype.WoltLabTable=function(){"use strict";var e=null;return{init:function(){this.WoltLabEvent.register("insertedTable",function(){window.setTimeout(function(){var e=this.selection.block()||this.selection.current();if(e===this.$editor[0]){var t=window.getSelection();t.isCollapsed&&t.anchorNode===this.$editor[0]&&t.anchorOffset>0&&(e=t.anchorNode.childNodes[t.anchorOffset-1])}if("TBODY"===e.nodeName&&(e=e.parentNode),"TABLE"===e.nodeName){for(var i,o=[],r=0,s=e.childNodes.length;r<s;r++)i=e.childNodes[r],i.nodeType===Node.TEXT_NODE&&i.textContent.length>0&&o.push(i);o.forEach(elRemove);var l=elBySel("td",e);l&&this.caret.end(l)}}.bind(this),10)}.bind(this));var t=this.button.get("table").data("dropdown"),i=t.find(".redactor-dropdown-insert_table");i.off("mousedown"),i[0].addEventListener("mousedown",this.WoltLabTable._promptTableSize.bind(this)),require(["WoltLabSuite/Core/Ui/Redactor/Table"],function(t){e=t})},_promptTableSize:function(t){t.preventDefault(),this.table.getTable()||(this.selection.save(),e.showDialog({submitCallback:function(){this.WoltLabTable._insertTable(~~elById("redactor-table-rows").value,~~elById("redactor-table-cols").value)}.bind(this)}))},_insertTable:function(e,t){this.placeholder.hide();var i,o="<tr>";for(i=0;i<t;i++)o+="<td>"+this.opts.invisibleSpace+"</td>";o+="</tr>";var r="<table>";for(i=0;i<e;i++)r+=0===i?o.replace(new RegExp("^(<tr><td>"+this.opts.invisibleSpace+")"),"$1"+this.marker.html()):o;r+="</table>",this.selection.restore(),this.buffer.set();var s=this.selection.current();0!==$(s).closest("li",this.core.editor()[0]).length?$(s).closest("ul, ol").first().after(r):this.insert.html(r),this.selection.restore(),this.core.callback("insertedTable",void 0)}}}; })(this);
 
 // plugins/WoltLabUtils.js
 (function (window, undefined) { $.Redactor.prototype.WoltLabUtils=function(){"use strict";return{init:function(){var t=this.utils.replaceToTag;this.utils.replaceToTag=function(i,r){return"figure"===r?i:t.call(this,i,r)}.bind(this)}}}; })(this);