editorjs-blocks-react-renderer icon indicating copy to clipboard operation
editorjs-blocks-react-renderer copied to clipboard

feat(): render image file with base href

Open thenaim opened this issue 3 years ago • 1 comments

thenaim avatar Apr 24 '22 13:04 thenaim

Thank you for your contribution 💯

According to the specs of editor-js/image plugin, the url field must contain a full public path hence, the relative path is just not recommended:

file - uploaded file data. Must contain an url field with full public path to the uploaded image. Also, can contain any additional fields you want to store. For example, width, height, id etc. All additional fields will be saved at the file object of output data.

Can you please elaborate in which scenarios (using the Editor.js) would this return a relative path?

Please, take into consideration that the purpose of this package is to render Editor.js features only.

lightningspirit avatar Aug 05 '22 15:08 lightningspirit