Add Tables feature to the Editor (#340)

* Install table extension

* Add the table extension to editor

* Add table button to toolbar

* Fix packages

* Add table icon

* Add table style

* Change table style

* Add buttons to add rows and columns

* Add buttons to remove columns and rows

* Fix resize icon
This commit is contained in:
Eduard-Constantin Ibinceanu 2024-10-23 20:08:41 +03:00 committed by GitHub
parent e6979ed1b4
commit ba6d17827b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 154 additions and 0 deletions

View file

@ -65,6 +65,18 @@ importers:
'@tiptap/extension-collaboration-cursor':
specifier: ^2.8.0
version: 2.8.0(@tiptap/core@2.8.0(@tiptap/pm@2.8.0))(y-prosemirror@1.2.12(prosemirror-model@1.23.0)(prosemirror-state@1.4.3)(prosemirror-view@1.34.3)(y-protocols@1.0.6(yjs@13.6.19))(yjs@13.6.19))
'@tiptap/extension-table':
specifier: ^2.8.0
version: 2.8.0(@tiptap/core@2.8.0(@tiptap/pm@2.8.0))(@tiptap/pm@2.8.0)
'@tiptap/extension-table-cell':
specifier: ^2.8.0
version: 2.8.0(@tiptap/core@2.8.0(@tiptap/pm@2.8.0))
'@tiptap/extension-table-header':
specifier: ^2.8.0
version: 2.8.0(@tiptap/core@2.8.0(@tiptap/pm@2.8.0))
'@tiptap/extension-table-row':
specifier: ^2.8.0
version: 2.8.0(@tiptap/core@2.8.0(@tiptap/pm@2.8.0))
'@tiptap/extension-youtube':
specifier: ^2.8.0
version: 2.8.0(@tiptap/core@2.8.0(@tiptap/pm@2.8.0))
@ -1586,6 +1598,27 @@ packages:
peerDependencies:
'@tiptap/core': ^2.7.0
'@tiptap/extension-table-cell@2.8.0':
resolution: {integrity: sha512-IZpxONWyOd474L8+k4bHrFNRhbsl9eRwbNs5O877JkVFItc2WUz1DIhbJzjmBRsqExtWQJuOsiqWFab1kpiwGQ==}
peerDependencies:
'@tiptap/core': ^2.7.0
'@tiptap/extension-table-header@2.8.0':
resolution: {integrity: sha512-B67A96yMQlG96IFzZBc7D5dnn7O29hcjuDLtjyZkKvU5D/RlFKPMmC9nVphCV3CnbkvEOZUdK9pNaOpen64naw==}
peerDependencies:
'@tiptap/core': ^2.7.0
'@tiptap/extension-table-row@2.8.0':
resolution: {integrity: sha512-Iezej6l7X+WqKzGLmCgAwmpL+QsfjFv1g8yVH5d0/3Pkcj3G9nDn+GSm4bZnbfYFyqInHG94PZ5PMReiALrJtA==}
peerDependencies:
'@tiptap/core': ^2.7.0
'@tiptap/extension-table@2.8.0':
resolution: {integrity: sha512-dm9CitjacXyJuE5SZfV2lUc3uOiP2sxo6fygIzMz7iuxHqQueyONWG+TBkK7HjqzXOiMPsvOf/25NazzIG8HMg==}
peerDependencies:
'@tiptap/core': ^2.7.0
'@tiptap/pm': ^2.7.0
'@tiptap/extension-text-style@2.8.0':
resolution: {integrity: sha512-jJp0vcZ2Ty7RvIL0VU6dm1y+fTfXq1lN2GwtYzYM0ueFuESa+Qo8ticYOImyWZ3wGJGVrjn7OV9r0ReW0/NYkQ==}
peerDependencies:
@ -5492,6 +5525,23 @@ snapshots:
dependencies:
'@tiptap/core': 2.8.0(@tiptap/pm@2.8.0)
'@tiptap/extension-table-cell@2.8.0(@tiptap/core@2.8.0(@tiptap/pm@2.8.0))':
dependencies:
'@tiptap/core': 2.8.0(@tiptap/pm@2.8.0)
'@tiptap/extension-table-header@2.8.0(@tiptap/core@2.8.0(@tiptap/pm@2.8.0))':
dependencies:
'@tiptap/core': 2.8.0(@tiptap/pm@2.8.0)
'@tiptap/extension-table-row@2.8.0(@tiptap/core@2.8.0(@tiptap/pm@2.8.0))':
dependencies:
'@tiptap/core': 2.8.0(@tiptap/pm@2.8.0)
'@tiptap/extension-table@2.8.0(@tiptap/core@2.8.0(@tiptap/pm@2.8.0))(@tiptap/pm@2.8.0)':
dependencies:
'@tiptap/core': 2.8.0(@tiptap/pm@2.8.0)
'@tiptap/pm': 2.8.0
'@tiptap/extension-text-style@2.8.0(@tiptap/core@2.8.0(@tiptap/pm@2.8.0))':
dependencies:
'@tiptap/core': 2.8.0(@tiptap/pm@2.8.0)