From: Alexander Ebert Date: Sun, 10 Mar 2019 16:14:15 +0000 (+0100) Subject: Purged unsupported modules, improved startup performance X-Git-Tag: 5.2.0_Alpha_1~222^2~5 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0a5e19e93e78cef9e3dfc41ae7f8ae4c36811ddb;p=GitHub%2FWoltLab%2FWCF.git Purged unsupported modules, improved startup performance --- diff --git a/wcfsetup/install/files/js/3rdParty/redactor2/redactor.js b/wcfsetup/install/files/js/3rdParty/redactor2/redactor.js index c8828ab113..4a59b55ec4 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor2/redactor.js +++ b/wcfsetup/install/files/js/3rdParty/redactor2/redactor.js @@ -116,7 +116,7 @@ 'offset', 'paragraphize', 'paste', - 'placeholder', + 'placeholder', // Unsupported module 'progress', // Unsupported module 'selection', 'shortcuts', @@ -757,7 +757,6 @@ attr = 'class'; } - this.placeholder.hide(); this.buffer.set(); return (this.utils.isCollapsed()) ? this.block.formatCollapsed(tag, @@ -1084,22 +1083,12 @@ build: function () { return { start: function () { - if (this.opts.type === 'inline') { - this.opts.type = 'inline'; - } - else if (this.opts.type === 'div') { - // empty - var html = $.trim(this.$editor.html()); - if (html === '') { - this.$editor.html(this.opts.emptyHtml); - } - - this.build.buildTextarea(); - } - else if (this.opts.type === 'textarea') { - this.build.startTextarea(); + if (this.opts.type !== 'textarea') { + throw new Error('Only `