Possible to chain extend and configure? #5678
-
Hello! I am looking to chain and configure the wonderful Table plugin all in one go. Something along the lines of:
Is this possible? Thank you in advance for any help! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Both the methods, return you the extension which allows to chain them together. I think all the official extensions will allow you to do that |
Beta Was this translation helpful? Give feedback.
-
Hi, Thanks again for the answer to this one. Just to further clarify (and help anyone else who got stuck in the same position I was), it seems that when I basically created my own CustomTableView (based on this view in the plugin: https://github.com/ueberdosis/tiptap/blob/main/packages/extension-table/src/TableView.ts) and added this code in the constructor:
Then used that in the Works like a charm! If anyone needs any more info on the workaround, I'd be happy to provide more info. |
Beta Was this translation helpful? Give feedback.
Both the methods, return you the extension which allows to chain them together. I think all the official extensions will allow you to do that