From 1714d2d7b9746df7229a690ac723b42b3a56f376 Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Tue, 13 Feb 2018 21:32:05 -0700 Subject: [PATCH] Specify editor toolbars --- static/js/content.js | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/static/js/content.js b/static/js/content.js index 5686880..d87026a 100644 --- a/static/js/content.js +++ b/static/js/content.js @@ -5,7 +5,15 @@ $(".edit-btn").click(function () { var tileid = $(this).data("tile"); $("#tile-" + tileid + "-content .tile-html").summernote({ - focus: true + focus: true, + toolbar: [ + ['style', ['bold', 'italic', 'underline', 'clear']], + ['font', ['strikethrough', 'superscript', 'subscript']], + ['insert', ['picture', 'link', 'video', 'table']], + ['fontsize', ['fontsize']], + ['para', ['ul', 'ol', 'paragraph']], + ['height', ['height']] + ] }); }); @@ -84,9 +92,9 @@ function safeReload() { } /** - * Returns true if the tile is being edited, + * Returns true if the tile is being edited, * false otherwise. - * + * * @param number tileid * @returns boolean */