-
Notifications
You must be signed in to change notification settings - Fork 18
Integrated multi cell selection with set column /row header commands #268
Conversation
…sEnabled properties.
…nabled properties in case of multi-cell selection.
Toggling is not yet supported.
…ies with multiple cell selection.
Rebased onto the latest |
Just pushed one missing commit, sorry for that 🙈 @ckeditor/qa-team |
~ Conflicts: ~ src/commands/setheadercolumncommand.js ~ src/commands/setheaderrowcommand.js
Merged latest master, resolved conflicts. |
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.
LGTM.
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.
Apart from what I mentioned above, LGTM.
I believe that exactly the same behavior is present on |
~ Conflicts: ~ src/commands/setheadercolumncommand.js
Merged the |
Suggested merge commit message (convention)
Type: Integrated multi cell selection with set column /row header commands. Closes ckeditor/ckeditor5#6127.
Additional information
After this PR the header command state could get a third state - "mixed" because it's possible to make selection where only part of it contains headers:
However to simplify things, I implemented it in a way that command state is true only when all selected cells contain header. Otherwise it's
false
.I have based this PR on #266 as this PR adds the API that was useful for this enhancement.Rebased onto master, after #265 added API that I was mocking before.