From e169a36e5b9f70d623fd527cb19b7222137cf53f Mon Sep 17 00:00:00 2001 From: Tim Krehan Date: Tue, 4 Jun 2019 11:20:52 +0200 Subject: [PATCH] add header and styles to fit for iframe insertions --- cont/recipe.php | 6 ++---- js/manageRecipe.js | 4 ++-- style/helper.css | 5 +++++ 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/cont/recipe.php b/cont/recipe.php index 2287063..26d28c4 100644 --- a/cont/recipe.php +++ b/cont/recipe.php @@ -35,11 +35,9 @@ } echo ""; - echo "
"; + echo "
"; echo "

Zubereitung

"; - foreach(explode("\r\n", $recipe->Beschreibung) as $paragraph){ - echo "

$paragraph

"; - } + echo $recipe->Beschreibung; echo "
"; echo '
'; diff --git a/js/manageRecipe.js b/js/manageRecipe.js index 20f0b65..7f82335 100644 --- a/js/manageRecipe.js +++ b/js/manageRecipe.js @@ -12,12 +12,12 @@ $(document).ready(function () { codeviewFilter: true, codeviewIframeFilter: true, toolbar: [ - ['misc', ['undo', 'redo']], - ['style', ['bold', 'italic', 'underline', 'strikethrough', 'superscript', 'subscript', 'clear']], + ['style', ['style', 'bold', 'italic', 'underline', 'strikethrough', 'superscript', 'subscript', 'clear']], ['font', ['color', 'fontsize']], ['para', ['ul', 'ol', 'paragraph']], ['table', ['table']], ['insert', ['link', 'picture', 'video']], + ['misc', ['undo', 'redo']], ['view', ['codeview', 'help']] ] }); diff --git a/style/helper.css b/style/helper.css index 5b2d0a6..2a8777d 100644 --- a/style/helper.css +++ b/style/helper.css @@ -30,4 +30,9 @@ .nav-link-font { font-size: 16px !important; +} + +.recipe-card-body iframe{ + height: unset !important; + width: unset !important; } \ No newline at end of file