Skip to content

BrianStefanovich/react-whatsapp-editor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-whatsapp-editor npm

An easy to use rtf editor, that emulates WhatsApp editor and output rft text, on WhatsApp rtf format.

Component emoji piker opened Component opened Component closed

Instalation

Run npm install react-whatsapp-editor

Usage

import react from "React"
import TextEditor from "react-whatsapp-editor"

...

<TextEditor 
open
onText={(rftText, formattedText)=> { ... } }
onDelete={ ()=> { ... }}
emojiTitle="title"
>
Prop Type Description
open bool Set editor state open or closed
emojiTitle string Set emoji-mart title
onText function([string], string) Function called on each text change. It gets two arguments, noFormated text, that is rtf text being display on screen, and formatedText that's the same text but on WhatsApp rtf format
onDelete function() This function is called each time that delete button is pressed. It gets no arguments

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published