-
🔧 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.
Using npm
- Install the package:
npm install lexical-paste-editor
- Import the timeline styles in your main JavaScript file:
import "lexical-paste-editor/dist/style.css";
See src/App.tsx
Below are the available configuration options for the component:
Name | Type | Description |
---|---|---|
pasteText |
string |
Text which you paste |
initHtml |
string |
Restore html text in the editor |
onUpdateText |
func |
Returns text in HTML format |
onSearchImages |
Promise |
Search images list by name |
onUploadImage |
Promise |
Returns base64 image item which was uploaded. Return s3/GCS url |
onRemoveImage |
Promise |
Returns src deleted image |
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.
- Fork it
- Create your feature branch (
git checkout -b new-feature
) - Commit your changes (
git commit -am 'Add feature'
) - Push to the branch (
git push origin new-feature
) - Create a new Pull Request
💻 NICK KAIDASH
This project is licensed under the MIT License.