0.0.22 • Published 12 months ago

lexical-paste-editor v0.0.22

Weekly downloads
-
License
MIT
Repository
-
Last release
12 months ago

Lexical paste editor

Features

  • 🔧  Easy Customization: Effortlessly render custom content with straightforward customization options.

  • 💪  TypeScript Integration: Benefit from the advantages of Typescript for enhanced code reliability.

  • 🎨  TailwindCSS Styling: Achieve a sleek and modern design with styling powered by TailwindCSS.

Installation

Using npm

  1. Install the package:
  npm install lexical-paste-editor
  1. Import the timeline styles in your main JavaScript file:
  import "lexical-paste-editor/dist/style.css";

Usage

See src/App.tsx

<LexicalPasteEditor/> Props

Below are the available configuration options for the component:

NameTypeDescription
pasteTextstringText which you paste
initHtmlstringRestore html text in the editor
onUpdateTextfuncReturns text in HTML format
onSearchImagesPromiseSearch images list by name
onUploadImagePromiseReturns base64 image item which was uploaded. Return s3/GCS url
onRemoveImagePromiseReturns src deleted image

🤝Contributing

We welcome contributions! If you find a bug or have an idea for improvement, please open an issue or submit a pull request on Github.

  1. Fork it
  2. Create your feature branch (git checkout -b new-feature)
  3. Commit your changes (git commit -am 'Add feature')
  4. Push to the branch (git push origin new-feature)
  5. Create a new Pull Request

Author ✨

💻   NICK KAIDASH

Licence

This project is licensed under the MIT License.

0.0.20

1 year ago

0.0.21

1 year ago

0.0.22

12 months ago

0.0.14

1 year ago

0.0.15

1 year ago

0.0.16

1 year ago

0.0.17

1 year ago

0.0.18

1 year ago

0.0.19

1 year ago

0.0.13

1 year ago

0.0.12

1 year ago

0.0.10

1 year ago

0.0.11

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.3

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago