New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

draft-js-select-image-plugin

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

draft-js-select-image-plugin - npm Package Compare versions

Comparing version 0.5.0 to 0.5.1

2

package.json
{
"name": "draft-js-select-image-plugin",
"version": "0.5.0",
"version": "0.5.1",
"description": "Embed a local image in your draft-js editor",

@@ -5,0 +5,0 @@ "keywords": [

# draft-js-select-image-plugin
Embed a local image in your draft-js editor
*This is a plugin for the `draft-js-plugins-editor`.*
*This is a plugin for `draft-js-plugins-editor`.*

@@ -13,3 +13,2 @@ ## Installation

This plugin exposes a button that integrates with the side toolbar.
Render the image is out of the scope, but in the next example you can see how integrate `draft-js-image-plugin`.

@@ -19,2 +18,3 @@ ```js

const selectImagePlugin = createSelectImagePlugin({});
const { SelectImageButton } = selectImagePlugin;
```

@@ -25,5 +25,7 @@

|-----------|---------|--------------------------------------------------------------------------------------------------------------|
| imageType | IMAGE | Type of entity created when insert the atomic block. By default is the same value as `draft-js-image-plugin` |
| imageType | IMAGE | Type of entity created when inserting the atomic block. By default it's the same value as `draft-js-image-plugin` |
## Integration
Rendering the image is out of scope, but in the following example you can see how to integrate `draft-js-image-plugin`.
```js

@@ -30,0 +32,0 @@ import React from 'react';

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc