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.
The emoji groups are hardcoded in the plugins.js, if the emoji.son have less or new groups, then thereis a runtime exception when I dropdown the emoji panel of the toolbar (I'm fixed in the .js file). I think that they should be obtained from the .json file
The emoji groups icon are very difficult to change, because, there are in a .svg file with coordinates. I think it would be easier to take it from de emoji.son like another emoji more (json groups emoji definition or similar) or may in a resources files key value for allowing custom .png icon for the group.
I've changed the .javacript file for allowing "color" property in the emoji json, and the font size and font-family, then, when the user clicks on emoji, this code are inserted:
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:
Spaces: Black
Clubs: Green
Diamonds: Blue
Hearts: Red.
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
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.
The emoji groups are hardcoded in the plugins.js, if the emoji.son have less or new groups, then thereis a runtime exception when I dropdown the emoji panel of the toolbar (I'm fixed in the .js file). I think that they should be obtained from the .json file
The emoji groups icon are very difficult to change, because, there are in a .svg file with coordinates. I think it would be easier to take it from de emoji.son like another emoji more (json groups emoji definition or similar) or may in a resources files key value for allowing custom .png icon for the group.
I've changed the .javacript file for allowing "color" property in the emoji json, and the font size and font-family, then, when the user clicks on emoji, this code are inserted:
<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.