1.1.0 • Published 1 year ago

@eddieseditor/emojis v1.1.0

Weekly downloads
-
License
-
Repository
github
Last release
1 year ago

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

PropTypeDescription
mode?"override" \| "merge"Mode of emoji replacement.
emojiReplacements?Array<{ find: RegExp; replace: string; }>Array of emoji replacements.

MIT © malezjaa

Logo by iconixar

1.1.0

1 year ago

1.0.12

1 year ago

1.0.11

1 year ago

1.0.11-0

1 year ago

1.0.10

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

2 years ago

1.0.2

2 years ago

1.0.0

2 years ago