From: Cyperghost Date: Wed, 13 Nov 2024 10:23:22 +0000 (+0100) Subject: `EditorConfig.woltlabMedia` is removed X-Git-Tag: 6.1.1_dev_1~4^2~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8d26f7394518a0c9f285daa6f7b024423958257d;p=GitHub%2FWoltLab%2FWCF.git `EditorConfig.woltlabMedia` is removed See https://github.com/WoltLab/editor/commit/c6979f3e4b5631d8a327de25b2f2b135cdc5490f See https://github.com/WoltLab/WCF/commit/76e819bb8146f9149f86e530a3b54aeff395d979 --- diff --git a/ts/WoltLabSuite/Core/Component/Ckeditor/Media.ts b/ts/WoltLabSuite/Core/Component/Ckeditor/Media.ts index 142e079c3a..c47796a3b4 100644 --- a/ts/WoltLabSuite/Core/Component/Ckeditor/Media.ts +++ b/ts/WoltLabSuite/Core/Component/Ckeditor/Media.ts @@ -46,17 +46,6 @@ function uploadMedia(element: HTMLElement, file: File, abortController?: AbortCo export function setup(element: HTMLElement): void { listenToCkeditor(element) .setupConfiguration(({ configuration, features }) => { - configuration.woltlabMedia = { - resolveMediaUrl(mediaId: number, mediaSize: string) { - let thumbnail = ""; - if (mediaSize !== "original") { - thumbnail = `&thumbnail=${mediaSize}`; - } - - return `${window.WSC_API_URL}index.php?media/${mediaId}/${thumbnail}`; - }, - }; - if (features.attachment || !features.media) { return; } diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Component/Ckeditor/Media.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Component/Ckeditor/Media.js index 036e64ba71..0350685c24 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Component/Ckeditor/Media.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Component/Ckeditor/Media.js @@ -48,15 +48,6 @@ define(["require", "exports", "./Event"], function (require, exports, Event_1) { function setup(element) { (0, Event_1.listenToCkeditor)(element) .setupConfiguration(({ configuration, features }) => { - configuration.woltlabMedia = { - resolveMediaUrl(mediaId, mediaSize) { - let thumbnail = ""; - if (mediaSize !== "original") { - thumbnail = `&thumbnail=${mediaSize}`; - } - return `${window.WSC_API_URL}index.php?media/${mediaId}/${thumbnail}`; - }, - }; if (features.attachment || !features.media) { return; }