-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Add Block: List #346
Comments
Something to consider: it'd be neat to allow easy re-arrangement of individual list items with up/down arrows. That's something I do often and it takes some dancing around copy/paste and not losing inline formatting of list while doing so. |
Google Keep has a neat interface for this: @spocke How hard would this be to make as a TinyMCE improvement? On a scale from "trivial" to "nightmare hellride". Edit: just to clarify, not asking for checkboxes, just the drag and drop UI for rearranging list items |
Something to keep in mind here as well are nested lists:
|
Other requirements to think about:
- Ending list when you are in the last item and it is empty and you hit
enter again
- Splitting lists into two lists if you hit enter twice in the middle of
the list
- Joining two lists if you hit delete key at first character and there is a
list before it
…On Wed, Mar 29, 2017 at 4:28 AM, Ella ***@***.***> wrote:
Something to keep in mind here as well are nested lists:
- Down
- down
- down the rabbit hole.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#346 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACD2sI_TATUYjNTVPiLGNpmvnRQEe5_lks5rqkBzgaJpZM4MsuUr>
.
|
It might become complicated on nested lists since how do you drag between levels. For example beginning of a indented list is the same location as after the unindented item. The location between these two are the same but the user could want to drag before b inside that list or after a.1. However I guess that could be done by just supporting the "a" case and the user would have to indent it to get it to the same level as "b".
|
I think maybe instead of dragging, just up/down arrows like we do for blocks themselves could be interesting. |
The |
Yeah, constraining TinyMCE to "just" handle lists isn't really what it's made for, so not sure how that would work. |
Moved some thoughts about a Smart Text Block to #349 |
We have made a start on list block: #358 |
Just an update on the implementation of the block plugin. As I will be away for the next two weeks, at this moment we merged in basic editing and implementation for the editor and block level operations (align). |
@mimo84 @intronic I see the list block in master, hooray! I also noticed the alignments, which were part of the mockups initially. Upon reflection it doesn't seem like text align makes any sense at all in the list block, do you agree? On the other hand, indent and unindent makes a lot of sense to have, so I've updated the mockups on this page. Let me know if you're still working on these and/or could use some help. |
@jasmussen To create the list as shown in the mockups above it seems I will need to have an ordered and unordered variant so I can create transforms between them (looking at the heading block for an example). Alternatively I could create buttons like with the alignment selector or the heading levels. Which is the preferred approach? |
I think it may be good to focus on those blocks primarily, as opposed to the flow. Because the flow for creating lists might evolve, as tracked here: #539 (comment) In other words, we know that we'll need the two list blocks. But we haven't fully decided what the best approach for creating them is. Thanks! Please reach out here or in DM or anywhere, if I can be of more help. |
As an update, your PR looks great, and I think we should get it merged in without any more feature work. That will close this ticket. Future enhancements, like flows for creating lists, and whether a list is a single or multiple blocks, I will open separate tickets for that. |
@jasmussen I've updated the pull request to a mergeable state. Should I merge it myself or should that be done by reviewers? Is the procedure that wordpress follows documented somewhere? |
Nice work! You can merge it yourself once it's approved by the reviewers. I'll ask and see if we can get that expedited! |
Closing in favor of #704 🎉 |
Attributes
Markup
States
Existing text:
Switching to a list:
Selected:
Neutral unordered:
Hover:
Neutral ordered:
Placeholder, when inserted as a block:
The text was updated successfully, but these errors were encountered: