`EditorConfig.woltlabMedia` is removed
authorCyperghost <olaf_schmitz_1@t-online.de>
Wed, 13 Nov 2024 10:23:22 +0000 (11:23 +0100)
committerCyperghost <olaf_schmitz_1@t-online.de>
Wed, 13 Nov 2024 10:23:22 +0000 (11:23 +0100)
See https://github.com/WoltLab/editor/commit/c6979f3e4b5631d8a327de25b2f2b135cdc5490f
See https://github.com/WoltLab/WCF/commit/76e819bb8146f9149f86e530a3b54aeff395d979

ts/WoltLabSuite/Core/Component/Ckeditor/Media.ts
wcfsetup/install/files/js/WoltLabSuite/Core/Component/Ckeditor/Media.js

index 142e079c3aa4d7b10b8a30b957bc72f46a63a3f1..c47796a3b441eca09dcc2848b4e6789e39cb8e70 100644 (file)
@@ -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;
       }
index 036e64ba71baa78bea6c80f78e4369e8a7c80862..0350685c240d9822924f6e966ac0dfc244c33861 100644 (file)
@@ -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;
             }