Skip to content
This repository was archived by the owner on Feb 6, 2023. It is now read-only.

Conversation

@ericbiewener
Copy link
Contributor

Summary

Solves #270. Removes restriction on indenting beyond one level deeper than the block above. Also allows indenting the very first item in a list. And all I had to do was delete code!

image

Test Plan

  1. Try indenting the first item in a list.
  2. Try indenting a list item more than one level deeper than the item above it.

Also don't require there to even be a block above to begin indenting.
@flarnie
Copy link
Contributor

flarnie commented Oct 15, 2017

Thanks for adding this! It seems fine to make this change, and I really like that we did it by only deleting code.

I'd like to have some tests to go with this, but that could be done in a follow-up.

Just like for any PR we want to merge, the first step is for me to pull it into Facebook's codebase. Since this presents a change in default behavior, I would like to do some manual testing and verify that we can maintain the restricted nesting for products where that is desirable. I don't expect problems there though.

Copy link
Contributor

@flarnie flarnie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding this to my queue for merging - thanks for the fix! :)

dogge_thanks

@juliankrispel
Copy link
Contributor

@flarnie this still being merged I assume?

Copy link

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@flarnie is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

alicayan008 pushed a commit to alicayan008/draft-js that referenced this pull request Jul 4, 2023
Summary:
**Summary**

Solves facebookarchive/draft-js#270. Removes restriction on indenting beyond one level deeper than the block above. Also allows indenting the very first item in a list. And all I had to do was delete code!

![image](https://cloud.githubusercontent.com/assets/253298/19991316/8dfb376e-a1f1-11e6-8e93-b8b49c30010b.png)

**Test Plan**

1. Try indenting the first item in a list.
2. Try indenting a list item more than one level deeper than the item above it.
Closes facebookarchive/draft-js#762

Differential Revision: D7137964

fbshipit-source-id: 597732b363537e34a0f466c3188f334b3fa30a9e
aforismesen added a commit to aforismesen/draft-js that referenced this pull request Jul 12, 2024
Summary:
**Summary**

Solves facebookarchive/draft-js#270. Removes restriction on indenting beyond one level deeper than the block above. Also allows indenting the very first item in a list. And all I had to do was delete code!

![image](https://cloud.githubusercontent.com/assets/253298/19991316/8dfb376e-a1f1-11e6-8e93-b8b49c30010b.png)

**Test Plan**

1. Try indenting the first item in a list.
2. Try indenting a list item more than one level deeper than the item above it.
Closes facebookarchive/draft-js#762

Differential Revision: D7137964

fbshipit-source-id: 597732b363537e34a0f466c3188f334b3fa30a9e
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants