jvmtech/emoji

There is no license information available for the latest version (1.0.1) of this package.

Emoji picker for Neos CMS inspector

Installs: 185

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 3

Forks: 0

Open Issues: 0

Language:JavaScript

Type:neos-plugin

1.0.1 2022-08-20 04:52 UTC

This package is auto-updated.

Last update: 2024-04-20 08:15:57 UTC


README

Latest Stable Version License

Emoji inspector editor for Neos CMS using emoji-mart.

JvMTECH.Emoji

Installation

composer require jvmtech/emoji

Usage

NodeType

It is important to use type array for your property.

properties:
  emoji:
    type: array
    ui:
      label: 'Emoji'
      inspector:
        editor: 'JvMTECH.Emoji/EmojiEditor'

Fusion

In your fusion prototype, the emoji can be output as follows:

prototype(Your.Package:Emoji) < prototype(Neos.Fusion:Component) {
    emoji = ${q(node).property('emoji')}
    renderer = afx`<div @if.has={props.emoji}>{props.emoji.native}</div>`
}

The following object keys are available:

{
  id: 'smiley',
  name: 'Smiling Face with Open Mouth',
  colons: ':smiley:',
  text: ':)',
  emoticons: [
    '=)',
    '=-)'
  ],
  skin: null,
  native: '😃'
}