-
Notifications
You must be signed in to change notification settings - Fork 116
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
feat: bumping plate to v30 [TOL-1834] #1605
Conversation
"@udecode/plate-list": "30.1.2", | ||
"@udecode/plate-paragraph": "30.1.2", | ||
"@udecode/plate-reset-node": "30.1.2", | ||
"@udecode/plate-select": "30.1.2", | ||
"@udecode/plate-serializer-docx": "23.7.0", |
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.
A lot of the pasting from word online and google doc break with this update. Probably better to handle in another ticket
packages/rich-text/src/plugins/Table/withInsertFragmentTable.ts
Outdated
Show resolved
Hide resolved
// copied from the 'is-hotkey' library we use for RichText shortcuts | ||
const IS_MAC = | ||
typeof window != 'undefined' && /Mac|iPod|iPhone|iPad/.test(window.navigator.platform); | ||
const mod = IS_MAC ? 'meta' : 'control'; |
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.
It was unused?
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.
It is not used anymore, highlighting table content in a different way now as the test was breaking due to the CMD+A logic
packages/rich-text/src/plugins/Table/withInsertFragmentTable.ts
Outdated
Show resolved
Hide resolved
packages/rich-text/src/plugins/Table/withInsertFragmentTable.ts
Outdated
Show resolved
Hide resolved
packages/rich-text/src/plugins/Table/withInsertFragmentTable.ts
Outdated
Show resolved
Hide resolved
packages/rich-text/src/plugins/Table/withInsertFragmentTable.ts
Outdated
Show resolved
Hide resolved
Wonder, how we're gonna merge these 🫠 |
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 👍🏻 . Left a comment that can be handled in a follow up
@@ -177,10 +173,15 @@ describe('Rich Text Editor', { viewportHeight: 2000 }, () => { | |||
); | |||
}); | |||
|
|||
it('does not delete table header cells when selecting the whole table', () => { | |||
it('does not delete table header cells when selecting the whole header row', () => { |
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'd argue this is now a completely different test and probably worth a follow up to see if it's even needed.
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.
Totally agree, will sync with @colomolo on this tomorrow
Bumping the plate plugin dependencies for rich text to v30