The discussion revolves around feature requests for custom emojis in Discourse, focusing on renaming capabilities, styling, and GIF integration.
DiscipleGeek initially requested the ability to rename custom emojis and a separate CSS class to distinguish them from built-in emojis, noting that custom non-square emojis break the layout of standard ones when dimensions are adjusted. codinghorror questioned the necessity of styling non-standard emojis as “Emoji” but agreed renaming was reasonable. DiscipleGeek then asked for a dedicated section to load custom GIFs similar to Facebook’s keyboard.
cpradio suggested using the ReplyGIF plugin as a solution, outlining the necessary API endpoints required to integrate a custom GIF service. Regarding the CSS class request, zogstrip confirmed the feature was implemented via a specific commit, which DiscipleGeek appreciated. bloomexperiment and bloomexperiment strongly supported renaming, explaining the need to prefix custom emojis to avoid conflicts with default names and suggesting that renaming should update all previous instances of the emoji.
Later posts by pacharanero and hipp0 highlighted ongoing usability issues. pacharanero reported that the drag-and-drop upload functionality is broken on some browsers and noted that the file picker incorrectly filters out SVG and JPG formats. hipp0 reiterated the frustration of having to delete and re-upload emojis to change their names, emphasizing the need for a quick edit feature.
A separate class for built-in emojis and custom emojis. I have several custom emojis that are bigger than the normal emoji size and are non-squared dimensions. If I remove the height and width limitations via CSS so that the custom emojis display correctly, the built-in emojis become very large. It would be nice to be able to style custom and built-in separately.
So adding a class to distinguish custom from default is out… then could we have a section where we can load custom GIFs that our board commonly uses? like facebook’s GIF keyboard?
Granted, you could set it up so /replies, /tags return a single item, and thus the querystring parts become moot. So the only thing you’d have to do is ensure the /gifs endpoint returns all of the GIFs you want to support.
Just another note — for context, I was renaming some custom emojis because I didn’t realise they had the same names as default emojis and they were overriding them. (E.g. :bear:) So I wanted to add a prefix for all the custom emoji names. I re-uploaded them to change the name to include the prefixes.
For the emojis whose previous names are not the same as any default emojis, all instances where people have used the emoji now just have the :emoji_name:.
It would be helpful if the feature of renaming emojis also updated the names of wherever the emoji has previously been used.
Apologies for bumping an old thread. Couple of things I’ve noticed while playing around with uploading custom emoji recently:
The ‘drag and drop’ functionality seems broken (Ubuntu, Brave Browser) - it opens the image in a new tab rather than uploading. This seems to be the same for both SVG and PNG. Last time I used this functionality a few years ago (same OS, same browser) it worked correctly.
Also, the file browser that is created when you click the Choose Files button is ‘customised’ presumably so it only shows suitable file types. By default it will only show PNGs, but custom emoji also work with SVG and JPG icons too. Seems like a fairly small fix but I couldn’t work out where in the Discourse codebase that file browser customisation is made.