Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Article editor] SHIFT + ENTER should insert a new line, and not insert a new block #304

Open
ciphrd opened this issue Jul 30, 2022 · 1 comment · May be fixed by #306
Open

[Article editor] SHIFT + ENTER should insert a new line, and not insert a new block #304

ciphrd opened this issue Jul 30, 2022 · 1 comment · May be fixed by #306
Assignees
Labels
enhancement New feature or request

Comments

@ciphrd
Copy link
Collaborator

ciphrd commented Jul 30, 2022

  • base branch: feature/articles

When the cursor is in the following blocks:

  • p
  • ul/ol
  • blockquote

Pressing SHIFT + ENTER should insert a new line within the block

@ciphrd ciphrd added the enhancement New feature or request label Jul 30, 2022
@ciphrd ciphrd added this to the Articles standalone milestone Jul 30, 2022
@maerzhase
Copy link
Contributor

maerzhase commented Aug 1, 2022

Surprisingly the editor exposes an API for softbreak

  insertSoftBreak: () => void

https://docs.slatejs.org/concepts/07-editor

@maerzhase maerzhase self-assigned this Aug 1, 2022
maerzhase added a commit that referenced this issue Aug 1, 2022
@maerzhase maerzhase linked a pull request Aug 1, 2022 that will close this issue
@maerzhase maerzhase linked a pull request Aug 11, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants