add header and styles to fit for iframe insertions

This commit is contained in:
Tim Krehan 2019-06-04 11:20:52 +02:00
parent 5cb5edcfaa
commit e169a36e5b
3 changed files with 9 additions and 6 deletions

View file

@ -35,11 +35,9 @@
} }
echo "</div>"; echo "</div>";
echo "<div class='card-body'>"; echo "<div class='recipe-card-body card-body embed-responsive-16by9'>";
echo "<h2 class='card-title'>Zubereitung</h2>"; echo "<h2 class='card-title'>Zubereitung</h2>";
foreach(explode("\r\n", $recipe->Beschreibung) as $paragraph){ echo $recipe->Beschreibung;
echo "<p>$paragraph</p>";
}
echo "</div>"; echo "</div>";
echo '</div>'; echo '</div>';

View file

@ -12,12 +12,12 @@ $(document).ready(function () {
codeviewFilter: true, codeviewFilter: true,
codeviewIframeFilter: true, codeviewIframeFilter: true,
toolbar: [ toolbar: [
['misc', ['undo', 'redo']], ['style', ['style', 'bold', 'italic', 'underline', 'strikethrough', 'superscript', 'subscript', 'clear']],
['style', ['bold', 'italic', 'underline', 'strikethrough', 'superscript', 'subscript', 'clear']],
['font', ['color', 'fontsize']], ['font', ['color', 'fontsize']],
['para', ['ul', 'ol', 'paragraph']], ['para', ['ul', 'ol', 'paragraph']],
['table', ['table']], ['table', ['table']],
['insert', ['link', 'picture', 'video']], ['insert', ['link', 'picture', 'video']],
['misc', ['undo', 'redo']],
['view', ['codeview', 'help']] ['view', ['codeview', 'help']]
] ]
}); });

View file

@ -31,3 +31,8 @@
.nav-link-font { .nav-link-font {
font-size: 16px !important; font-size: 16px !important;
} }
.recipe-card-body iframe{
height: unset !important;
width: unset !important;
}