Skip to content

Barsnes/lexical-twemoji

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Visit the NPM page

Netlify Status

Lexical Twemoji plugin

Lexical plugin that makes all emojis a twemoji. The plugin does not provide any emoji pickers. It listens for changes on TextNodes, and parses them for any inserted emojis.

Usage

npm i @barsnes/lexical-twemoji

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

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

<LexicalComposer initialConfig={initialConfig}>
  <LexicalTwemojiPlugin />
</LexicalComposer>;