How to use the draft-js-dnd-plugin/components/dnd-wrapper function in draft-js-dnd-plugin

To help you get started, we’ve selected a few draft-js-dnd-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 draft-js-plugins / draft-js-plugins / docs / client / components / pages / Dnd / CustomDndEditor / index.js View on Github external
const { isDragging, progress } = this.props;
    const classNames = [styles.editor];
    if (isDragging) classNames.push(styles.dnd);
    if (progress) classNames.push(styles.uploading);

    const plugins = [uploadPlugin, toolbarPlugin];
    return (
      <div>
        
        
      </div>
    );
  }
}

export default DndWrapper(SimpleDndEditor, uploadPlugin);

draft-js-dnd-plugin

Dnd Plugin for DraftJS

MIT
Latest version published 8 years ago

Package Health Score

73 / 100
Full package analysis