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

Cursor position error addRange / setRange when try to add a list #961

Closed
cub opened this issue Mar 17, 2022 · 1 comment
Closed

Cursor position error addRange / setRange when try to add a list #961

cub opened this issue Mar 17, 2022 · 1 comment
Labels
Milestone

Comments

@cub
Copy link

cub commented Mar 17, 2022

Describe the bug
Cursor goto at position 0 when you try to add a list (ul or ol) after an unstyled text.

To Reproduce
Steps to reproduce the behavior:

  1. Go to http://suneditor.com/sample/index.html
  2. Remove all content of the wysiwyg
  3. Write a simple word without style
  4. Press Enter for a new line
  5. Try to add a list
  6. The cursor went to start, and error in console appear :
addRange(): The given range isn't in document.
setRange @ core.js:1084
pickup @ list.js:440

Expected behavior
Cursor stay at his position to write content in the list.

Desktop (please complete the following information):

  • Chromium
  • Version 99.0.4844.51 (Official Build) snap (64-bit)
@JiHong88 JiHong88 added the bug label Mar 27, 2022
@JiHong88 JiHong88 added this to the 2.43.0 milestone Mar 27, 2022
JiHong88 added a commit that referenced this issue Apr 7, 2022
@JiHong88 JiHong88 closed this as completed Apr 7, 2022
@JiHong88
Copy link
Owner

The 2.43.0 version has been updated.
If this issue has not been resolved, please reopen this issue.
Thank you.

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

No branches or pull requests

2 participants