From: Alexander Ebert Date: Sun, 10 Mar 2019 12:25:23 +0000 (+0100) Subject: Cleaned up unused modules X-Git-Tag: 5.2.0_Alpha_1~222^2~6 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=19af26fc22bc31d699db6021dee2eda1d23b8a14;p=GitHub%2FWoltLab%2FWCF.git Cleaned up unused modules --- diff --git a/wcfsetup/install/files/js/3rdParty/redactor2/redactor.js b/wcfsetup/install/files/js/3rdParty/redactor2/redactor.js index df0617c06a..c8828ab113 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor2/redactor.js +++ b/wcfsetup/install/files/js/3rdParty/redactor2/redactor.js @@ -1,7 +1,7 @@ /* Redactor II - Version 2.12 - Updated: December 4, 2017 + Version 2.99 + Heavily modified version for WoltLab Suite. http://imperavi.com/redactor/ @@ -82,10 +82,10 @@ // Options $.Redactor = Redactor; - $.Redactor.VERSION = '2.12'; + $.Redactor.VERSION = '2.99'; // Fake version $.Redactor.modules = [ - 'air', - 'autosave', + 'air', // Unsupported module + 'autosave', // Unsupported module 'block', 'buffer', 'build', @@ -97,7 +97,7 @@ 'detect', 'dropdown', 'events', - 'file', + 'file', // Unsupported module 'focus', 'image', 'indent', @@ -108,7 +108,7 @@ 'lang', 'line', 'link', - 'linkify', + 'linkify', // Unsupported module 'list', 'marker', 'modal', @@ -117,13 +117,13 @@ 'paragraphize', 'paste', 'placeholder', - 'progress', + 'progress', // Unsupported module 'selection', 'shortcuts', - 'storage', + 'storage', // Unsupported module 'toolbar', - 'upload', - 'uploads3', + 'upload', // Unsupported module + 'uploads3', // Unsupported module 'utils', 'browser' // deprecated @@ -700,221 +700,32 @@ } }, - // =air + // =air -- UNSUPPORTED MODULE air: function () { return { enabled: false, - collapsed: function () { - if (this.opts.air) { - this.selection.get().collapseToStart(); - } - }, - collapsedEnd: function () { - if (this.opts.air) { - this.selection.get().collapseToEnd(); - } - }, - build: function () { - if (this.detect.isMobile()) { - return; - } - - this.button.hideButtons(); - this.button.hideButtonsOnMobile(); - - if (this.opts.buttons.length === 0) { - return; - } - - this.$air = this.air.createContainer(); - - if (this.opts.airWidth !== false) { - this.$air.css('width', this.opts.airWidth); - } - - this.air.append(); - this.button.$toolbar = this.$air; - this.button.setFormatting(); - this.button.load(this.$air); - - this.core.editor().on('mouseup.redactor', this, $.proxy(function (e) { - if (this.selection.text() !== '') { - this.air.show(e); - } - }, this)); - - }, - append: function () { - this.$air.appendTo('body'); - }, - createContainer: function () { - return $('