addImage
Images are atomic (non-text) blocks that are used to embed image on the webpage.
Usage #
The addImage
utility will help you to add image to the editor.
Image attributes can be either image
or picture
ones.
Whenever you use an atomic block in your content, You need to decorate your state to make it available to render your custom non-text content.
Example #
An example of addImage
usage: