Skip to content

jdrzejb/draft-js-anchor-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Draft.js Link Plugin

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

This plugin allows you to add link entities via the inline toolbar. It also provides a decorator that formats the created entities.

Usage

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

const linkPlugin = createLinkPlugin();

Importing the default styles

The plugin ships with a default styling available at this location in the installed package: draft-js-anchor-plugin/lib/plugin.css.

If you want to use the default styles, you can include this stylesheet. Otherwise you can supply your own styles via the theme config option.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published