editor.js
editor.js copied to clipboard
Prevent click on redactor from inserting new block
I have a situation where the codex-editor__redactor
div is full width, and I center its contents (this is so that I can stretch contents to the edges of the screen).
However, when clicking 'outside' blocks (in order to blur the current selected block), I am basically still clicking on the redactor, which inserts an empty new block at the end.
How can I prevent editor.js from doing this? (without preventing clicks on the redactor - obviously)