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.


This content originally appeared on Modern Web Development with Chrome and was authored by Paul Kinlan

<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>


This content originally appeared on Modern Web Development with Chrome and was authored by Paul Kinlan


Print Share Comment Cite Upload Translate Updates
APA

Paul Kinlan | Sciencx (2020-01-09T13:33:02+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 ,<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 ]. 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 . 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: ]
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/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.