-
Notifications
You must be signed in to change notification settings - Fork 40
I/6154: Allow selection on object element (ie. on table cells) #1820
Conversation
# Conflicts: # src/model/utils/selection-post-fixer.js # tests/model/utils/selection-post-fixer.js
# Conflicts: # src/view/view.js
From what I can see you mostly removed outdated code and added this single function for fixing intersecting ranges. That sounds fine. I guess we could have some more tests for some less and more ugly scenarios. E.g.:
Also, I thought about a case when one range is inside a cell and the other outside. Maybe it should be a general rule that if a single range is an object range, all ranges must be object ranges? |
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.
As commented.
Co-Authored-By: Piotrek Koszuliński <pkoszulinski@gmail.com>
@Reinmar I've added some scenarios and when thinking about other ones it looked like they're covered elsewhere (mostly by the |
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.
Self R- 👎
Do not merge.
Self R+ 👍 It turned out to be some problems with manual tests during refactoring. Review ;) |
BTW, there's no "Enhancement" type of change yet. I usually use "Other". |
Suggested merge commit message (convention)
Enhancement: Allow selection on object elements. Closes ckeditor/ckeditor5#6154.
Additional information
This PR introduces required selection post-fixer changes for table selection.
Those are a minimal engine changes required to allow multi-range selection on object elements (table cells).
Two tests in image and table were required update because a test case:
was post-fixed by proposed post-fixer to:
fixed to:
This case might need to be checked wheter it is OK or not.
Sub PRs: