-
Notifications
You must be signed in to change notification settings - Fork 638
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[4.x]: Restrict the usage of emoji #12935
[4.x]: Restrict the usage of emoji #12935
Comments
Thanks for reporting this! We discussed several possible fixes today, none of which were especially cut and dry. It’s not as simple as adding a field/general setting for disabling emoji shortcodes, for a couple reasons:
The solution we settled on ended up being a little complex, and is going to require updates to Neo and Super Table to be fully realized (spicywebau/craft-neo#731, verbb/super-table#515), so I’ve made the fix for Craft 4.5 rather than the next 4.4 release. (We’ll also need to add a new “Escape shortcodes” setting for Plain Text fields to Feed Me, which will need to be enabled for any feeds that shouldn’t parse shortcodes – craftcms/feed-me#1270.) In the meantime, you can work around this by creating a module (e.g. using Craft Generator), bootstrapped for every request, which configures LitEmoji to ignore the \LitEmoji\LitEmoji::config('excludeShortcodes', [
'100',
'1234',
]); |
Craft 4.5.0 is out with the fix for this. |
What happened?
Description
The feature #1627 that introduced emojis support can result in unintended consequences. For instance, I have an XML feed me import that contains a field with this specific notation for relations, "
:100:41:62:
", the field gets automatically transformed to "💯41:62:".Steps to reproduce
:100: :1234:
"Expected behavior
it should be possible to specify whether emojis are allowed globally or at the field level.
Actual behavior
Emojis are allowed in all text fields and this can not be disabled:
:happy:
=> 😄Craft CMS version
4.4.3
PHP version
8.0
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
Feed Me - 5.1.0
The text was updated successfully, but these errors were encountered: