Skip to content

Commit

Permalink
Merge pull request #15 from django-tiptap/show-hide-table-borders
Browse files Browse the repository at this point in the history
Option to show/hide table borders
  • Loading branch information
sereneinserenade authored Dec 2, 2021
2 parents c1de948 + 93299f0 commit 0b5da61
Show file tree
Hide file tree
Showing 3 changed files with 346 additions and 40 deletions.
2 changes: 2 additions & 0 deletions django_tiptap/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
"toggleHeaderColumn": "Toggle Header Column",
"toggleHeaderRow": "Toggle Header Row",
"toggleHeaderCell": "Toggle Header Cell",
"toggleTableBorders": "Toggle Table Borders",
"clearFormat": "Clear Format",
"jinjaHighlight": "Jinja Highlight",
"rows": "Rows",
Expand Down Expand Up @@ -100,6 +101,7 @@
"toggleHeaderColumn": "Kopfspalte ein/ausschalten",
"toggleHeaderRow": "Kopfzeile ein/auschalten",
"toggleHeaderCell": "Kopfzelle ein/auschalten",
"toggleTableBorders": "Ränder ein/ausblenden",
"clearFormat": "Formatierung entfernen",
"jinjaHighlight": "Jinja Markierungen",
"rows": "Zeilen",
Expand Down
6 changes: 6 additions & 0 deletions django_tiptap/static/django_tiptap/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,12 @@
position: relative;
}

.ProseMirror table[show_borders="false"] td,
.ProseMirror table[show_borders="false"] th {
border: none;
box-sizing: border-box;
}

.ProseMirror table td > *,
.ProseMirror table th > * {
margin-bottom: 0;
Expand Down
Loading

0 comments on commit 0b5da61

Please sign in to comment.