How to integrate the use of Emojis into an A12 form?

Hello,

We build a tool to write and publish job offers into a portal. The form to write the job offer is modelled with A12 and offered within our portal based on A12. The user group are tax consultants who have vacancies they want to publish. Our customer wants to give them the opportunity to not only enter text but Emojis as well. Emojis are not part of the allowed character set and are therefore marked as invalid character upon validation of a form.
How can I extend the allowed characters of my form to Emojis?

Hi @linda-steep-rush,
the support for emojis in Kernel is part of the full Unicode support which has not been implemented yet, and there is no requirement for it.
In the Form Model, you can integrate an emoji via an expression:

expression": "case [GoLiveHighlight] = \"Rocket\" {\n        \"<span>&#128640;</span>\"\n}

(this example comes from the PI).

Dear @linda-steep-rush,

was the response helpful and is the issue now solved, or are there some additional questions? If it is solved, please, use the checkbox to mark the solution to your problem so that other users also know what helped to your case. Otherwise, please create an A12 Ticket so we can investigate deeper.

Hi @svenja-still-dawn
since A12 does not support Emojis yet and we have a tight schedule we will implement something small for our project.

We implemented this feature by writing a custom Emoji Node class that extends the Lexical Decorator Node class. With that, we only export the corresponding unicode code point string that represents the emoji when writing to an A12 Document (exported as HTML). The decorate feature then transforms this code point to an actual Unicode emoji character when rendering in the client. Feel free to contact me if you stumble on this topic.