JiHong88 / suneditor

Pure javascript based WYSIWYG html editor, with no dependencies.
http://suneditor.com
MIT License
1.77k stars 316 forks source link

New paragraph added after current paragraph after pressing [ENTER] on line end #1465

Open adamsarek opened 2 weeks ago

adamsarek commented 2 weeks ago

Describe the bug After pressing [ENTER] on line end it adds a new paragraph after the current paragraph.

To Reproduce Steps to reproduce the behavior:

  1. Write a line of text
  2. Split the text into 2 parts using [SHIFT+ENTER]
  3. Go to end of the first line (by using [UP] key)
  4. Press [ENTER]
  5. New paragraph is added after the current paragraph

Expected behavior It should split the current paragraph into a paragraph with the text before the cursor and a paragraph with the text after the cursor.

Screenshots novy_radek_za_paragrafem

Desktop

Release