Emjois will pop up automatically in the wrong places: URLS and Code

Emjois will pop up automatically in the wrong places: URLS and Code
Ben@84171e7c Tuesday 18th July 2023, 16:59:53So happy to find this software. Slowly but surely getting all the remaining kinks worked out and am very happy with the design and layout.
There is one annoying bug I have not yet been able to address. Sometimes when posting URLs, or other text, the software automatically inserts an emjoi when the text matches the code for it. I can usually work around it by adding a space in text, but if it's inside some code, or a shared URL then it breaks the code and also URLs.
It happens on my forum but I've also noticed it happening here in posts on this forum as well.
Example:
In this example from a code box found here on this forum, it shows a cat emoji because the code text matched that emoji. But if you tried to use that code to fix something it would not parse correctly.
If there is no easy way to fix it, maybe there is a way to disable emojis completely in Flatboard software? It would be better to turn off Emjois rather than have it break things when trying to post content.
There is one annoying bug I have not yet been able to address. Sometimes when posting URLs, or other text, the software automatically inserts an emjoi when the text matches the code for it. I can usually work around it by adding a space in text, but if it's inside some code, or a shared URL then it breaks the code and also URLs.
It happens on my forum but I've also noticed it happening here in posts on this forum as well.
Example:
- `feed`π½*RSS feeds**- include `feed.tpl.php`
In this example from a code box found here on this forum, it shows a cat emoji because the code text matched that emoji. But if you tried to use that code to fix something it would not parse correctly.
If there is no easy way to fix it, maybe there is a way to disable emojis completely in Flatboard software? It would be better to turn off Emjois rather than have it break things when trying to post content.
Replies 7



maybe there is a way to disable emojis completely in Flatboard
yes there is a way
edit this file: (website root)\plugin\FlatBBeditor\js\FlatBBeditor.min.js
remove this part:
document.getElementById("content").oninput=function(){for(var e in map){var n=new RegExp(escapeSpecialChars(e),"gim");this.value=this.value=this.value.replace(n,map[e])}};

Thank you, Tillreetree. This will work great for now. Maybe in a future upgrade emojis can be added to the editor as a pop up menu.
They can still be copied and pasted into text or added from your phone or PC when needed.
This is what I do for favorite posts instead of using the plugin. As the plug-in would sometimes want to add some open </span html when editing a post with favorite posts enabled. π
They can still be copied and pasted into text or added from your phone or PC when needed.
This is what I do for favorite posts instead of using the plugin. As the plug-in would sometimes want to add some open </span html when editing a post with favorite posts enabled. π

Maybe in a future upgrade emojis can be added to the editor as a pop up menu
[ul]
[*] Flatboard: At least when I was replying to this post, there were "π" button in the upper right corner of the textbox to select the emoji
[*] Windows: Windows key + dot "."
[*] Android & iOS: there is a button on the keyboard to select emoji
[/ul]


Suggested Topics

kuddel@509f50cb
started Forum for registered users
General Questions

Gavin
started plugin Security Plugin
Resources

Fred
started New Flatboard UI, for or against?
Open Bar

Cyrille BORNE
started π«π· solved BBCode in /lib/Parser.lib.php on line 131
International Discussions