codex-team / codex-team/editor.js

shift+enter is not working when the Inline Toolbar is opened

Open
#1,153 2 comments 0 reactions 0 assignees View on GitHub
bug
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:
![image](https://user-images.githubusercontent.com/51183663/81775187-e6aee300-951e-11ea-8f5d-d3b749e45321.png)

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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.