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

Feature request: Nested lists #217

Closed
kristofferlund opened this issue Feb 13, 2020 · 2 comments
Closed

Feature request: Nested lists #217

kristofferlund opened this issue Feb 13, 2020 · 2 comments
Labels
Milestone

Comments

@kristofferlund
Copy link

I have been looking at several rich text editors for the past days, and I wanted to submit a feature request that I thought could be of use for your component; nested lists.

How to use:
When editing inside a list, press tab to add a list within the list. The list button in the toolbar will now change this child list, not the parent. If you're using an ordered list (1, 2, 3), the child list elements should by default be ordered (a, b, c). If you're using an unordered lists, the child elements should by default be unordered.

The html could look something like this:

<ul>
  <li>First regular li</li>
  <li>Second regular li</li>
  <ul>
    <li>First child li</li>
  </ul>
</ul>

And should render like this:

  • First regular li
  • Second regular li
    • First child li

Let me know what you think!

@JiHong88
Copy link
Owner

Hi @kristofferlund
It's good idea.
It seems to be not hard to implement.

JiHong88 added a commit that referenced this issue Feb 23, 2020
JiHong88 added a commit that referenced this issue Feb 24, 2020
JiHong88 added a commit that referenced this issue Feb 24, 2020
JiHong88 added a commit that referenced this issue Feb 26, 2020
update: nested list css style
add: core-splitNestedElement
change: util-removeNestedTags > mergeNestedTags
@JiHong88 JiHong88 added this to the 2.26.0 milestone Mar 4, 2020
@JiHong88 JiHong88 closed this as completed Mar 4, 2020
JiHong88 added a commit that referenced this issue Mar 6, 2020
JiHong88 added a commit that referenced this issue Mar 8, 2020
@JiHong88
Copy link
Owner

The 2.26.0 version has been updated.
If there is an issue, please register as a new 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