Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't get shortname to show selection menu #1751

Closed
Slanfan opened this issue Oct 16, 2023 · 3 comments
Closed

Can't get shortname to show selection menu #1751

Slanfan opened this issue Oct 16, 2023 · 3 comments

Comments

@Slanfan
Copy link

Slanfan commented Oct 16, 2023

When typing short names :smiley: I expected a menu to be shown but nothing happened.
Would you happen to know if I misconfigured it or is this an issue?

I checked the demo at https://killercodemonkey.github.io/ngx-quill-example/ and this does not support this either.

I have a completely separate set of custom icons with a custom emoji picker. I have no problems adding the emojis
from this, and they are rendered correctly.

this.editorModules = {
  'emoji-toolbar': false,
  'emoji-textarea': false,
  'emoji-shortname': {
    emojiList: emojis,
    fuse: {
      shouldSort: true,
      threshold: 0.1,
      location: 0,
      distance: 100,
      maxPatternLength: 32,
      minMatchCharLength: 1,
      keys: [
        'shortname'
      ]
    },
    onOpen: () => {
      console.log('EditorComponent:: emoji short list opened')
    },
    onClose: (emojiListItem: any) => {
      console.log('EditorComponent:: emoji short list, item selected', emojiListItem)
    }
  },
  toolbar: this._editorToolbar,
}
@KillerCodeMonkey
Copy link
Owner

KillerCodeMonkey commented Oct 16, 2023 via email

@Slanfan
Copy link
Author

Slanfan commented Oct 16, 2023

Oh. I will have a look at this an see what happens when I switch keyboard layout. Thanks.

@Slanfan Slanfan closed this as completed Oct 17, 2023
@Slanfan
Copy link
Author

Slanfan commented Oct 17, 2023

This seems to be the issue you referred to @KillerCodeMonkey

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants