Set `created` to `true` if the `UiPageAction` does not include the editor.
authorCyperghost <olaf_schmitz_1@t-online.de>
Fri, 16 Feb 2024 12:50:18 +0000 (13:50 +0100)
committerOlaf Braun <info@braun-development.de>
Thu, 7 Mar 2024 15:37:00 +0000 (16:37 +0100)
ts/WoltLabSuite/Core/Controller/Clipboard.ts
wcfsetup/install/files/js/WoltLabSuite/Core/Controller/Clipboard.js

index 8393a82b06fc45907ae10b532f4e010568de2774..3f9d438fdceb6b947ad2004bee17b79d20e0e20a 100644 (file)
@@ -496,6 +496,7 @@ class ControllerClipboard {
           UiPageAction.show(actionName);
         } else {
           UiPageAction.add(actionName, editor);
+          created = true;
         }
       }
 
index 9ae670aee82e886ec8146d9dd5a09017c25f0732..55b93753c717fa58376386388f2ed5b008982eb2 100644 (file)
@@ -411,6 +411,7 @@ define(["require", "exports", "tslib", "../Ajax", "../Core", "../Dom/Change/List
                     }
                     else {
                         UiPageAction.add(actionName, editor);
+                        created = true;
                     }
                 }
                 if (created) {