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

Linebreak within a list item #1511

Closed
amitm02 opened this issue Jun 14, 2017 · 5 comments
Closed

Linebreak within a list item #1511

amitm02 opened this issue Jun 14, 2017 · 5 comments

Comments

@amitm02
Copy link

amitm02 commented Jun 14, 2017

Most traditional editors allow to enter break line within a list item. "Enter" key usually create a new list item, while "Shift-Enter" usually break the line, but stay in the same list item. i.e. does not create a new bullet number.
Note: CSS supports break lines within list items. see example here.

Steps for Reproduction

Enter a numbered list

  1. fist list item
  2. second list item, break line !here! but stay in list item
  3. third list item

attempt to breakline at "!here!", without creating a new list item.

Expected behavior:

By using some supported API and some UI (e.g shift enter), break the second list item so the result will be:

  1. fist list item
  2. second list item, break line
    !here! but stay in list item
  3. third list item

Actual behavior:

No way to do it to the best of my knowledge. Enter key results in

  1. fist list item
  2. second list item, break line
  3. !here! but stay in list item
  4. third list item

Version:
1.2.6

@amitm02
Copy link
Author

amitm02 commented Jun 14, 2017

i think it is a duplicate of #252

@cmawhorter
Copy link

#252 asks for a compelling use case. i don't understand how this isn't it?

this behavior has been part of microsoft word (and every other rich text editor i've ever used) for as long as i can remember.

image

i'd argue that -- from a user perspective -- enter/shift+enter is as-expected in a rich text editor as ctrl+c/ctrl+p.

@ile
Copy link

ile commented Jan 28, 2019

@npcole
Copy link

npcole commented Mar 23, 2019

@ile that gist is going to a 404 for me.

@DmGolovchenko
Copy link

This works perfectly:
https://codepen.io/mackermedia/pen/gmNwZP

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants