Skip to content

Commit

Permalink
Resolves kiwitcms#1531 Add "insert table" button to toolbar
Browse files Browse the repository at this point in the history
Change adds "table" toolbar option in SimpleMDE config
  • Loading branch information
brymut committed Jun 10, 2020
1 parent 508564d commit 9857741
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tcms/core/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ def render(self, name, value, attrs=None, renderer=None):
<script>
var simplemde = new SimpleMDE({
element: document.getElementById("%s"),
autoDownloadFontAwesome: false
autoDownloadFontAwesome: false,
toolbar: ["bold", "italic", "heading", "|", "quote",
"unordered-list", "ordered-list", "|", "link", "image",
"table", "|", "preview", "side-by-side", "fullscreen", "|", "guide"]
});
</script>
""" % attrs['id']
Expand Down

0 comments on commit 9857741

Please sign in to comment.