From f304d97b14e0ef383509cb3bba50beb55bf701ba Mon Sep 17 00:00:00 2001 From: Yassine Doghri <yassine@doghri.fr> Date: Wed, 2 Feb 2022 14:58:59 +0000 Subject: [PATCH] fix(podcast): use markdown description value for editor + set prose class to about description fixes #156 --- themes/cp_admin/podcast/edit.php | 2 +- themes/cp_app/podcast/about.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/themes/cp_admin/podcast/edit.php b/themes/cp_admin/podcast/edit.php index 428a6dded0..a895d19ccd 100644 --- a/themes/cp_admin/podcast/edit.php +++ b/themes/cp_admin/podcast/edit.php @@ -67,7 +67,7 @@ as="MarkdownEditor" name="description" label="<?= lang('Podcast.form.description') ?>" - value="<?= htmlspecialchars($podcast->description) ?>" + value="<?= htmlspecialchars($podcast->description_markdown) ?>" required="true" /> <fieldset> diff --git a/themes/cp_app/podcast/about.php b/themes/cp_app/podcast/about.php index f0084e8e90..8907f91d7e 100644 --- a/themes/cp_app/podcast/about.php +++ b/themes/cp_app/podcast/about.php @@ -3,8 +3,8 @@ <?= $this->section('content') ?> <div class="px-2 sm:px-4"> - <div class="mb-2"><?= $podcast->description_html ?></div> - <div class="flex gap-x-4 gap-y-2"> + <div class="mb-2 prose"><?= $podcast->description_html ?></div> + <div class="flex flex-wrap gap-x-4 gap-y-2"> <span class="px-2 py-1 text-sm font-semibold border rounded-sm border-subtle bg-highlight"> <?= category_label($podcast->category) ?> </span> -- GitLab