Run tsc
authorCyperghost <olaf_schmitz_1@t-online.de>
Wed, 7 Feb 2024 12:35:11 +0000 (13:35 +0100)
committerCyperghost <olaf_schmitz_1@t-online.de>
Wed, 7 Feb 2024 12:35:11 +0000 (13:35 +0100)
wcfsetup/install/files/js/WoltLabSuite/Core/Component/Ckeditor/Attachment.js

index 47179c2a288a4d91555cfec517045cf05dc6a03e..9a9b43b4ff9e3f3b35816157e1efad85dcdc27b0 100644 (file)
@@ -41,26 +41,11 @@ define(["require", "exports", "./Event"], function (require, exports, Event_1) {
             ckeditor.removeAll("imageInline", { attachmentId });
         });
     }
-    function getInlineImageIds(element) {
-        const messageTabMenu = document.querySelector(`.messageTabMenu[data-wysiwyg-container-id="${element.id}"]`);
-        if (!messageTabMenu) {
-            return [];
-        }
-        const attachmentList = messageTabMenu.querySelector(".formAttachmentContent > .formAttachmentList");
-        if (!attachmentList) {
-            return [];
-        }
-        return Array.from(attachmentList.querySelectorAll('.formAttachmentListItem[data-is-image="1"]')).map((listItem) => parseInt(listItem.dataset.objectId));
-    }
     function setup(element) {
         (0, Event_1.listenToCkeditor)(element).setupConfiguration(({ configuration, features }) => {
             if (!features.attachment) {
                 return;
             }
-            const inlineImageIds = getInlineImageIds(element);
-            configuration.woltlabAttachment = {
-                inlineImageIds,
-            };
             configuration.woltlabUpload = {
                 uploadImage: (file, abortController) => uploadAttachment(element, file, abortController),
                 uploadOther: (file) => uploadAttachment(element, file),