Skip to main content

Variable: EmojiPlan

const EmojiPlan: LexicalPlan<EmojiPlanConfig, "@etrepum/lexical-emoji-plan/Emoji", unknown, unknown>

A plan to use the emoji-datasource-facebook emoji database to convert short names such as :man-facepalming: or :) to their corresponding emoji, and uses an img from the same package rather than the current font to display it so that the display is consistent regardless of the platform.

Loading the emoji database is done using an async import so will typicallly be a lazy loaded module in a separate chunk.

Images are also maximally lazily loaded, before they load the font's representation of that emoji is used and then the emojiLoadedClass is added.

Defined in

EmojiPlan.ts:73