Light fork of SimpleImage for Editor.js

I love Editor.js. It’s a nice simple block editor that I use to write these posts. It has a host of good plugins that enable you to extend the capabilities of the editor, such as the SimpleImage tool that allows you to add images to the editor without having to upload them.
It’s the SimpleImage that I briefly want to talk about. It’s a good tool, but it has two problems, 1) I can only drag images on to the editor, I can’t “add” an image; 2) It uses base64 data URL’s to host the image, this is a waste of memory and it should be using blob URLs.

<p>I love Editor.js. It's a nice simple block editor that I use to write these posts. It has a host of good plugins that enable you to extend the capabilities of the editor, such as the SimpleImage tool that allows you to add images to the editor without having to upload them.</p>
<p>It's the SimpleImage that I briefly want to talk about. It's a good tool, but it has two problems, 1) I can only drag images on to the editor, I can't "add" an image; 2) It uses base64 data URL's to host the image, this is a waste of memory and it should be using blob URLs.</p>
<p>I wrote a <a href="https://github.com/PaulKinlan/simple-image">simple fork</a> that addresses these two pain points. The first is that it uses less memory because it uses blob URLs. The second is that now you can add images in when adding in a new Block to the editor.</p>
<p>In fact, the following images are added using this new way.</p>
<figure><img src="https://paul.kinlan.me/images/2020-01-09-light-fork-of-simpleimage-for-editor-js-0.jpeg" alt="Add Image"></figure>
<figure><img src="https://paul.kinlan.me/images/2020-01-09-light-fork-of-simpleimage-for-editor-js-1.jpeg" alt="Choose file"></figure>
<figure><img src="https://paul.kinlan.me/images/2020-01-09-light-fork-of-simpleimage-for-editor-js-2.jpeg" alt="Image added"></figure>


Print Share Comment Cite Upload Translate
APA
Paul Kinlan | Sciencx (2024-03-28T21:26:36+00:00) » Light fork of SimpleImage for Editor.js. Retrieved from https://www.scien.cx/2020/01/09/light-fork-of-simpleimage-for-editor-js/.
MLA
" » Light fork of SimpleImage for Editor.js." Paul Kinlan | Sciencx - Thursday January 9, 2020, https://www.scien.cx/2020/01/09/light-fork-of-simpleimage-for-editor-js/
HARVARD
Paul Kinlan | Sciencx Thursday January 9, 2020 » Light fork of SimpleImage for Editor.js., viewed 2024-03-28T21:26:36+00:00,<https://www.scien.cx/2020/01/09/light-fork-of-simpleimage-for-editor-js/>
VANCOUVER
Paul Kinlan | Sciencx - » Light fork of SimpleImage for Editor.js. [Internet]. [Accessed 2024-03-28T21:26:36+00:00]. Available from: https://www.scien.cx/2020/01/09/light-fork-of-simpleimage-for-editor-js/
CHICAGO
" » Light fork of SimpleImage for Editor.js." Paul Kinlan | Sciencx - Accessed 2024-03-28T21:26:36+00:00. https://www.scien.cx/2020/01/09/light-fork-of-simpleimage-for-editor-js/
IEEE
" » Light fork of SimpleImage for Editor.js." Paul Kinlan | Sciencx [Online]. Available: https://www.scien.cx/2020/01/09/light-fork-of-simpleimage-for-editor-js/. [Accessed: 2024-03-28T21:26:36+00:00]
rf:citation
» Light fork of SimpleImage for Editor.js | Paul Kinlan | Sciencx | https://www.scien.cx/2020/01/09/light-fork-of-simpleimage-for-editor-js/ | 2024-03-28T21:26:36+00:00
https://github.com/addpipe/simple-recorderjs-demo