File tree Expand file tree Collapse file tree
ckeditor5-woltlab-smiley/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ import {
3131 RemoveFormat ,
3232 Table ,
3333 Undo ,
34+ Emoji ,
3435 WoltlabAttachment ,
3536 WoltlabAutoLink ,
3637 WoltlabAutosave ,
@@ -39,7 +40,6 @@ import {
3940 WoltlabCode ,
4041 WoltlabCodeBlock ,
4142 WoltlabFontSize ,
42- WoltlabEmoji ,
4343 WoltlabHtmlEmbed ,
4444 WoltlabImage ,
4545 WoltlabMagicParagraph ,
@@ -62,6 +62,7 @@ const defaultConfig: Core.EditorConfig = {
6262 Paragraph . Paragraph ,
6363 PasteFromOffice . PasteFromOffice ,
6464 Undo . Undo ,
65+ Emoji . Emoji ,
6566
6667 // Formatting
6768 Alignment . Alignment ,
@@ -118,7 +119,6 @@ const defaultConfig: Core.EditorConfig = {
118119 WoltlabToolbarGroup . WoltlabToolbarGroup ,
119120 WoltlabUpload . WoltlabUpload ,
120121 WoltlabFontSize . WoltlabFontSize ,
121- WoltlabEmoji . WoltlabEmoji ,
122122 ] ,
123123} ;
124124
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ export * as Undo from "@ckeditor/ckeditor5-undo";
3333export * as Upload from "@ckeditor/ckeditor5-upload" ;
3434export * as Utils from "@ckeditor/ckeditor5-utils" ;
3535export * as Widget from "@ckeditor/ckeditor5-widget" ;
36+ export * as Emoji from "@ckeditor/ckeditor5-emoji" ;
3637
3738export * as WoltlabAttachment from "./plugins/ckeditor5-woltlab-attachment/src" ;
3839export * as WoltlabAutoLink from "./plugins/ckeditor5-woltlab-autolink/src" ;
@@ -41,7 +42,6 @@ export * as WoltlabBbcode from "./plugins/ckeditor5-woltlab-bbcode/src";
4142export * as WoltlabBlockQuote from "./plugins/ckeditor5-woltlab-block-quote/src" ;
4243export * as WoltlabCode from "./plugins/ckeditor5-woltlab-code/src" ;
4344export * as WoltlabCodeBlock from "./plugins/ckeditor5-woltlab-code-block/src" ;
44- export * as WoltlabEmoji from "./plugins/ckeditor5-woltlab-emoji/src" ;
4545export * as WoltlabHtmlEmbed from "./plugins/ckeditor5-woltlab-html-embed/src" ;
4646export * as WoltlabImage from "./plugins/ckeditor5-woltlab-image/src" ;
4747export * as WoltlabMagicParagraph from "./plugins/ckeditor5-woltlab-magic-paragraph/src" ;
Original file line number Diff line number Diff line change 3232 "@ckeditor/ckeditor5-undo" : " ^45.0.0" ,
3333 "@ckeditor/ckeditor5-utils" : " ^45.0.0" ,
3434 "@ckeditor/ckeditor5-widget" : " ^45.0.0" ,
35- "emoji-picker-element " : " ^1.25 .0"
35+ "@ckeditor/ckeditor5-emoji " : " ^45.0 .0"
3636 },
3737 "devDependencies" : {
3838 "@ckeditor/ckeditor5-dev-translations" : " ^43.0.1" ,
5050 "webpack" : " ^5.98.0" ,
5151 "webpack-cli" : " ^6.0.1"
5252 }
53- }
53+ }
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ export class WoltlabSmileyUi extends Plugin {
6565 * @inheritDoc
6666 */
6767 public static get requires ( ) {
68- return [ ContextualBalloon , "WoltlabEmoji" ] as const ;
68+ return [ ContextualBalloon ] as const ;
6969 }
7070
7171 get #isUIVisible( ) : boolean {
@@ -227,7 +227,6 @@ export class WoltlabSmileyUi extends Plugin {
227227
228228 this . #items. clear ( ) ;
229229 const woltlabSmileys = editor . config . get ( "woltlabSmileys" ) || [ ] ;
230- const emojisDatabase = editor . config . get ( "woltlabEmojis" ) ! . database ;
231230
232231 woltlabSmileys
233232 . filter ( ( emoji ) => {
@@ -242,31 +241,6 @@ export class WoltlabSmileyUi extends Plugin {
242241 marker : MARKER_NAME ,
243242 } ) ;
244243 } ) ;
245-
246- emojisDatabase
247- . getEmojiBySearchQuery ( smileyCode )
248- . then ( ( emojis ) => {
249- emojis . forEach ( ( emoji ) => {
250- if ( ! ( "unicode" in emoji ) ) {
251- return ;
252- }
253-
254- this . #items. add ( {
255- item : {
256- id : emoji . annotation ,
257- text : emoji . unicode ,
258- } ,
259- marker : MARKER_NAME ,
260- } ) ;
261- } ) ;
262- } )
263- . finally ( ( ) => {
264- if ( this . #items. length ) {
265- this . #showBalloon( ) ;
266- } else {
267- this . #hideBalloon( ) ;
268- }
269- } ) ;
270244 } ) ;
271245 watcher . on ( "unmatched" , ( ) => {
272246 this . #hideBalloon( ) ;
You can’t perform that action at this time.
0 commit comments