draft-js-link-detection-plugin
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

draft-js-link-detection-plugin

Demo page

Installation:

npm i draft-js-link-detection-plugin

Usage:

import Editor from 'draft-js-plugins-editor';
import createLinkDetectionPlugin from 'draft-js-link-detection-plugin';
 
const linkDetectionPlugin = createLinkDetectionPlugin();
const plugins = [linkDetectionPlugin];
 
<Editor
    ref={editorRef}
    plugins={plugins}
    editorState={editorState}
    onChange={handleChangeEditor}
/>

Package Sidebar

Install

npm i draft-js-link-detection-plugin

Weekly Downloads

6,975

Version

0.0.4

License

MIT

Unpacked Size

26 kB

Total Files

30

Last publish

Collaborators

  • fedorovskyi