Skip to content

Commit

Permalink
feat: Add table support for TipTap editor (#42)
Browse files Browse the repository at this point in the history
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
  • Loading branch information
fsbraun and sourcery-ai[bot] authored Dec 23, 2024
1 parent 5281364 commit ee5db1a
Show file tree
Hide file tree
Showing 39 changed files with 1,823 additions and 668 deletions.
24 changes: 24 additions & 0 deletions djangocms_text/editors.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,30 @@ def default(self, obj):
"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>',
},
"addRowBefore": {
"title": _("Add row before"),
},
"addRowAfter": {
"title": _("Add row after"),
},
"addColumnBefore": {
"title": _("Add column before"),
},
"addColumnAfter": {
"title": _("Add column after"),
},
"deleteRow": {
"title": _("Delete row"),
},
"deleteColumn": {
"title": _("Delete column"),
},
"deleteTable": {
"title": _("Delete table"),
},
"mergeOrSplit": {
"title": _("Merge or split cells"),
},
"Code": {
"title": _("Code"),
"icon": '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-code" viewBox="0 0 16 16">\n'
Expand Down
70 changes: 51 additions & 19 deletions djangocms_text/locale/ar/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-12-22 01:08+0100\n"
"POT-Creation-Date: 2024-12-22 23:13+0100\n"
"PO-Revision-Date: 2019-01-23 16:28+0000\n"
"Last-Translator: Angelo Dini <[email protected]>, 2019\n"
"Language-Team: Arabic (https://www.transifex.com/divio/teams/58664/ar/)\n"
Expand Down Expand Up @@ -151,78 +151,110 @@ msgid "Table"
msgstr ""

#: editors.py:213
msgid "Code"
msgid "Add row before"
msgstr ""

#: editors.py:216
msgid "Add row after"
msgstr ""

#: editors.py:219
msgid "Small"
msgid "Add column before"
msgstr ""

#: editors.py:222
msgid "Keyboard input"
msgid "Add column after"
msgstr ""

#: editors.py:225
msgid "Delete row"
msgstr ""

#: editors.py:228
msgid "Delete column"
msgstr ""

#: editors.py:231
msgid "Delete table"
msgstr ""

#: editors.py:234
msgid "Merge or split cells"
msgstr ""

#: editors.py:237
msgid "Code"
msgstr ""

#: editors.py:243
msgid "Small"
msgstr ""

#: editors.py:246
msgid "Keyboard input"
msgstr ""

#: editors.py:252
msgid "Code block"
msgstr ""

#: editors.py:235
#: editors.py:259
msgid "Heading 1"
msgstr ""

#: editors.py:241
#: editors.py:265
msgid "Heading 2"
msgstr ""

#: editors.py:247
#: editors.py:271
msgid "Heading 3"
msgstr ""

#: editors.py:253
#: editors.py:277
msgid "Heading 4"
msgstr ""

#: editors.py:259
#: editors.py:283
msgid "Heading 5"
msgstr ""

#: editors.py:265
#: editors.py:289
msgid "Heading 6"
msgstr ""

#: editors.py:271
#: editors.py:295
msgid "Paragraph"
msgstr ""

#: editors.py:277
#: editors.py:301
msgid "Anchor"
msgstr ""

#: editors.py:280
#: editors.py:304
msgid "Block format"
msgstr ""

#: editors.py:284
#: editors.py:308
msgid "Styles"
msgstr ""

#: editors.py:288
#: editors.py:312
msgid "Font"
msgstr ""

#: editors.py:291
#: editors.py:315
msgid "Font size"
msgstr ""

#: editors.py:294 editors.py:295 widgets.py:240 widgets.py:243
#: editors.py:318 editors.py:319 widgets.py:240 widgets.py:243
msgid "CMS Plugins"
msgstr ""

#: editors.py:296 widgets.py:242
#: editors.py:320 widgets.py:242
msgid "Edit CMS Plugin"
msgstr ""

#: editors.py:297 widgets.py:241
#: editors.py:321 widgets.py:241
msgid "Add CMS Plugin"
msgstr ""

Expand Down
70 changes: 51 additions & 19 deletions djangocms_text/locale/bn/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-12-22 01:08+0100\n"
"POT-Creation-Date: 2024-12-22 23:13+0100\n"
"PO-Revision-Date: 2019-01-23 16:28+0000\n"
"Last-Translator: Angelo Dini <[email protected]>, 2019\n"
"Language-Team: Bengali (https://www.transifex.com/divio/teams/58664/bn/)\n"
Expand Down Expand Up @@ -150,78 +150,110 @@ msgid "Table"
msgstr ""

#: editors.py:213
msgid "Code"
msgid "Add row before"
msgstr ""

#: editors.py:216
msgid "Add row after"
msgstr ""

#: editors.py:219
msgid "Small"
msgid "Add column before"
msgstr ""

#: editors.py:222
msgid "Keyboard input"
msgid "Add column after"
msgstr ""

#: editors.py:225
msgid "Delete row"
msgstr ""

#: editors.py:228
msgid "Delete column"
msgstr ""

#: editors.py:231
msgid "Delete table"
msgstr ""

#: editors.py:234
msgid "Merge or split cells"
msgstr ""

#: editors.py:237
msgid "Code"
msgstr ""

#: editors.py:243
msgid "Small"
msgstr ""

#: editors.py:246
msgid "Keyboard input"
msgstr ""

#: editors.py:252
msgid "Code block"
msgstr ""

#: editors.py:235
#: editors.py:259
msgid "Heading 1"
msgstr ""

#: editors.py:241
#: editors.py:265
msgid "Heading 2"
msgstr ""

#: editors.py:247
#: editors.py:271
msgid "Heading 3"
msgstr ""

#: editors.py:253
#: editors.py:277
msgid "Heading 4"
msgstr ""

#: editors.py:259
#: editors.py:283
msgid "Heading 5"
msgstr ""

#: editors.py:265
#: editors.py:289
msgid "Heading 6"
msgstr ""

#: editors.py:271
#: editors.py:295
msgid "Paragraph"
msgstr ""

#: editors.py:277
#: editors.py:301
msgid "Anchor"
msgstr ""

#: editors.py:280
#: editors.py:304
msgid "Block format"
msgstr ""

#: editors.py:284
#: editors.py:308
msgid "Styles"
msgstr ""

#: editors.py:288
#: editors.py:312
msgid "Font"
msgstr ""

#: editors.py:291
#: editors.py:315
msgid "Font size"
msgstr ""

#: editors.py:294 editors.py:295 widgets.py:240 widgets.py:243
#: editors.py:318 editors.py:319 widgets.py:240 widgets.py:243
msgid "CMS Plugins"
msgstr ""

#: editors.py:296 widgets.py:242
#: editors.py:320 widgets.py:242
msgid "Edit CMS Plugin"
msgstr ""

#: editors.py:297 widgets.py:241
#: editors.py:321 widgets.py:241
msgid "Add CMS Plugin"
msgstr ""

Expand Down
Loading

0 comments on commit ee5db1a

Please sign in to comment.