File tree Expand file tree Collapse file tree
plugins/ckeditor5-woltlab-smiley/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ const HandledKeyCodes = [
4141export class WoltlabSmileyUi extends Plugin {
4242 #balloon: ContextualBalloon | undefined ;
4343 readonly #smileyView: MentionsView ;
44- private _items = new Collection < {
44+ #items = new Collection < {
4545 item : MentionFeedObjectItem ;
4646 marker : string ;
4747 } > ( ) ;
@@ -132,7 +132,7 @@ export class WoltlabSmileyUi extends Plugin {
132132 */
133133 #createSmileyView( ) : MentionsView {
134134 const mentionsView = new MentionsView ( this . editor . locale ) ;
135- mentionsView . items . bindTo ( this . _items ) . using ( ( data ) => {
135+ mentionsView . items . bindTo ( this . #items ) . using ( ( data ) => {
136136 const { item, marker } = data ;
137137
138138 if ( mentionsView . items . length >= 10 ) {
@@ -224,14 +224,14 @@ export class WoltlabSmileyUi extends Plugin {
224224 } ) ;
225225 }
226226
227- this . _items . clear ( ) ;
227+ this . #items . clear ( ) ;
228228 const emojis = editor . config . get ( "woltlabSmileys" ) || [ ] ;
229229 emojis
230230 . filter ( ( emoji ) => {
231231 return emoji . code . startsWith ( smileyCode ) ;
232232 } )
233233 . forEach ( ( emoji ) => {
234- this . _items . add ( {
234+ this . #items . add ( {
235235 item : {
236236 id : emoji . code ,
237237 text : emoji . html ,
@@ -240,7 +240,7 @@ export class WoltlabSmileyUi extends Plugin {
240240 } ) ;
241241 } ) ;
242242
243- if ( this . _items . length ) {
243+ if ( this . #items . length ) {
244244 this . #showBalloon( ) ;
245245 } else {
246246 this . #hideBalloon( ) ;
You can’t perform that action at this time.
0 commit comments