From 8d26f7394518a0c9f285daa6f7b024423958257d Mon Sep 17 00:00:00 2001 From: Cyperghost Date: Wed, 13 Nov 2024 11:23:22 +0100 Subject: [PATCH] `EditorConfig.woltlabMedia` is removed See https://github.com/WoltLab/editor/commit/c6979f3e4b5631d8a327de25b2f2b135cdc5490f See https://github.com/WoltLab/WCF/commit/76e819bb8146f9149f86e530a3b54aeff395d979 --- ts/WoltLabSuite/Core/Component/Ckeditor/Media.ts | 11 ----------- .../js/WoltLabSuite/Core/Component/Ckeditor/Media.js | 9 --------- 2 files changed, 20 deletions(-) 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; } -- 2.20.1