codex-team / codex-team/editor.js
shift+enter is not working when the Inline Toolbar is opened
- Dominant language
- TypeScript
- Stars
- 31.9k
- Forks
- 2.2k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 1
Description
Hi, under certain circumstances (when or after mouse selection), enableLineBreaks doesn't seem to work.
The question becomes: after deleting a few sentences, there is no selected sentences. However, **sometimes,** inline toolbar is still open, so it prevents enableLineBreaks to be implemented.
This can be fixed by adding 「api.inlineToolbar.close()」when Backspace key pressed.
Steps to reproduce:
1. set enableLineBreaks in Paragraph plugin
2. within a Paragraph block, select a few sentences with your mouse like this:

3. press Backspace to delete the selected content
4. press Enter, no line breaks inserted
Thanks for replying!
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.