Add Emoji button after italic and before the link
authorOlaf Braun <info@braun-development.de>
Tue, 15 Oct 2024 13:33:24 +0000 (15:33 +0200)
committerOlaf Braun <info@braun-development.de>
Tue, 15 Oct 2024 13:33:24 +0000 (15:33 +0200)
ts/WoltLabSuite/Core/Component/Ckeditor/Configuration.ts
wcfsetup/install/files/js/WoltLabSuite/Core/Component/Ckeditor/Configuration.js

index eada24370f173978de87a1a96e11f8ff7911ded9..47d49594b93dcfda31796c8b03d951f51a6db95c 100644 (file)
@@ -35,7 +35,7 @@ class ConfigurationBuilder {
   }
 
   #setupBasicFormat(): void {
-    this.#toolbar.push("bold", "italic");
+    this.#toolbar.push("bold", "italic", "WoltlabEmoji");
   }
 
   #setupTextFormat(): void {
@@ -182,7 +182,6 @@ class ConfigurationBuilder {
     } else {
       this.#removePlugins.push("Table", "TableToolbar");
     }
-    this.#toolbar.push("WoltlabEmoji");
 
     if (this.#features.quoteBlock) {
       this.#toolbar.push("blockQuote");
index 5711c6b542fa07f9a6a45eae8e0587b58d8def78..c7fa3f1dda23fe685cca11a376ade1b03a4f29bc 100644 (file)
@@ -10,7 +10,7 @@
 define(["require", "exports", "../../Language"], function (require, exports, Language_1) {
     "use strict";
     Object.defineProperty(exports, "__esModule", { value: true });
-    exports.createConfigurationFor = createConfigurationFor;
+    exports.createConfigurationFor = void 0;
     class ConfigurationBuilder {
         #features;
         #divider = "|";
@@ -29,7 +29,7 @@ define(["require", "exports", "../../Language"], function (require, exports, Lan
             }
         }
         #setupBasicFormat() {
-            this.#toolbar.push("bold", "italic");
+            this.#toolbar.push("bold", "italic", "WoltlabEmoji");
         }
         #setupTextFormat() {
             const items = [];
@@ -168,7 +168,6 @@ define(["require", "exports", "../../Language"], function (require, exports, Lan
             else {
                 this.#removePlugins.push("Table", "TableToolbar");
             }
-            this.#toolbar.push("WoltlabEmoji");
             if (this.#features.quoteBlock) {
                 this.#toolbar.push("blockQuote");
             }
@@ -330,4 +329,5 @@ define(["require", "exports", "../../Language"], function (require, exports, Lan
         configuration.build();
         return configuration.toConfig();
     }
+    exports.createConfigurationFor = createConfigurationFor;
 });