Skip to content

How to edit config of plugin-emoji? #978

Closed Answered by v1r0x
v1r0x asked this question in Q&A
Discussion options

You must be logged in to vote

I finally figured out how to change something of the config

// insinde config((ctx => ...))
ctx.set(emojiConfig.key, {
    twemojiOptions: {
        callback: (icon, options) => icon
    }
});

This works because it now uses localhost (or whereever your code runs) as base where it can't find the icon and returns a 404. But all existing emojis are still there and any new added emoji (:tada:) also works!
But it would be nicer to completly disable twemoji. I'll open an issue for that

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by v1r0x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant