codex-team / codex-team/editor.js
Prevent click on redactor from inserting new block
Open
- Dominant language
- TypeScript
- Stars
- 31.9k
- Forks
- 2.2k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 1
Description
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](https://github.com/codex-team/editor.js/blob/master/src/components/modules/ui.ts#L558) an empty new block at the end.
How can I prevent editor.js from doing this? (without preventing clicks on the redactor - obviously)
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.