Skip to content

Commit 17edcf1

Browse files
committed
Define the emoji datasource url
1 parent 940bdfe commit 17edcf1

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

ts/WoltLabSuite/Core/Component/Ckeditor/Configuration.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
import type { CKEditor5 } from "@woltlab/editor";
1212
import { getPhrase } from "../../Language";
13+
import { getDataSource } from "WoltLabSuite/Core/Component/EmojiPicker/Localization";
1314

1415
// The typings for CKEditor’s toolbar are outdated.
1516
type ToolbarItem = string | { label: string; icon?: string; items: string[] };
@@ -348,6 +349,9 @@ class ConfigurationBuilder {
348349
fontSize: {
349350
options: [12, "default", 18, 23, 28],
350351
},
352+
emoji: {
353+
definitionsUrl: getDataSource(key),
354+
},
351355
toolbar: this.#getToolbar(),
352356
ui: {
353357
poweredBy: {

wcfsetup/install/files/js/WoltLabSuite/Core/Component/Ckeditor/Configuration.js

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)