Skip to content
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

Allow emoji characters in text fields #311

Open
jannisborgers opened this issue Jan 19, 2018 · 0 comments
Open

Allow emoji characters in text fields #311

jannisborgers opened this issue Jan 19, 2018 · 0 comments

Comments

@jannisborgers
Copy link

At the moment, SEOmatic fields like the site meta description cannot have emoji characters. If you put them in (via pasting or via the native macOS HUD), the whole field gets emptied when you save your changes.

Also discussed with nystudio107 and CraftCMS on Twitter:
https://twitter.com/CraftCMS/status/954276944228634624

Possible solution posted by CraftCMS:

We just added support for emojis in Plain Text fields in this week’s update, by swapping them with :shortcodes: on save (and back to unicode on retrieval).

Steps to reproduce:

  • Open Site Meta
  • Put text into Site SEO description
  • Paste an emoji
  • Save changes

Expected behavior:

  • Emoji gets output in the template
  • Full text including emoji is saved in Craft database

Actual behavior:

  • Content of text field gets emptied
  • No text is displayed in the template
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant