-
Notifications
You must be signed in to change notification settings - Fork 2
i/6536: Implemented the select all feature #1
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Basically I see room for improvement in tests. Maybe it is worth testing it with table > image also?
I'm confused with the keystrokes
vs listenTo( viewDocument )
usage as I don't see difference in them and personally I would use editor.keystrokes
. So this is question to @Reinmar alongside @oleq ones.
ps.: besides that LGTM 👍 for merging.
} ); | ||
} ); | ||
|
||
describe( 'execute()', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that we are safe but WDYT about adding a table test?
This would be a scenario for nested-nested editable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nested editable is tested in the image caption.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, but a nested editable in a nested editable case - to be sure that we select inner, not the outer nested editable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright, makes sense 👍
…ed editable structure.
Ready for another round of review. |
An afterthought: do you think it would be a nice UX if pressing Ctrl+A in a nested editable which content is already selected (double Ctrl+A) selected the closest limit ancestor? For instance, root->table->cell->image width caption. Double Ctrl+A in the caption would select the entire content of a cell. And a double Ctrl+A would select the entire root. |
👍 because of the "select all" button. Otherwise, it will be extremely hard to find. |
Just to make sure that I understand correctly. In the following case:
Sounds great. |
Honestly, I’d skip 2 and 4. They don’t feel like select all but widget features. |
See #1 (comment). |
Could be this way too 👍 This would also invalidate my previous comment. |
Co-Authored-By: Piotrek Koszuliński <pkoszulinski@gmail.com>
Created.
I created a follow-up: ckeditor/ckeditor5#6621. I think this could be a great intro ticket. Ready for another round of review :) |
Feature: Implemented the select all feature. Closes ckeditor/ckeditor5#6536.
To be merged together with:
Widget
plugin.SelectAll
takes care of widgets now.Q: Do we need a feature guide? That would be a very short one but maybe it's worth adding. cc @Reinmar
FYI: The feature brings a UI button, which looks as follows: