ckeditor / ckeditor4

The best enterprise-grade WYSIWYG editor. Fully customizable with countless features and plugins.
https://ckeditor.com/ckeditor-4
Other
5.79k stars 2.47k forks source link

Emoji Plugin. Allow more flexibility in custom emoji icons definitions #3054

Open garzy opened 5 years ago

garzy commented 5 years ago

Type of report

Feature request

Provide description of the new feature

Hello, I've been hard developing for fix unflexible options in the javascript of emoji plugin.

First, for my own needs, I need that the emoji plugins only have the "playing cards (poker)" unicode set and other few symbols.

I have achieved the expected results but with much difficulty.

Here is a list of problems that should be avoided, and depend only on the emoji.json file.

<span style="font-size:{size};color:{color};font-family:{family}"><strong>[THE EMOJI ICON]</strong></span>

I need to change the font family too because, for playing cards, I need a very good symbols true type font to render beautiful playing cards. (I've chosen DejaVu Sans).

I need set font color per playing cards suits:

I had a hard time adapting it (I'm not javascript/web developer), it would have been simpler if the .json file had a tag (for example): enclosingHTML:"<your html customization for this emoji/>"

Finally I've developed but with much difficulty. (Currently I can't change the emoji group icons but but I dont care

Kind Regards.

garzy commented 5 years ago

example

Example of the result that I have developed

Comandeer commented 5 years ago

I'm thinking if we can just expose EmojiDropdown class. Ability to change it should be enough to customise the whole behaviour of emoji plugin.