Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 692 Bytes

readme.md

File metadata and controls

34 lines (24 loc) · 692 Bytes

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

currently support for http only