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

Adding a paragraph between list items with enter removes style from the list after paragraph #14349

Closed
Acrophost opened this issue Jun 6, 2023 · 1 comment
Assignees
Labels
package:html-support package:style squad:core Issue to be handled by the Core team. type:bug This issue reports a buggy (incorrect) behavior. type:regression This issue reports a bug that was not present in the previous releases.

Comments

@Acrophost
Copy link

Acrophost commented Jun 6, 2023

📝 Provide detailed reproduction steps (if any)

  1. Add a list with few items
  2. Apply a style from styles dropdown to the list
  3. Place caret in the end of the first item and press enter(return) twice

✔️ Expected result

A paragraph will be inserted between two list items, list made from the part of the list after paragraph will retain its styles

❌ Actual result

Styles get removed from the list after the paragraph.
If the paragraph is pasted instead of added via pressing enter twice, the styles remain on the list after the pasting as well

Screen.Recording.2023-06-06.at.16.07.26.mov

📃 Other details

Screen.Recording.2023-06-06.at.15.48.23.mov

If you'd like to see this fixed sooner, add a 👍 reaction to this post.

@Acrophost Acrophost added type:bug This issue reports a buggy (incorrect) behavior. type:regression This issue reports a bug that was not present in the previous releases. squad:core Issue to be handled by the Core team. package:html-support package:style labels Jun 6, 2023
@dufipl
Copy link
Contributor

dufipl commented Jun 7, 2023

The same effect can be obtained by removing the list from any of the list items:

Nagranie.z.ekranu.2023-06-7.o.12.02.29.mov

@filipsobol filipsobol self-assigned this Jun 7, 2023
@CKEditorBot CKEditorBot added the status:in-progress Set automatically when an issue lands in the "In progress" column. We are working on it. label Jun 7, 2023
niegowski added a commit that referenced this issue Jun 19, 2023
…tting-lists-in-ghs

Fix (html-support): Preserve HTML attributes when list is split or its item is removed. Closes #14346 and #14349.

Fix (engine): Fix shallow view and model TreeWalkers returning elements outside of specified boundaries.
@CKEditorBot CKEditorBot removed the status:in-progress Set automatically when an issue lands in the "In progress" column. We are working on it. label Jun 19, 2023
@Witoso Witoso added this to the iteration 64 milestone Jun 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package:html-support package:style squad:core Issue to be handled by the Core team. type:bug This issue reports a buggy (incorrect) behavior. type:regression This issue reports a bug that was not present in the previous releases.
Projects
None yet
Development

No branches or pull requests

5 participants