-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Can't indent lists on iPad without hardware keyboard #868
Comments
I see 3 approaches here. All start with: Pre-requirementsWe need 2 new buttons linked to // Register commands for indenting.
editor.commands.add( 'indentList', new IndentCommand( editor, 'forward' ) );
editor.commands.add( 'outdentList', new IndentCommand( editor, 'backward' ) ); like we used to have in v4. Approach 1: KISSThe developers could configure the buttons to appear in the toolbar ( Approach 2: DropdownWe implement a list dropdown. A split button-based dropdown which, just like the highlight:
Approach 3: FloatingThe tricky approach. Whenever the selection lands in a list item, a floating toolbar is displayed (like when the image widget is selected), with a toolbar Pros:
Cons:
|
I have the same feeling about approach 3. It might be too annoying. Approach 2. might be ok, but I'm not sure if we should merge two list types into one dropdown or keep them separate. Merging would mean that indent/outdent buttons wouldn't duplicate, but I'm afraid of the confusion which one button might bring. Plus, there would be a bit of collision once we'll implement a text indent plugin (although, it would still all work just fine). Finally, the approach 1. is what most editors do, but if we'd went this way, we'd need to have indent/outdent buttons in all builds. And that's certainly a thing that we'd like to avoid. So, a dropdown seems best. |
On the second thought, the drop-down could have some issues. For example, in the future we probably expect different list types to be available like in GDocs so the drop-down will be "reserved" for list types. We could put both numbered and bulleted lists there, that's some option, but where to put the indent/outdent buttons? Underneath the thumbnails? Maybe instead of aggregating everything there, let's create a dropdown for indentation only? So the editor toolbar would be |
OTTH, keeping things in the dropdowns isn't the best UX for touch devices IMO. But with that observation, we're back to ckeditor/ckeditor5-design#149, which is a very general problem. |
Adding something like
doesn't work so well, it seems to insert a single "space", only mid-string, not at position Using
works better but it's not a tab :P Ref: mozilla/notes#736 |
Hi @vladikoff. Representation of tabs is not related to this ticket. This ticket is about UI which would allow indenting lists on devices with on-screen keyboards. Rendering and accepting tabs is ckeditor5-engine's limitation now – intentional to simplify some DOM<->view conversion, but not permanent. Could you report a separate ticket in https://github.com/ckeditor/ckeditor5-engine for it? |
Are there any updates on the status of this request? |
We implemented indent/outdent buttons (see http://github.com/ckeditor/ckeditor5-indent). Starting from the next week (when we release them) people will be able to add those buttons to their toolbars. We're also considering adding them to all the builds by default, but there are some obstacles: #1844 |
We added indent/outdent buttons to all builds so I consider this issue closed. |
Thank you!!! |
🐞 Is this a bug report or feature request? (choose one)
Bug report
💻 Version of CKEditor
CKEditor5 ClassicEditor
📋 Steps to reproduce
✅ Expected result
Some ability to indent lists on iPad
❎ Actual result
Can't indent lists on iPad
The text was updated successfully, but these errors were encountered: