Socket
Socket
Sign inDemoInstall

draft-js-anchor-plugin

Package Overview
Dependencies
32
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    draft-js-anchor-plugin

Link Plugin for DraftJS


Version published
Weekly downloads
3.7K
decreased by-20.24%
Maintainers
2
Install size
234 kB
Created
Weekly downloads
 

Readme

Source

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. HTTP, HTTPS, as well as email addresses (with or without mailto: attached to it) are supported.

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.

Keywords

FAQs

Last updated on 21 Aug 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc