facebookarchive/draft-js

Indenting list block of one type inside the other

Open

#443 opened on 2016年6月5日

GitHub で見る
 (5 comments) (0 reactions) (0 assignees)JavaScript (22,554 stars) (2,646 forks)batch import
enhancementhelp wanted

説明

If I create a OL of 2 items and change depth of 2nd item to 2, like this:

1. ITEM1
      2. ITEM2

If I change type of 2nd item to UL it looses it depth:

1. ITEM1

2. ITEM2

But now if I try to indent second item, it works

1. ITEM1

    2. ITEM2

While indenting its checked that block above is list, but its not checked if its list of same type. Also, please find gif attached. I can create a PR for the fix.

コントリビューターガイド