Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/barsnes/lexical-twemoji

Lexical plugin that makes all emojis a twemoji
https://github.com/barsnes/lexical-twemoji

lexical twemoji

Last synced: about 1 month ago
JSON representation

Lexical plugin that makes all emojis a twemoji

Awesome Lists containing this project

README

        


Visit the NPM page

[![Netlify Status](https://api.netlify.com/api/v1/badges/6a66b921-ba1e-43da-997e-3a21240f1549/deploy-status)](https://app.netlify.com/sites/lexical-twemoji/deploys)

### [Demo](https://lexical-twemoji.barsnes.dev/)

# Lexical Twemoji plugin

Lexical plugin that makes all emojis a [twemoji](https://twemoji.twitter.com/content/twemoji-twitter/en.html).
The plugin does not provide any emoji pickers. It listens for changes on `TextNode`s, and parses them for any inserted emojis.

## Usage

`npm i @barsnes/lexical-twemoji`

```jsx
import {
LexicalTwemojiPlugin,
LexicalTwemojiNode,
} from "@barsnes/lexical-twemoji";

const initialConfig = {
nodes: [LexicalTwemojiNode],
};


;
```