Skip to content

Commit

Permalink
Add basic table support to tiptap
Browse files Browse the repository at this point in the history
  • Loading branch information
fsbraun committed Apr 3, 2024
1 parent 08711f4 commit 9f5b437
Show file tree
Hide file tree
Showing 6 changed files with 214 additions and 198 deletions.
1 change: 1 addition & 0 deletions djangocms_text/editors.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ def default(self, obj):
},
"Table": {
"title": _("Table"),
"icon": '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-table" viewBox="0 0 16 16"><path d="M0 2a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2zm15 2h-4v3h4zm0 4h-4v3h4zm0 4h-4v3h3a1 1 0 0 0 1-1zm-5 3v-3H6v3zm-5 0v-3H1v2a1 1 0 0 0 1 1zm-4-4h4V8H1zm0-4h4V4H1zm5-3v3h4V4zm4 4H6v3h4z"/></svg>',
},
"Code": {
"title": _("Code"),
Expand Down
Loading

0 comments on commit 9f5b437

Please sign in to comment.