How to use the draft-js-linkify-plugin/lib/linkStrategy function in draft-js-linkify-plugin

To help you get started, we’ve selected a few draft-js-linkify-plugin examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github withspectrum / spectrum / shared / clients / draft-js / links-decorator / core.js View on Github external
strategy: (
    contentBlock: ContentBlock,
    callback: (...args?: Array) => any
  ) => {
    if (contentBlock.type === 'code-block') return;

    linkStrategy(contentBlock, callback);
  },
  component: ({ decoratedText, children }: DecoratorComponentProps) => (

draft-js-linkify-plugin

Linkify Plugin for DraftJS

MIT
Latest version published 5 years ago

Package Health Score

67 / 100
Full package analysis

Popular draft-js-linkify-plugin functions