-
Notifications
You must be signed in to change notification settings - Fork 5
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: table splitting #52
base: main
Are you sure you want to change the base?
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.
Thank you for putting the time into this. I'll be honest - I haven't actually tested your code to see if it works yet.
I'd like you to fix up where I've added comments, then I'd be happy to give it a test.
Let me know if you have any questions.
@@ -73,4 +73,4 @@ const PaginationPlugin = new Plugin({ | |||
}, | |||
}); | |||
|
|||
export default PaginationPlugin; | |||
export default PaginationPlugin; |
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.
There should be a trailing blank line here.
Get prettier if you are using vscode
@@ -819,4 +934,4 @@ export const paginationUpdateCursorPosition = (tr: Transaction, newCursorPos: Nu | |||
} else { | |||
setSelectionAtEndOfDocument(tr); | |||
} | |||
}; | |||
}; |
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.
Blank line here required
Thanks for this thorough review. Can you kindly share your |
Sure gimme a moment to make one. |
Okay I've pushed a |
4dba4e4
to
ce22674
Compare
All raised issues should be resolved. |
Great. I'll try to test it now |
No worries. Quite understandable and same for me . I ended up plugging into
umo to test ...only in v5 they've removed pagination.
Anyway, feel free to use or not as you wish :)
…On Tue, 28 Jan 2025, 11:41 Hugo Burton, ***@***.***> wrote:
Great. I'll try to test it now
I will admit I haven't played much with tables in Tiptap so it might take
me a bit to get a test environment working
—
Reply to this email directly, view it on GitHub
<#52 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAR3CPRBZQGDSJ3ZUQUDWM32M5NGBAVCNFSM6AAAAABVVIF7N6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMJYGYZDKMBTGA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Out of time for me tonight. I'll try again tomorrow. Oh I'll definitely add your work in - it's clear you've put a bit of time into it |
@azriel46d Thank you for your efforts! I know the author of umo. In addition, the paging function was made by another person. Now the paging person has no time to support the umo editor, which leads to more bugs in actual application. Therefore, the paging function was deleted in the v5 version and moved to the break-v4 branch. In addition, I have a little question, can your current table paging extension be able to cut cells? After all, once the cells are too large, they will leave a lot of blank space. |
Right now it does not support cell splitting. It's an attempt to start and
table splitting at row. That would be the natural next step to split and
rejoin a row . It should follow probably the same approach in which on
splitting a row there is a shared ID to regroup if needs be.
…On Thu, 6 Feb 2025, 10:58 Yihe Zhu, ***@***.***> wrote:
@azriel46d <https://github.com/azriel46d> Thank you for your efforts! I
know the author of umo. In addition, the paging function was made by
another person. Now the paging person has no time to support the umo
editor, which leads to more bugs in actual application. Therefore, the
paging function was deleted in the v5 version and moved to the break-v4
branch. In addition, I have a little question, can your current table
paging extension be able to cut cells? After all, once the cells are too
large, they will leave a lot of blank space.
—
Reply to this email directly, view it on GitHub
<#52 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAR3CPTXLCHEMEVHBAAFQVL2OMW3RAVCNFSM6AAAAABVVIF7N6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMZZGM2DONJSGM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
This PR addresses basic table splitting. see #43
Future improvements
Note the table attributes need to be extended to support
groupId
Video is as part of umo-editor
table-splitting.mov