You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here's a work around I came up with for my need...but would be nice if the library included something similar. I used this library for reference https://github.com/elvanto/litemoji/tree/master
$editor->descendants(function (&$node) {
// Skip if not emoji
if ($node->type !== 'emoji') {
return;
}
// Change node to text and convert emoji shortcode
$node->type = 'text';
$node->text = LitEmoji::encodeUnicode(':'.$node->attrs->name.':');
});
Alternatively, one could extend the Node class similar to the Mention extension included in the Tiptap library for emojis.
Is there any support to parse json to html for emoji nodes? Currently it just strips the emoji.
The text was updated successfully, but these errors were encountered: