Skip to content
This repository was archived by the owner on Nov 29, 2019. It is now read-only.

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

Draft.js Link Plugin

This is a plugin for the draft-js-plugins-editor.

This plugin is based on draft-js-anchor-plugin.

This plugin allows you to add link entities via the static toolbar. It also provides a decorator that formats the created entities. HTTP, HTTPS, as well as email addresses (with or without mailto: attached to it) are supported.

Usage

import createLinkPlugin from 'draft-js-link-plugin';

const linkPlugin = createLinkPlugin();