From fc3670446379c237b85a9f5783d532c4bb3e94f8 Mon Sep 17 00:00:00 2001 From: Tim Krehan Date: Tue, 4 Jun 2019 09:56:31 +0200 Subject: [PATCH] update editor and size of table column --- install/install_action.php | 2 +- js/manageRecipe.js | 14 +++++++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/install/install_action.php b/install/install_action.php index 8912b2e..34ed740 100644 --- a/install/install_action.php +++ b/install/install_action.php @@ -95,7 +95,7 @@ CREATE TABLE `Rezept` ( `ID` int(11) NOT NULL, `Name` varchar(255) NOT NULL, `Dauer` int(11) NOT NULL, - `Beschreibung` text NOT NULL + `Beschreibung` longtext NOT NULL ) ENGINE = InnoDB CHARSET=utf8mb4 COLLATE utf8mb4_unicode_ci;"); array_push($SQLStatements, " diff --git a/js/manageRecipe.js b/js/manageRecipe.js index f67c197..20f0b65 100644 --- a/js/manageRecipe.js +++ b/js/manageRecipe.js @@ -7,7 +7,19 @@ $(document).ready(function () { $(".autocomplete-ingredient").on("input", autocomplete); $('#recipeDescription').summernote({ - + height: 300, + dialogsFade: true, + codeviewFilter: true, + codeviewIframeFilter: true, + toolbar: [ + ['misc', ['undo', 'redo']], + ['style', ['bold', 'italic', 'underline', 'strikethrough', 'superscript', 'subscript', 'clear']], + ['font', ['color', 'fontsize']], + ['para', ['ul', 'ol', 'paragraph']], + ['table', ['table']], + ['insert', ['link', 'picture', 'video']], + ['view', ['codeview', 'help']] + ] }); });