Skip to content
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: Add table support for TipTap editor #42

Merged
merged 5 commits into from
Dec 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 <angelo.dini@divio.ch>, 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 <angelo.dini@divio.ch>, 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
Loading