Migrate to proper CKEditor 37 types
authorTim Düsterhus <duesterhus@woltlab.com>
Wed, 12 Apr 2023 11:01:07 +0000 (13:01 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Wed, 12 Apr 2023 11:03:58 +0000 (13:03 +0200)
12 files changed:
package-lock.json
package.json
ts/WoltLabSuite/Core/Component/Ckeditor.ts
ts/WoltLabSuite/Core/Component/Ckeditor/Autosave.ts
ts/WoltLabSuite/Core/Component/Ckeditor/Configuration.ts
ts/WoltLabSuite/Core/Component/Ckeditor/Event.ts
ts/WoltLabSuite/Core/Component/Ckeditor/Mention.ts
ts/WoltLabSuite/Core/Component/Ckeditor/SubmitOnEnter.ts
ts/WoltLabSuite/Core/Component/Ckeditor/Types.ts [new file with mode: 0644]
ts/global.d.ts
wcfsetup/install/files/js/WoltLabSuite/Core/Component/Ckeditor.js
wcfsetup/install/files/js/WoltLabSuite/Core/Component/Ckeditor/Types.js [new file with mode: 0644]

index 96a048e2a1520ac921408fa7ac7a5308f9b14893..c2850dbc2af32c143dae5412a4fbb4d02619faf3 100644 (file)
@@ -6,10 +6,12 @@
     "": {
       "name": "@woltlab/wcf",
       "dependencies": {
+        "@ckeditor/ckeditor5-autosave": "^37.0.1",
+        "@ckeditor/ckeditor5-core": "^37.0.1",
+        "@ckeditor/ckeditor5-editor-classic": "^37.0.1",
         "@ckeditor/ckeditor5-inspector": "^4.1.0",
+        "@ckeditor/ckeditor5-mention": "^37.0.1",
         "@googlemaps/markerclusterer": "^2.0.15",
-        "@types/ckeditor__ckeditor5-core": "^33.0.3",
-        "@types/ckeditor__ckeditor5-editor-classic": "^27.1.2",
         "@types/facebook-js-sdk": "^3.3.6",
         "@types/google.maps": "^3.51.1",
         "@types/jquery": "^3.5.14",
         "typescript": "^5.0.2"
       }
     },
+    "node_modules/@ckeditor/ckeditor5-autosave": {
+      "version": "37.0.1",
+      "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-autosave/-/ckeditor5-autosave-37.0.1.tgz",
+      "integrity": "sha512-MyZKv24y6LdaHfVvYk/6Qk7wlfbuUK4e94Yu1IcIyXyNs+321shfmXhEPExk9M1tc4TIWM1EgOVlLYDvllADuA==",
+      "dependencies": {
+        "ckeditor5": "^37.0.1",
+        "lodash-es": "^4.17.15"
+      },
+      "engines": {
+        "node": ">=16.0.0",
+        "npm": ">=5.7.1"
+      }
+    },
+    "node_modules/@ckeditor/ckeditor5-clipboard": {
+      "version": "37.0.1",
+      "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-clipboard/-/ckeditor5-clipboard-37.0.1.tgz",
+      "integrity": "sha512-nUSpkkBu4zKwAsS1ZaAu85QyfUlL0eUEo/vocM5OZUl5cI7vmZEuokdD+Fdoo+mqn7//XmlG+P3F0QzOwuUGQw==",
+      "dependencies": {
+        "@ckeditor/ckeditor5-core": "^37.0.1",
+        "@ckeditor/ckeditor5-engine": "^37.0.1",
+        "@ckeditor/ckeditor5-utils": "^37.0.1",
+        "@ckeditor/ckeditor5-widget": "^37.0.1",
+        "lodash-es": "^4.17.15"
+      },
+      "engines": {
+        "node": ">=16.0.0",
+        "npm": ">=5.7.1"
+      }
+    },
+    "node_modules/@ckeditor/ckeditor5-core": {
+      "version": "37.0.1",
+      "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-core/-/ckeditor5-core-37.0.1.tgz",
+      "integrity": "sha512-xzcAG8aAzzHZbpwUNfpNfkSoEJcofugvMA+Qk4h9dQCNW2hEoacRmaxkWsiKoRyw6WOLGomiJQE2s3EfemEN1g==",
+      "dependencies": {
+        "@ckeditor/ckeditor5-engine": "^37.0.1",
+        "@ckeditor/ckeditor5-utils": "^37.0.1",
+        "lodash-es": "^4.17.15"
+      },
+      "engines": {
+        "node": ">=16.0.0",
+        "npm": ">=5.7.1"
+      }
+    },
+    "node_modules/@ckeditor/ckeditor5-editor-classic": {
+      "version": "37.0.1",
+      "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-editor-classic/-/ckeditor5-editor-classic-37.0.1.tgz",
+      "integrity": "sha512-OV0dOfSON1lz62KtNCykwImTz8NBIoof8rDkUbHKqI+Wrj37yapStM7n+0JJHHuF0iuR0gKRl/4NBmTstSSrVQ==",
+      "dependencies": {
+        "ckeditor5": "^37.0.1",
+        "lodash-es": "^4.17.15"
+      },
+      "engines": {
+        "node": ">=16.0.0",
+        "npm": ">=5.7.1"
+      }
+    },
+    "node_modules/@ckeditor/ckeditor5-engine": {
+      "version": "37.0.1",
+      "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-engine/-/ckeditor5-engine-37.0.1.tgz",
+      "integrity": "sha512-vc6jxyAf8t0t/xjyU8ACUzcNce1FyzBd3yTc+uNONLnrFUoWA3t8VKVxqCHfx50QaPAW3e/MLa1uR7NSLwb8dQ==",
+      "dependencies": {
+        "@ckeditor/ckeditor5-utils": "^37.0.1",
+        "lodash-es": "^4.17.15"
+      },
+      "engines": {
+        "node": ">=16.0.0",
+        "npm": ">=5.7.1"
+      }
+    },
+    "node_modules/@ckeditor/ckeditor5-enter": {
+      "version": "37.0.1",
+      "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-enter/-/ckeditor5-enter-37.0.1.tgz",
+      "integrity": "sha512-eCZGgkFWTuhKSu3tROHiHmfaTBds9t84gFO96PVfKY2xpS5C04bf16EWt68P+ANIlHAWcnQ+hJoNZ0x77wWx/Q==",
+      "dependencies": {
+        "@ckeditor/ckeditor5-core": "^37.0.1",
+        "@ckeditor/ckeditor5-engine": "^37.0.1"
+      },
+      "engines": {
+        "node": ">=16.0.0",
+        "npm": ">=5.7.1"
+      }
+    },
     "node_modules/@ckeditor/ckeditor5-inspector": {
       "version": "4.1.0",
       "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-inspector/-/ckeditor5-inspector-4.1.0.tgz",
         "npm": ">=5.7.1"
       }
     },
+    "node_modules/@ckeditor/ckeditor5-mention": {
+      "version": "37.0.1",
+      "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-mention/-/ckeditor5-mention-37.0.1.tgz",
+      "integrity": "sha512-X3psYOz4Vjiy/lHyP6ELq/HrivBYZMKcffsk+OPM4GOnbcwLEhL81jBBXSesigCdj5kymrK5XpRj/5Nt4On6CQ==",
+      "dependencies": {
+        "ckeditor5": "^37.0.1",
+        "lodash-es": "^4.17.15"
+      },
+      "engines": {
+        "node": ">=16.0.0",
+        "npm": ">=5.7.1"
+      }
+    },
+    "node_modules/@ckeditor/ckeditor5-paragraph": {
+      "version": "37.0.1",
+      "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-paragraph/-/ckeditor5-paragraph-37.0.1.tgz",
+      "integrity": "sha512-nQbVwe9NVUXxwHZtRtMJRm64FrAPFqRGn/zCEFT41tB9/is014elSuvpn9UyC2iJxllmp+5nrtXANR+cBHsgxA==",
+      "dependencies": {
+        "@ckeditor/ckeditor5-core": "^37.0.1",
+        "@ckeditor/ckeditor5-ui": "^37.0.1",
+        "@ckeditor/ckeditor5-utils": "^37.0.1"
+      },
+      "engines": {
+        "node": ">=16.0.0",
+        "npm": ">=5.7.1"
+      }
+    },
+    "node_modules/@ckeditor/ckeditor5-select-all": {
+      "version": "37.0.1",
+      "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-select-all/-/ckeditor5-select-all-37.0.1.tgz",
+      "integrity": "sha512-moji9ivRnyjT7qz8jrx+jbPCnl+i7E8ACRBYiWdIfWiBt0bw0Es4bCGWxiZNjjD1j+qFSNZdNWasQwQ3ednd3g==",
+      "dependencies": {
+        "@ckeditor/ckeditor5-core": "^37.0.1",
+        "@ckeditor/ckeditor5-ui": "^37.0.1",
+        "@ckeditor/ckeditor5-utils": "^37.0.1"
+      },
+      "engines": {
+        "node": ">=16.0.0",
+        "npm": ">=5.7.1"
+      }
+    },
+    "node_modules/@ckeditor/ckeditor5-typing": {
+      "version": "37.0.1",
+      "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-typing/-/ckeditor5-typing-37.0.1.tgz",
+      "integrity": "sha512-3IgUlGblj+m0Sr5GKc5gMxVSg3UvKzyJ+uKvNVm34risK1pdNkfXwy7Ws+dhc9xbJITUrri353zvcXmhe7G/uw==",
+      "dependencies": {
+        "@ckeditor/ckeditor5-core": "^37.0.1",
+        "@ckeditor/ckeditor5-engine": "^37.0.1",
+        "@ckeditor/ckeditor5-utils": "^37.0.1",
+        "lodash-es": "^4.17.15"
+      },
+      "engines": {
+        "node": ">=16.0.0",
+        "npm": ">=5.7.1"
+      }
+    },
+    "node_modules/@ckeditor/ckeditor5-ui": {
+      "version": "37.0.1",
+      "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-ui/-/ckeditor5-ui-37.0.1.tgz",
+      "integrity": "sha512-frtSAjwCO1o1XQeYkvXP5vZLGoYmttvXtjJZ0AMzhY0wqxuQsyGgrLrJU4hrIcLJOYYNA1ZHvTQ8fS2Qdk0b8A==",
+      "dependencies": {
+        "@ckeditor/ckeditor5-core": "^37.0.1",
+        "@ckeditor/ckeditor5-utils": "^37.0.1",
+        "lodash-es": "^4.17.15"
+      },
+      "engines": {
+        "node": ">=16.0.0",
+        "npm": ">=5.7.1"
+      }
+    },
+    "node_modules/@ckeditor/ckeditor5-undo": {
+      "version": "37.0.1",
+      "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-undo/-/ckeditor5-undo-37.0.1.tgz",
+      "integrity": "sha512-L9DS13SznPLD6to6Fs+Br2Ui/yLsgKqkT1GPOdpGen/wkEa1DMLW890VAWhc17Voq/HLuA++TXXLDMRYd5moqg==",
+      "dependencies": {
+        "@ckeditor/ckeditor5-core": "^37.0.1",
+        "@ckeditor/ckeditor5-engine": "^37.0.1",
+        "@ckeditor/ckeditor5-ui": "^37.0.1"
+      },
+      "engines": {
+        "node": ">=16.0.0",
+        "npm": ">=5.7.1"
+      }
+    },
+    "node_modules/@ckeditor/ckeditor5-upload": {
+      "version": "37.0.1",
+      "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-upload/-/ckeditor5-upload-37.0.1.tgz",
+      "integrity": "sha512-TGH4FXxedBeO7QbwLcNDMM74swNtJ5BbkWiyEdryJom7y+AIqfqEg0DYeKJoIyQGe6ldiFU5Wm1VRBWZIDzQiQ==",
+      "dependencies": {
+        "@ckeditor/ckeditor5-core": "^37.0.1",
+        "@ckeditor/ckeditor5-ui": "^37.0.1",
+        "@ckeditor/ckeditor5-utils": "^37.0.1"
+      },
+      "engines": {
+        "node": ">=16.0.0",
+        "npm": ">=5.7.1"
+      }
+    },
+    "node_modules/@ckeditor/ckeditor5-utils": {
+      "version": "37.0.1",
+      "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-utils/-/ckeditor5-utils-37.0.1.tgz",
+      "integrity": "sha512-QMTHVbHNckDG9mCaFNjUhjlosxvyBPQ0fGlCyn9p+kHM7iEfP0a1Y63y9lg3n9bXDRYJ8k9Ms1G7xOZvYTBPNg==",
+      "dependencies": {
+        "lodash-es": "^4.17.15"
+      },
+      "engines": {
+        "node": ">=16.0.0",
+        "npm": ">=5.7.1"
+      }
+    },
+    "node_modules/@ckeditor/ckeditor5-watchdog": {
+      "version": "37.0.1",
+      "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-watchdog/-/ckeditor5-watchdog-37.0.1.tgz",
+      "integrity": "sha512-SWAsA9aDdc1s+24xFMRYJR3EpgWQLT/J0WYS1PdR5kmTA3YoYvIVXq20iPKyvFywiyNXNHQ5HOYJG2zPN0ACJw==",
+      "dependencies": {
+        "lodash-es": "^4.17.15"
+      },
+      "engines": {
+        "node": ">=16.0.0",
+        "npm": ">=5.7.1"
+      }
+    },
+    "node_modules/@ckeditor/ckeditor5-widget": {
+      "version": "37.0.1",
+      "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-widget/-/ckeditor5-widget-37.0.1.tgz",
+      "integrity": "sha512-seoDOhshGk5oG/FbFAux93hZOP9D+Iv3nNPZyYyKy1SOOkQ8Iv4WSQ9thoylLUubce62orVha8pBSxMndwRSaA==",
+      "dependencies": {
+        "@ckeditor/ckeditor5-core": "^37.0.1",
+        "@ckeditor/ckeditor5-engine": "^37.0.1",
+        "@ckeditor/ckeditor5-enter": "^37.0.1",
+        "@ckeditor/ckeditor5-typing": "^37.0.1",
+        "@ckeditor/ckeditor5-ui": "^37.0.1",
+        "@ckeditor/ckeditor5-utils": "^37.0.1",
+        "lodash-es": "^4.17.15"
+      },
+      "engines": {
+        "node": ">=16.0.0",
+        "npm": ">=5.7.1"
+      }
+    },
     "node_modules/@esbuild/android-arm": {
       "version": "0.17.14",
       "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.17.14.tgz",
         "node": ">= 8"
       }
     },
-    "node_modules/@types/ckeditor__ckeditor5-adapter-ckfinder": {
-      "version": "29.0.4",
-      "resolved": "https://registry.npmjs.org/@types/ckeditor__ckeditor5-adapter-ckfinder/-/ckeditor__ckeditor5-adapter-ckfinder-29.0.4.tgz",
-      "integrity": "sha512-baT+KeQG12qfu0iDu+TIy1BSM/OWzzvH8pTkSIckQhRwEt2mlW8jFNQMZGRi4kAmLabMoLvybiAn1yFDeepddw==",
-      "dependencies": {
-        "@types/ckeditor__ckeditor5-core": "*",
-        "@types/ckeditor__ckeditor5-upload": "*",
-        "@types/ckeditor__ckeditor5-utils": "*"
-      }
-    },
-    "node_modules/@types/ckeditor__ckeditor5-alignment": {
-      "version": "29.0.7",
-      "resolved": "https://registry.npmjs.org/@types/ckeditor__ckeditor5-alignment/-/ckeditor__ckeditor5-alignment-29.0.7.tgz",
-      "integrity": "sha512-tZIF0svmHOHIvbnFM074b2CySBKKQxxZG5Y41UFAvkIYxel4LTZmFV3uTbdDTmniLRIbG219vOXtWHOJ5INB/A==",
-      "dependencies": {
-        "@types/ckeditor__ckeditor5-core": "*",
-        "@types/ckeditor__ckeditor5-utils": "*"
-      }
-    },
-    "node_modules/@types/ckeditor__ckeditor5-autosave": {
-      "version": "32.0.0",
-      "resolved": "https://registry.npmjs.org/@types/ckeditor__ckeditor5-autosave/-/ckeditor__ckeditor5-autosave-32.0.0.tgz",
-      "integrity": "sha512-auGeVgBG4HLXwPTbHQSsfGZcItntaBuBQN8LSreZea0ur4SJ6NKfh25USqIIQs1DUWYMDPiK6ODwSn2mhyfJ2A==",
-      "dependencies": {
-        "@types/ckeditor__ckeditor5-core": "*"
-      }
-    },
-    "node_modules/@types/ckeditor__ckeditor5-ckfinder": {
-      "version": "29.0.3",
-      "resolved": "https://registry.npmjs.org/@types/ckeditor__ckeditor5-ckfinder/-/ckeditor__ckeditor5-ckfinder-29.0.3.tgz",
-      "integrity": "sha512-RQVFIg/RrJzaA19FHD9Qzzl36sVUyyqY9ozWhEUWAmlKMUZW0MQBBtMN3vX5dZ81JtOaPVcwklNAa2yw6dqlkg==",
-      "dependencies": {
-        "@types/ckeditor__ckeditor5-adapter-ckfinder": "*",
-        "@types/ckeditor__ckeditor5-core": "*",
-        "@types/ckeditor__ckeditor5-link": "*",
-        "@types/ckeditor__ckeditor5-ui": "*"
-      }
-    },
-    "node_modules/@types/ckeditor__ckeditor5-clipboard": {
-      "version": "29.0.5",
-      "resolved": "https://registry.npmjs.org/@types/ckeditor__ckeditor5-clipboard/-/ckeditor__ckeditor5-clipboard-29.0.5.tgz",
-      "integrity": "sha512-AN7iniYu2C417LRNuOBIirBokStvPwXm/NG72o9Ivfn0/i7J0VZiJ8KGp7Wmvrcg/bhFYfZsTbEOVW2c/59Rjg==",
-      "dependencies": {
-        "@types/ckeditor__ckeditor5-core": "*",
-        "@types/ckeditor__ckeditor5-engine": "*",
-        "@types/ckeditor__ckeditor5-widget": "*"
-      }
-    },
-    "node_modules/@types/ckeditor__ckeditor5-cloud-services": {
-      "version": "29.0.4",
-      "resolved": "https://registry.npmjs.org/@types/ckeditor__ckeditor5-cloud-services/-/ckeditor__ckeditor5-cloud-services-29.0.4.tgz",
-      "integrity": "sha512-fZOj+HBQbGFJg3SwUYqfdIQtFNnG2U2OCWkKDCIzUuejkdSeicF8P5GLSyNuDP0nTDdQMBqEWgzljqLZkJnkHg==",
-      "dependencies": {
-        "@types/ckeditor__ckeditor5-core": "*",
-        "@types/ckeditor__ckeditor5-utils": "*"
-      }
-    },
-    "node_modules/@types/ckeditor__ckeditor5-code-block": {
-      "version": "29.0.3",
-      "resolved": "https://registry.npmjs.org/@types/ckeditor__ckeditor5-code-block/-/ckeditor__ckeditor5-code-block-29.0.3.tgz",
-      "integrity": "sha512-x3D3B8I21za6VShc3twNRzKBN4+1+pOrsXhb+TPgQLG2Q9oeRgPXhaHMhdXGAGebMWhdFlPs0lTNsQTCVjXm6A==",
-      "dependencies": {
-        "@types/ckeditor__ckeditor5-core": "*",
-        "@types/ckeditor__ckeditor5-engine": "*",
-        "@types/ckeditor__ckeditor5-enter": "*",
-        "@types/ckeditor__ckeditor5-utils": "*"
-      }
-    },
-    "node_modules/@types/ckeditor__ckeditor5-collaboration-core": {
-      "version": "27.1.2",
-      "resolved": "https://registry.npmjs.org/@types/ckeditor__ckeditor5-collaboration-core/-/ckeditor__ckeditor5-collaboration-core-27.1.2.tgz",
-      "integrity": "sha512-g0AKoJw820i/Biho6S9qYH1SaedjXr2P/gmnqO3k8/6HWiIMALaGDUkMgYvQC5nr+ZXIzLtv04Y0eb/9H1W3DQ==",
-      "dependencies": {
-        "@types/ckeditor__ckeditor5-engine": "*",
-        "@types/ckeditor__ckeditor5-utils": "*"
-      }
-    },
-    "node_modules/@types/ckeditor__ckeditor5-core": {
-      "version": "33.0.3",
-      "resolved": "https://registry.npmjs.org/@types/ckeditor__ckeditor5-core/-/ckeditor__ckeditor5-core-33.0.3.tgz",
-      "integrity": "sha512-mVaU5+faOZ/2eR2jZb26H0JLqHLV/4a/p1/t7K9l8j5fMWTcubE5FRifjCk/TowazNW+/xcgRinyFnnUtNFUTQ==",
-      "dependencies": {
-        "@types/ckeditor__ckeditor5-alignment": "*",
-        "@types/ckeditor__ckeditor5-autosave": "*",
-        "@types/ckeditor__ckeditor5-ckfinder": "*",
-        "@types/ckeditor__ckeditor5-cloud-services": "*",
-        "@types/ckeditor__ckeditor5-code-block": "*",
-        "@types/ckeditor__ckeditor5-engine": "*",
-        "@types/ckeditor__ckeditor5-export-pdf": "*",
-        "@types/ckeditor__ckeditor5-export-word": "*",
-        "@types/ckeditor__ckeditor5-font": "*",
-        "@types/ckeditor__ckeditor5-heading": "*",
-        "@types/ckeditor__ckeditor5-highlight": "*",
-        "@types/ckeditor__ckeditor5-image": "*",
-        "@types/ckeditor__ckeditor5-indent": "*",
-        "@types/ckeditor__ckeditor5-language": "*",
-        "@types/ckeditor__ckeditor5-link": "*",
-        "@types/ckeditor__ckeditor5-media-embed": "*",
-        "@types/ckeditor__ckeditor5-mention": "*",
-        "@types/ckeditor__ckeditor5-minimap": "*",
-        "@types/ckeditor__ckeditor5-pagination": "*",
-        "@types/ckeditor__ckeditor5-real-time-collaboration": "*",
-        "@types/ckeditor__ckeditor5-restricted-editing": "*",
-        "@types/ckeditor__ckeditor5-table": "*",
-        "@types/ckeditor__ckeditor5-track-changes": "*",
-        "@types/ckeditor__ckeditor5-typing": "*",
-        "@types/ckeditor__ckeditor5-ui": "*",
-        "@types/ckeditor__ckeditor5-upload": "*",
-        "@types/ckeditor__ckeditor5-utils": "*",
-        "@types/ckeditor__ckeditor5-word-count": "*"
-      }
-    },
-    "node_modules/@types/ckeditor__ckeditor5-editor-classic": {
-      "version": "27.1.2",
-      "resolved": "https://registry.npmjs.org/@types/ckeditor__ckeditor5-editor-classic/-/ckeditor__ckeditor5-editor-classic-27.1.2.tgz",
-      "integrity": "sha512-Xrxav0Bq+rxr/H//nK4+n9o0GpHHMJpfe96wAm4EbjTI5mbBQYH5mCZmKdU8JzQTq6DUF8w9D92RIShqx0rvLw==",
-      "dependencies": {
-        "@types/ckeditor__ckeditor5-core": "*",
-        "@types/ckeditor__ckeditor5-engine": "*",
-        "@types/ckeditor__ckeditor5-ui": "*",
-        "@types/ckeditor__ckeditor5-utils": "*"
-      }
-    },
-    "node_modules/@types/ckeditor__ckeditor5-engine": {
-      "version": "32.0.11",
-      "resolved": "https://registry.npmjs.org/@types/ckeditor__ckeditor5-engine/-/ckeditor__ckeditor5-engine-32.0.11.tgz",
-      "integrity": "sha512-mjP5DE+VvVdUqgn9SL1qTr5HRouG6xj+hiFu4Hzz3HWLLBaCEfK6dPUTc6/QM/nMNlNl8Ux9551qCYMoKanzvw==",
-      "dependencies": {
-        "@types/ckeditor__ckeditor5-engine": "*",
-        "@types/ckeditor__ckeditor5-utils": "*"
-      }
-    },
-    "node_modules/@types/ckeditor__ckeditor5-enter": {
-      "version": "27.0.3",
-      "resolved": "https://registry.npmjs.org/@types/ckeditor__ckeditor5-enter/-/ckeditor__ckeditor5-enter-27.0.3.tgz",
-      "integrity": "sha512-qFv9QXk/kXkHQaS748FnO+XZoLOp34x25hOWpOFgBGbrfSZxJ6rYE+vk6BbX+b7sakj7glMctYeitNfGRMcVDQ==",
-      "dependencies": {
-        "@types/ckeditor__ckeditor5-core": "*",
-        "@types/ckeditor__ckeditor5-engine": "*"
-      }
-    },
-    "node_modules/@types/ckeditor__ckeditor5-export-pdf": {
-      "version": "31.0.0",
-      "resolved": "https://registry.npmjs.org/@types/ckeditor__ckeditor5-export-pdf/-/ckeditor__ckeditor5-export-pdf-31.0.0.tgz",
-      "integrity": "sha512-ZQdL2eI/zpPtmMB8Qd5VHqvDx8VNsnCs4SPMWgSG1lrwC7tM0cnyLkCcVxHQYcvZIlihzEF/QJJ+AV9waxT9Pg==",
-      "dependencies": {
-        "@types/ckeditor__ckeditor5-core": "*",
-        "@types/ckeditor__ckeditor5-utils": "*"
-      }
-    },
-    "node_modules/@types/ckeditor__ckeditor5-export-word": {
-      "version": "27.0.4",
-      "resolved": "https://registry.npmjs.org/@types/ckeditor__ckeditor5-export-word/-/ckeditor__ckeditor5-export-word-27.0.4.tgz",
-      "integrity": "sha512-2cpRFCsTHUh3xlbr3IdqfxhRs2AnfvViT0qekhk3SnP9VsUBiqN9CPcgGkBvk3huv30w5kiIpT2UH8l1Ff5Biw==",
-      "dependencies": {
-        "@types/ckeditor__ckeditor5-core": "*",
-        "@types/ckeditor__ckeditor5-utils": "*"
-      }
-    },
-    "node_modules/@types/ckeditor__ckeditor5-font": {
-      "version": "33.0.1",
-      "resolved": "https://registry.npmjs.org/@types/ckeditor__ckeditor5-font/-/ckeditor__ckeditor5-font-33.0.1.tgz",
-      "integrity": "sha512-Hllu+akGhKWRtdahWqkewbmRV4DwPxuXjYzjlvqKoPMNst6UcBOYxeLR/HKoIqI4bn4Vc/p7mZvzKJs0R7CNGw==",
-      "dependencies": {
-        "@types/ckeditor__ckeditor5-core": "*",
-        "@types/ckeditor__ckeditor5-engine": "*",
-        "@types/ckeditor__ckeditor5-ui": "*",
-        "@types/ckeditor__ckeditor5-utils": "*"
-      }
-    },
-    "node_modules/@types/ckeditor__ckeditor5-heading": {
-      "version": "29.0.3",
-      "resolved": "https://registry.npmjs.org/@types/ckeditor__ckeditor5-heading/-/ckeditor__ckeditor5-heading-29.0.3.tgz",
-      "integrity": "sha512-GfitzATatW4/ZJZ10VFI2OU1nG+r+c7JDHC/s/+9NzkqAyOEd8XTScAX0Sape+vqoNvnMUSAHNa03/ktAjDIqQ==",
-      "dependencies": {
-        "@types/ckeditor__ckeditor5-core": "*",
-        "@types/ckeditor__ckeditor5-engine": "*",
-        "@types/ckeditor__ckeditor5-paragraph": "*"
-      }
-    },
-    "node_modules/@types/ckeditor__ckeditor5-highlight": {
-      "version": "29.0.3",
-      "resolved": "https://registry.npmjs.org/@types/ckeditor__ckeditor5-highlight/-/ckeditor__ckeditor5-highlight-29.0.3.tgz",
-      "integrity": "sha512-Akq45EwzdI/egK/5YpKkoyYkEvq0w1EaBZMNOaKn8HaNFmhI2mQPwNzGHfEjbGDpKalI9cNTo0ImvqcqNgF+hg==",
-      "dependencies": {
-        "@types/ckeditor__ckeditor5-core": "*"
-      }
-    },
-    "node_modules/@types/ckeditor__ckeditor5-image": {
-      "version": "33.0.0",
-      "resolved": "https://registry.npmjs.org/@types/ckeditor__ckeditor5-image/-/ckeditor__ckeditor5-image-33.0.0.tgz",
-      "integrity": "sha512-rEu93lPml8CuG8UesJa3BBH6Bi84eskeHXgH5kXCPi+lGQvhHd3VrNWa6XgihnO4Z/60i4IYhW48vdWZJ/Iv/A==",
-      "dependencies": {
-        "@types/ckeditor__ckeditor5-clipboard": "*",
-        "@types/ckeditor__ckeditor5-core": "*",
-        "@types/ckeditor__ckeditor5-engine": "*",
-        "@types/ckeditor__ckeditor5-image": "*",
-        "@types/ckeditor__ckeditor5-typing": "*",
-        "@types/ckeditor__ckeditor5-ui": "*",
-        "@types/ckeditor__ckeditor5-undo": "*",
-        "@types/ckeditor__ckeditor5-upload": "*",
-        "@types/ckeditor__ckeditor5-utils": "*",
-        "@types/ckeditor__ckeditor5-widget": "*"
-      }
-    },
-    "node_modules/@types/ckeditor__ckeditor5-indent": {
-      "version": "29.0.3",
-      "resolved": "https://registry.npmjs.org/@types/ckeditor__ckeditor5-indent/-/ckeditor__ckeditor5-indent-29.0.3.tgz",
-      "integrity": "sha512-ijVRz3hVR+KT4AmaHxOIyFd/Wi+XLtf5zDQuHP1DMAYgwudj6VGTfFl4vpebFB5wrWeY8EzkJZO1KsRlI21QdA==",
-      "dependencies": {
-        "@types/ckeditor__ckeditor5-core": "*"
-      }
-    },
-    "node_modules/@types/ckeditor__ckeditor5-language": {
-      "version": "32.0.0",
-      "resolved": "https://registry.npmjs.org/@types/ckeditor__ckeditor5-language/-/ckeditor__ckeditor5-language-32.0.0.tgz",
-      "integrity": "sha512-8vd0nRXXZgV5oUF0g6DdBfwWAj3KlQGjpMgxgp6cXBQJ86fINCyyGpqpSmd5L4iSrJHAN3OfQaKLlh9PHLcCVQ==",
-      "dependencies": {
-        "@types/ckeditor__ckeditor5-core": "*"
-      }
-    },
-    "node_modules/@types/ckeditor__ckeditor5-link": {
-      "version": "32.0.4",
-      "resolved": "https://registry.npmjs.org/@types/ckeditor__ckeditor5-link/-/ckeditor__ckeditor5-link-32.0.4.tgz",
-      "integrity": "sha512-ElABiBSynJvNpJ6kFSrOKfhtmVYUv7i158akP5VBnvI744hmvM3vl8D3Jjfj+/xKBFkHpJG9YN9XA0BSr+sOqA==",
-      "dependencies": {
-        "@types/ckeditor__ckeditor5-clipboard": "*",
-        "@types/ckeditor__ckeditor5-core": "*",
-        "@types/ckeditor__ckeditor5-engine": "*",
-        "@types/ckeditor__ckeditor5-image": "*",
-        "@types/ckeditor__ckeditor5-typing": "*",
-        "@types/ckeditor__ckeditor5-ui": "*",
-        "@types/ckeditor__ckeditor5-utils": "*"
-      }
-    },
-    "node_modules/@types/ckeditor__ckeditor5-media-embed": {
-      "version": "29.0.3",
-      "resolved": "https://registry.npmjs.org/@types/ckeditor__ckeditor5-media-embed/-/ckeditor__ckeditor5-media-embed-29.0.3.tgz",
-      "integrity": "sha512-Z1EAZ/s04KTh+MJHZ2Xj2ugwX8lOBmlga7BWdzO4/HkJVeNzozWjp4Kxj9bxVr3GA+EaGWS6MHqgnhtN4gqhfg==",
-      "dependencies": {
-        "@types/ckeditor__ckeditor5-clipboard": "*",
-        "@types/ckeditor__ckeditor5-core": "*",
-        "@types/ckeditor__ckeditor5-engine": "*",
-        "@types/ckeditor__ckeditor5-typing": "*",
-        "@types/ckeditor__ckeditor5-ui": "*",
-        "@types/ckeditor__ckeditor5-undo": "*",
-        "@types/ckeditor__ckeditor5-utils": "*",
-        "@types/ckeditor__ckeditor5-widget": "*"
-      }
-    },
-    "node_modules/@types/ckeditor__ckeditor5-mention": {
-      "version": "31.0.0",
-      "resolved": "https://registry.npmjs.org/@types/ckeditor__ckeditor5-mention/-/ckeditor__ckeditor5-mention-31.0.0.tgz",
-      "integrity": "sha512-V2Xq+OrpegeKK6lWaJkpKLZNgW/nLZPhRl6p1rirKsEyVpxxjFO3qSZr3Byb7lxeRkyVLgR23hVgcvt8vfb5AQ==",
-      "dependencies": {
-        "@types/ckeditor__ckeditor5-core": "*",
-        "@types/ckeditor__ckeditor5-engine": "*",
-        "@types/ckeditor__ckeditor5-ui": "*",
-        "@types/ckeditor__ckeditor5-utils": "*"
-      }
-    },
-    "node_modules/@types/ckeditor__ckeditor5-minimap": {
-      "version": "33.0.0",
-      "resolved": "https://registry.npmjs.org/@types/ckeditor__ckeditor5-minimap/-/ckeditor__ckeditor5-minimap-33.0.0.tgz",
-      "integrity": "sha512-XLu/QyyWVMzQseSqo/hQDWoBKzpZS83pXUwUmJcnXoK+lxaxuh8hYxY8W9qY5vrhh2IHocyrNnjMsLJLtu9FTA==",
-      "dependencies": {
-        "@types/ckeditor__ckeditor5-core": "*",
-        "@types/ckeditor__ckeditor5-ui": "*",
-        "@types/ckeditor__ckeditor5-utils": "*"
-      }
-    },
-    "node_modules/@types/ckeditor__ckeditor5-pagination": {
-      "version": "27.0.3",
-      "resolved": "https://registry.npmjs.org/@types/ckeditor__ckeditor5-pagination/-/ckeditor__ckeditor5-pagination-27.0.3.tgz",
-      "integrity": "sha512-2kyuvQyyi30aZbZHCh0wGpSVp9Q+v5N5AvEHAuSvj6/GOmPRdxK4YyAK/aO3FapUb3bxgvQilyIdA6JtIx1inQ==",
-      "dependencies": {
-        "@types/ckeditor__ckeditor5-core": "*"
-      }
-    },
-    "node_modules/@types/ckeditor__ckeditor5-paragraph": {
-      "version": "27.0.5",
-      "resolved": "https://registry.npmjs.org/@types/ckeditor__ckeditor5-paragraph/-/ckeditor__ckeditor5-paragraph-27.0.5.tgz",
-      "integrity": "sha512-Clevh7N4G15uFZky505TIM+9qYh9Qwf1oULyh9ntsCxDUNMpqhbmRjC/9J+qcTNLLZ1xppEs75r3ejM01ZkcQg==",
-      "dependencies": {
-        "@types/ckeditor__ckeditor5-core": "*",
-        "@types/ckeditor__ckeditor5-engine": "*"
-      }
-    },
-    "node_modules/@types/ckeditor__ckeditor5-real-time-collaboration": {
-      "version": "32.0.0",
-      "resolved": "https://registry.npmjs.org/@types/ckeditor__ckeditor5-real-time-collaboration/-/ckeditor__ckeditor5-real-time-collaboration-32.0.0.tgz",
-      "integrity": "sha512-u93DiYz2Q2+0ILR4srrmabWYlBx1LTcEusSbE7ylvQrcTs4qmgWlio81FyEMEtn9G5hG4kqH/WN0WfhHjWoFTQ==",
-      "dependencies": {
-        "@types/ckeditor__ckeditor5-collaboration-core": "*",
-        "@types/ckeditor__ckeditor5-core": "*",
-        "@types/ckeditor__ckeditor5-engine": "*",
-        "@types/ckeditor__ckeditor5-utils": "*"
-      }
-    },
-    "node_modules/@types/ckeditor__ckeditor5-restricted-editing": {
-      "version": "32.0.0",
-      "resolved": "https://registry.npmjs.org/@types/ckeditor__ckeditor5-restricted-editing/-/ckeditor__ckeditor5-restricted-editing-32.0.0.tgz",
-      "integrity": "sha512-FCOqLUbMxHBaghkXuVHl6hJy9VmimlEXPiMSHeK1jmjq3prsCvavup31Ps+zhwPlo0Bd7aS7GBdUJPGuYkYP9w==",
-      "dependencies": {
-        "@types/ckeditor__ckeditor5-core": "*",
-        "@types/ckeditor__ckeditor5-engine": "*",
-        "@types/ckeditor__ckeditor5-utils": "*"
-      }
-    },
-    "node_modules/@types/ckeditor__ckeditor5-table": {
-      "version": "33.0.0",
-      "resolved": "https://registry.npmjs.org/@types/ckeditor__ckeditor5-table/-/ckeditor__ckeditor5-table-33.0.0.tgz",
-      "integrity": "sha512-a711hMOd4u/zqP/dTvEoP/bpnKLxfRasaZtiv3kepIAYub2Acz5ZOi9Gha71sWRwGK3Jeq+4q8gPuNJHYSRttQ==",
-      "dependencies": {
-        "@types/ckeditor__ckeditor5-core": "*",
-        "@types/ckeditor__ckeditor5-engine": "*",
-        "@types/ckeditor__ckeditor5-ui": "*",
-        "@types/ckeditor__ckeditor5-utils": "*",
-        "@types/ckeditor__ckeditor5-widget": "*"
-      }
-    },
-    "node_modules/@types/ckeditor__ckeditor5-track-changes": {
-      "version": "32.0.0",
-      "resolved": "https://registry.npmjs.org/@types/ckeditor__ckeditor5-track-changes/-/ckeditor__ckeditor5-track-changes-32.0.0.tgz",
-      "integrity": "sha512-fFe+Tnni2BzrnOYD46zSkAf/StCSAaClN+lILHlWGBKo1xMod1T+hcsrnPkVrFwYSlXraDIvJIEeArrXYCKGnA==",
-      "dependencies": {
-        "@types/ckeditor__ckeditor5-collaboration-core": "*",
-        "@types/ckeditor__ckeditor5-core": "*",
-        "@types/ckeditor__ckeditor5-engine": "*",
-        "@types/ckeditor__ckeditor5-ui": "*",
-        "@types/ckeditor__ckeditor5-utils": "*"
-      }
-    },
-    "node_modules/@types/ckeditor__ckeditor5-typing": {
-      "version": "32.0.1",
-      "resolved": "https://registry.npmjs.org/@types/ckeditor__ckeditor5-typing/-/ckeditor__ckeditor5-typing-32.0.1.tgz",
-      "integrity": "sha512-DskFBdfcUACpxVjhdpZTCD8H3gnG/zu08kWyT6TczuBJEXTRoCfX/lZ0Dh7sd20/dxow21pLC4V9Uv/yNUquBA==",
-      "dependencies": {
-        "@types/ckeditor__ckeditor5-core": "*",
-        "@types/ckeditor__ckeditor5-engine": "*",
-        "@types/ckeditor__ckeditor5-utils": "*"
-      }
-    },
-    "node_modules/@types/ckeditor__ckeditor5-ui": {
-      "version": "32.0.2",
-      "resolved": "https://registry.npmjs.org/@types/ckeditor__ckeditor5-ui/-/ckeditor__ckeditor5-ui-32.0.2.tgz",
-      "integrity": "sha512-0cAaEtXB+i8jnSQMVB50LqI91gJkmG8AnFsowpRPJczsnakMNYTlV+cEhPMe2RbwWxScler0jLmUNsbEORZOTw==",
-      "dependencies": {
-        "@types/ckeditor__ckeditor5-core": "*",
-        "@types/ckeditor__ckeditor5-engine": "*",
-        "@types/ckeditor__ckeditor5-ui": "*",
-        "@types/ckeditor__ckeditor5-utils": "*"
-      }
-    },
-    "node_modules/@types/ckeditor__ckeditor5-undo": {
-      "version": "27.0.3",
-      "resolved": "https://registry.npmjs.org/@types/ckeditor__ckeditor5-undo/-/ckeditor__ckeditor5-undo-27.0.3.tgz",
-      "integrity": "sha512-UpbmO0V82XvoVsnIjdM1Cb9RE9lB9vxGYKkQUzGwtw4wZbMb1A+CMIYkZIXO3aNs6x42F562ymFpjjkHBzgLHA==",
-      "dependencies": {
-        "@types/ckeditor__ckeditor5-core": "*",
-        "@types/ckeditor__ckeditor5-engine": "*"
-      }
-    },
-    "node_modules/@types/ckeditor__ckeditor5-upload": {
-      "version": "27.0.7",
-      "resolved": "https://registry.npmjs.org/@types/ckeditor__ckeditor5-upload/-/ckeditor__ckeditor5-upload-27.0.7.tgz",
-      "integrity": "sha512-E8ubVL/94RX4qQe5M7OmSEmH1sTRfz0cwSmfe/vRlTedzM5pzwczXXMYzbnbz28UzOmraOS0Zgq+9WVBcPHJ6Q==",
-      "dependencies": {
-        "@types/ckeditor__ckeditor5-core": "*",
-        "@types/ckeditor__ckeditor5-ui": "*",
-        "@types/ckeditor__ckeditor5-utils": "*"
-      }
-    },
-    "node_modules/@types/ckeditor__ckeditor5-utils": {
-      "version": "28.0.15",
-      "resolved": "https://registry.npmjs.org/@types/ckeditor__ckeditor5-utils/-/ckeditor__ckeditor5-utils-28.0.15.tgz",
-      "integrity": "sha512-3cLoE8OyqnJHIz6WER6Cm+jeK+5tkrTE5hDYabYswXuc7Oln43uGnk0oim000wXGtkkipEqWqtfFLRjP5OrdZQ==",
-      "dependencies": {
-        "@types/ckeditor__ckeditor5-core": "*",
-        "@types/ckeditor__ckeditor5-engine": "*"
-      }
-    },
-    "node_modules/@types/ckeditor__ckeditor5-widget": {
-      "version": "33.0.1",
-      "resolved": "https://registry.npmjs.org/@types/ckeditor__ckeditor5-widget/-/ckeditor__ckeditor5-widget-33.0.1.tgz",
-      "integrity": "sha512-dHhFdVj2LFo0nCYJOYB5hohZiJNrkI0xICBBejbnzHxzyjxgYpaUoOKsItjxl49DeCdEJ82DU9Wu/cpmTJyCKw==",
-      "dependencies": {
-        "@types/ckeditor__ckeditor5-core": "*",
-        "@types/ckeditor__ckeditor5-engine": "*",
-        "@types/ckeditor__ckeditor5-enter": "*",
-        "@types/ckeditor__ckeditor5-typing": "*",
-        "@types/ckeditor__ckeditor5-ui": "*",
-        "@types/ckeditor__ckeditor5-utils": "*"
-      }
-    },
-    "node_modules/@types/ckeditor__ckeditor5-word-count": {
-      "version": "29.0.2",
-      "resolved": "https://registry.npmjs.org/@types/ckeditor__ckeditor5-word-count/-/ckeditor__ckeditor5-word-count-29.0.2.tgz",
-      "integrity": "sha512-eZ9NwCtTsWOLtNYxLfNvBLx6DfcPgYh4+2p9508zQbQ4x9jMOgs9Vx4tGbFVM501eIGCp4g1XjobbWGuBJqpMA==",
-      "dependencies": {
-        "@types/ckeditor__ckeditor5-core": "*",
-        "@types/ckeditor__ckeditor5-engine": "*"
-      }
-    },
     "node_modules/@types/facebook-js-sdk": {
       "version": "3.3.6",
       "resolved": "https://registry.npmjs.org/@types/facebook-js-sdk/-/facebook-js-sdk-3.3.6.tgz",
         "url": "https://github.com/chalk/chalk?sponsor=1"
       }
     },
+    "node_modules/ckeditor5": {
+      "version": "37.0.1",
+      "resolved": "https://registry.npmjs.org/ckeditor5/-/ckeditor5-37.0.1.tgz",
+      "integrity": "sha512-R/yuGQ0TBH+ZeCpglhH4LafAcEs5qKlvKEAhumrVJkkEzuWC/nyvOW+5IvSmBvtzghQ1ostxtNyEMQB3/HcwhA==",
+      "dependencies": {
+        "@ckeditor/ckeditor5-clipboard": "^37.0.1",
+        "@ckeditor/ckeditor5-core": "^37.0.1",
+        "@ckeditor/ckeditor5-engine": "^37.0.1",
+        "@ckeditor/ckeditor5-enter": "^37.0.1",
+        "@ckeditor/ckeditor5-paragraph": "^37.0.1",
+        "@ckeditor/ckeditor5-select-all": "^37.0.1",
+        "@ckeditor/ckeditor5-typing": "^37.0.1",
+        "@ckeditor/ckeditor5-ui": "^37.0.1",
+        "@ckeditor/ckeditor5-undo": "^37.0.1",
+        "@ckeditor/ckeditor5-upload": "^37.0.1",
+        "@ckeditor/ckeditor5-utils": "^37.0.1",
+        "@ckeditor/ckeditor5-watchdog": "^37.0.1",
+        "@ckeditor/ckeditor5-widget": "^37.0.1"
+      },
+      "engines": {
+        "node": ">=16.0.0",
+        "npm": ">=5.7.1"
+      }
+    },
     "node_modules/color-convert": {
       "version": "2.0.1",
       "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
         "url": "https://github.com/sponsors/sindresorhus"
       }
     },
+    "node_modules/lodash-es": {
+      "version": "4.17.21",
+      "resolved": "https://registry.npmjs.org/lodash-es/-/lodash-es-4.17.21.tgz",
+      "integrity": "sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw=="
+    },
     "node_modules/lodash.merge": {
       "version": "4.6.2",
       "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz",
index e2f15ec552e9620720deaa9a8ed1b19b2f8da901..686460666db365e85e70793bbb92c3c5530d51b2 100644 (file)
     "typescript": "^5.0.2"
   },
   "dependencies": {
+    "@ckeditor/ckeditor5-autosave": "^37.0.1",
+    "@ckeditor/ckeditor5-core": "^37.0.1",
+    "@ckeditor/ckeditor5-editor-classic": "^37.0.1",
     "@ckeditor/ckeditor5-inspector": "^4.1.0",
+    "@ckeditor/ckeditor5-mention": "^37.0.1",
     "@googlemaps/markerclusterer": "^2.0.15",
-    "@types/ckeditor__ckeditor5-core": "^33.0.3",
-    "@types/ckeditor__ckeditor5-editor-classic": "^27.1.2",
     "@types/facebook-js-sdk": "^3.3.6",
     "@types/google.maps": "^3.51.1",
     "@types/jquery": "^3.5.14",
index f7c21f7f0f1a307751c48beda1ae5422022ecee7..784d109ceed6d2f7465ab8a1b7100986fe8d43b2 100644 (file)
@@ -22,9 +22,7 @@ import { dispatchToCkeditor } from "./Ckeditor/Event";
 import { setup as setupSubmitOnEnter } from "./Ckeditor/SubmitOnEnter";
 import Devtools from "../Devtools";
 
-import type ClassicEditor from "@ckeditor/ckeditor5-editor-classic/src/classiceditor";
-import type { EditorConfig } from "@ckeditor/ckeditor5-core/src/editor/editorconfig";
-import type CkeElement from "@ckeditor/ckeditor5-engine/src/model/element";
+import { ClassicEditor, EditorConfig, Element as CkeElement } from "./Ckeditor/Types";
 
 import "ckeditor5-bundle";
 
@@ -39,10 +37,10 @@ class Ckeditor {
     this.#features = features;
   }
 
-  destroy(): Promise<void> {
+  async destroy(): Promise<void> {
     dispatchToCkeditor(this.sourceElement).destroy();
 
-    return this.#editor.destroy();
+    await this.#editor.destroy();
   }
 
   discardDraft(): void {
index 7af3745d5592166a4a597ea8b73c0410fd27a401..f0cd9c5f3ee3e7ced1a6678348955404e5287c83 100644 (file)
@@ -12,8 +12,7 @@ import { getStoragePrefix } from "../../Core";
 import { getPhrase } from "../../Language";
 import { escapeHTML } from "../../StringUtil";
 
-import type ClassicEditor from "@ckeditor/ckeditor5-editor-classic/src/classiceditor";
-import type { EditorConfig } from "@ckeditor/ckeditor5-core/src/editor/editorconfig";
+import type { ClassicEditor, EditorConfig } from "./Types";
 import { dispatchToCkeditor } from "./Event";
 
 type Payload = {
index 41c112dbe4fed2fb4248544eaa7593b1e212b946..cdb871fcbb5b9db63d715fa94d370e09905bee38 100644 (file)
@@ -9,7 +9,7 @@
 
 import { getPhrase } from "../../Language";
 
-import type { EditorConfig } from "@ckeditor/ckeditor5-core/src/editor/editorconfig";
+import type { EditorConfig } from "./Types";
 
 // The typings for CKEditor’s toolbar are outdated.
 type ToolbarItem = string | { label: string; icon?: string; items: string[] };
index 9663087b3e6c3a6297d057e74d159d8a4179112e..3fc53568b3c55e68d89058487f948596262aefcd 100644 (file)
@@ -9,7 +9,7 @@
  */
 
 import type { CKEditor } from "../Ckeditor";
-import type { EditorConfig } from "@ckeditor/ckeditor5-core/src/editor/editorconfig";
+import type { EditorConfig } from "./Types";
 import type { Features } from "./Configuration";
 import type { InsertAttachmentPayload, RemoveAttachmentPayload, UploadAttachmentEventPayload } from "./Attachment";
 import type { UploadMediaEventPayload } from "./Media";
index 44ee0eed43a75f804c55f7b7220da80c0895d15e..6dd999b309fc828b66e680298a4c55965e507550 100644 (file)
@@ -10,8 +10,8 @@
 import { prepareRequest } from "../../Ajax/Backend";
 import { createFragmentFromHtml } from "../../Dom/Util";
 
-import type { MentionConfig } from "@ckeditor/ckeditor5-mention/src/mention";
 import { listenToCkeditor } from "./Event";
+import { EditorConfig } from "./Types";
 
 type SearchResultItem = {
   avatarTag: string;
@@ -49,7 +49,7 @@ async function getPossibleMentions(query: string): Promise<UserMention[]> {
   });
 }
 
-function getMentionConfiguration(): MentionConfig {
+function getMentionConfiguration(): EditorConfig["mention"] {
   return {
     feeds: [
       {
index b0f61bad1b1195c34f7539195a990631898ef76b..7e08fd095cbd5a3d43015f53e78205bd3c16ab14 100644 (file)
@@ -12,7 +12,7 @@
 import { dispatchToCkeditor } from "./Event";
 
 import type { CKEditor } from "../Ckeditor";
-import type ClassicEditor from "@ckeditor/ckeditor5-editor-classic/src/classiceditor";
+import type { ClassicEditor } from "./Types";
 
 export function setup(editor: ClassicEditor, ckeditor: CKEditor): void {
   editor.editing.view.document.on(
diff --git a/ts/WoltLabSuite/Core/Component/Ckeditor/Types.ts b/ts/WoltLabSuite/Core/Component/Ckeditor/Types.ts
new file mode 100644 (file)
index 0000000..d58d208
--- /dev/null
@@ -0,0 +1,6 @@
+export type { ClassicEditor } from "@ckeditor/ckeditor5-editor-classic";
+export type { EditorConfig } from "@ckeditor/ckeditor5-core";
+export type { Element } from "@ckeditor/ckeditor5-engine";
+
+import "@ckeditor/ckeditor5-autosave";
+import "@ckeditor/ckeditor5-mention";
index c2eba8e602c8745fcee788a48e2535ecf5562f62..3dd2f28d6b6f2e950b136f0c303f62360216324c 100644 (file)
@@ -9,8 +9,7 @@ import { Reaction } from "WoltLabSuite/Core/Ui/Reaction/Data";
 import type WoltlabCoreDialogElement from "WoltLabSuite/Core/Element/woltlab-core-dialog";
 import type WoltlabCoreDialogControlElement from "WoltLabSuite/Core/Element/woltlab-core-dialog-control";
 import type WoltlabCoreGoogleMapsElement from "WoltLabSuite/Core/Component/GoogleMaps/woltlab-core-google-maps";
-import type ClassicEditor from "@ckeditor/ckeditor5-editor-classic/src/classiceditor";
-import type { EditorConfig } from "@ckeditor/ckeditor5-core/src/editor/editorconfig";
+import type { ClassicEditor, EditorConfig } from "WoltLabSuite/Core/Component/Ckeditor/Types";
 
 type Codepoint = string;
 type HasRegularVariant = boolean;
index 9392572db39bd30d35d63fa2f7b9fc909f59d758..836fee2c0c6624734b4204ee98d010aa1358821e 100644 (file)
@@ -24,9 +24,9 @@ define(["require", "exports", "tslib", "./Ckeditor/Attachment", "./Ckeditor/Medi
             this.#editor = editor;
             this.#features = features;
         }
-        destroy() {
+        async destroy() {
             (0, Event_1.dispatchToCkeditor)(this.sourceElement).destroy();
-            return this.#editor.destroy();
+            await this.#editor.destroy();
         }
         discardDraft() {
             if (this.#features.autosave) {
diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Component/Ckeditor/Types.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Component/Ckeditor/Types.js
new file mode 100644 (file)
index 0000000..1aa7d88
--- /dev/null
@@ -0,0 +1,4 @@
+define(["require", "exports", "@ckeditor/ckeditor5-autosave", "@ckeditor/ckeditor5-mention"], function (require, exports) {
+    "use strict";
+    Object.defineProperty(exports, "__esModule", { value: true });
+});