Skip to content

bona-ws/react-url-texteditor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published