I am creating the Editorjs with readOnly true, and when i output the data from my Tool constructor, it will get initialized twice with different readOnly values.
Expected behavior: Just initialize every block once?
That means i need to change my custom block tool, so it handles the "switch" from edit to readOnly... But i don't really need a toggle. i just want to show the content in read-only mode.
I created a custom Block via https://editorjs.io/tools-api/.
I am creating the Editorjs with readOnly true, and when i output the data from my Tool constructor, it will get initialized twice with different readOnly values.
Expected behavior: Just initialize every block once?
That means i need to change my custom block tool, so it handles the "switch" from edit to readOnly... But i don't really need a toggle. i just want to show the content in read-only mode.
Codepen: https://codepen.io/bettyst/pen/azooqYQ
Device, Browser, OS:
Editor.js version: 2.29 and latest