draft-js-image-plugin, there is NO imagePlugin.addImage method
See original GitHub issuehttp://joxi.net/KAgGKbwC4ZpW1A
https://www.draft-js-plugins.com/plugin/image
const imagePlugin = createImagePlugin();
....
render() {
return (
<div>
<div className={editorStyles.editor} onClick={this.focus}>
<Editor
editorState={this.state.editorState}
onChange={this.onChange}
plugins={plugins}
ref={(element) => { this.editor = element; }}
/>
</div>
<ImageAdd
editorState={this.state.editorState}
onChange={this.onChange}
modifier={imagePlugin.addImage}
/>
</div>
);
}
}
modifier={imagePlugin.addImage}
but there is no such method!
Issue Analytics
- State:
- Created 6 years ago
- Comments:5
Top Results From Across the Web
Adding image draft-js-image-plugin - Stack Overflow
If I set the initial state with the image already embedded it renders. However, when using a mechanism that adds it later on...
Read more >Image - DraftJS Plugins - High quality plugins with great UX
You can have images in your text field. This is a very rudimentary example, but you can enhance the image plugin with resizing,...
Read more >111-draft-js-image-plugin - npm package - Snyk
Based on project statistics from the GitHub repository for the npm package 111-draft-js-image-plugin, we found that it has been starred 4,017 ...
Read more >[Solved]-How to insert an image using draft.js?-Reactjs
The latest versions of draft-js-image-plugin has an error, so you can use 2.0.1 version. I'm using the latest draft-js version "draft-js": "0.10.5", , ......
Read more >draft-js-image-plugin examples - CodeSandbox
Learn how to use draft-js-image-plugin by viewing and forking draft-js-image-plugin example apps on CodeSandbox.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@nikgraf release this plugins please, i spend several days to get understand why plugins don’t work like in docs. >.<
@artskar The draft-js-image-plugin has been released months, the imagePlugin.addImage method should be available in the lastest version. If you still have this problem, please a comment or open a new issue, we will pick it from there.