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

Nested lists support #2946

Closed
Reinmar opened this issue Oct 4, 2016 · 7 comments
Closed

Nested lists support #2946

Reinmar opened this issue Oct 4, 2016 · 7 comments
Assignees
Labels
package:list type:feature This issue reports a feature request (an idea for a new functionality or a missing option).

Comments

@Reinmar
Copy link
Member

Reinmar commented Oct 4, 2016

It's mostly ready but requires couple of fixes.

The UX aspect of the feature is described in https://github.com/ckeditor/ckeditor5-list/issues/5.

@scofalik
Copy link
Contributor

scofalik commented Oct 4, 2016

It's hard to say how many fixes it requires and how time consuming they will be, however it's true that it's been thought through and there is code in converters that is supposed to handle intending/outdenting.

@Reinmar
Copy link
Member Author

Reinmar commented Feb 19, 2017

Some cases which you'll need to think on:

  1. Wrapping a selection spanning multiple levels of items with a quote (something blew up seriously when I've been testing this).
  2. Handling empty list item with nested list (selection isn't rendered there correctly – may be an issue with the view or something).
    feb-19-2017 16-35-36

@scofalik
Copy link
Contributor

  1. Weeelllll, yeah. This is an issue, because you split the list with blockquote but don't fix indent property. I guess we finally found out a drawback of our implementation.
  2. This is weird, actually, it should be covered by ViewListItemElement: https://github.com/ckeditor/ckeditor5-list/blob/master/src/viewlistitemelement.js#L40

@Reinmar
Copy link
Member Author

Reinmar commented Feb 20, 2017

Weeelllll, yeah. This is an issue, because you split the list with blockquote but don't fix indent property. I guess we finally found out a drawback of our implementation.

Am I right that the list feature could post-fix this on change? I think that predicted this.

@scofalik
Copy link
Contributor

scofalik commented Feb 20, 2017

AFAIR there is no such fixer yet. The problematic part is that each change event triggers model conversion dispatcher. So we can't fix it before model conversion dispatcher gets to the data. Or rather, we can, but it could produce some weird results anyway.

OTOH, the problematic part is only moving. That means that, possibly, we could have this logic in move converter for list.

@Reinmar
Copy link
Member Author

Reinmar commented Feb 21, 2017

he problematic part is that each change event triggers model conversion dispatcher. So we can't fix it before model conversion dispatcher gets to the data. Or rather, we can, but it could produce some weird results anyway.

I wrote a quick proposal to this: https://github.com/ckeditor/ckeditor5-engine/issues/829 🖌

@scofalik scofalik self-assigned this Feb 23, 2017
@scofalik
Copy link
Contributor

I went through what we already have in converters.js and it looks like nested lists are supported in converters. What I mean is that I haven't found any black hole where given part of code is written with flat list items in mind.

This means that we should just start fixing reported bugs. I already reported two bugs I found when testing nested list, I also reported one of the bugs @Reinmar posted here.

For now, I'll close this issue and as I said, let's focus on bugs.

@mlewand mlewand transferred this issue from ckeditor/ckeditor5-list Oct 9, 2019
@mlewand mlewand added resolution:solved type:feature This issue reports a feature request (an idea for a new functionality or a missing option). package:list labels Oct 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package:list type:feature This issue reports a feature request (an idea for a new functionality or a missing option).
Projects
None yet
Development

No branches or pull requests

3 participants