@eddieseditor/emojis
v1.1.0
Published
Extension for eddies that adds emojis support
Downloads
5
Maintainers
Readme
If you encounter any error with the documentation or with the code itself please report it.
Overview
This simple extension converts glyphs like :)
to emojis like 😊 and :rocket:
to 🚀.
Quick start
pnpm install @eddieseditor/emojis
Usage
"use client";
import { Editor } from "eddies";
import { Emojis } from "@eddieseditor/emojis";
export default function Page() {
return (
<div className="m-5">
<Editor
theme={"dark"}
extensions={[
Emojis.configure({
mode: "override", //when set to "merge" it will merge with default rules
emojiReplacements: [{ find: /:skrull: $/, replace: "💀 " }],
}),
]}
/>
</div>
);
}
Props
| Prop | Type | Description |
| -------------------- | ------------------------------------------- | ---------------------------- |
| mode?
| "override" \| "merge"
| Mode of emoji replacement. |
| emojiReplacements?
| Array<{ find: RegExp; replace: string; }>
| Array of emoji replacements. |
Logo by iconixar