draft-js-link-detection-plugin

draft-js-link-detection-plugin

Usage no npm install needed!

<script type="module">
  import draftJsLinkDetectionPlugin from 'https://cdn.skypack.dev/draft-js-link-detection-plugin';
</script>

README

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}
/>