1.0.10 • Published 3 years ago
react-url-texteditor v1.0.10
React Text Editor to format every url in text to a link
Install
npm i react-url-texteditor or /
yarn add react-url-texteditor
Import
import URLTextEditor from "react-url-texteditor";
How to Use
<URLTextEditor
inlineStyle={{ width: "50%" }}
onChangeText={(plain_text) => console.log(plain_text)}
onChangeHtml={(with_tag) => console.log(with_tag)}
/>
- onChangeText: to get callback plain text value
- onChangeHtml: to get callback html format with 'a' tag
- inlineStyle: customize your texteditor style
Demo
Go to demo