From 44aef0da2218a19e06f761fe5fb6e18cde43067f Mon Sep 17 00:00:00 2001 From: Alexis Gousseau Date: Wed, 26 Jul 2023 17:44:12 +0200 Subject: [PATCH] add specific custom section ckeditor - issue #25 --- config/purifier.php | 2 +- resources/views/front/sable/sass/fo/base/_common.scss | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/config/purifier.php b/config/purifier.php index 29fd2bae..efbd2367 100644 --- a/config/purifier.php +++ b/config/purifier.php @@ -29,7 +29,7 @@ return [ // * For iframes 'URI.SafeIframeRegexp' => "%^(http://|https://|//)(vimeo.com)%", 'HTML.Doctype' => 'HTML 4.01 Transitional', - 'HTML.Allowed' => 'h1[style],h2[style],h3[style],h4[style],h5[style],h6[style],figure[class|style],oembed[url],div[style],b,strong,i,em,u,a[href|title|target|rel],ul[style],ol[style],dl[style],li,p[style],br,span[style|class],img[width|height|alt|src|style|class|title],iframe[src|width|height|class|frameborder|style],table[style|align|border|cellspacing|cellpadding|width],thead,tbody,th[colspan|align|valign|style],tr[align|valign|style],td[style|colspan|rowspan|scope|align|valign],hr,dl,dt', + 'HTML.Allowed' => 'h1[style],h2[style],h3[style],h4[style],h5[style],h6[style],figure[class|style],oembed[url],div[style],b,strong,i,em,u,a[href|title|target|rel],ul[style],ol[style],dl[style],li,p[style],br,span[style|class],img[width|height|alt|src|style|class|title],iframe[src|width|height|class|frameborder|style],table[style|align|border|cellspacing|cellpadding|width],thead,tbody,th[colspan|align|valign|style],tr[align|valign|style],td[style|colspan|rowspan|scope|align|valign],hr,dl,dt,blockquote', 'CSS.AllowedProperties' => 'font,font-size,font-weight,font-style,font-family,text-decoration,padding-left,color,background-color,text-align,list-style-type,float,width,height,vertical-align,border-color', 'AutoFormat.AutoParagraph' => false, 'AutoFormat.RemoveEmpty' => false, diff --git a/resources/views/front/sable/sass/fo/base/_common.scss b/resources/views/front/sable/sass/fo/base/_common.scss index 77ee6a87..4e0a72a8 100644 --- a/resources/views/front/sable/sass/fo/base/_common.scss +++ b/resources/views/front/sable/sass/fo/base/_common.scss @@ -212,6 +212,15 @@ img { } } +blockquote { + background-color: #909090; + padding: 1rem; + + p:last-child { + margin: 0; + } +} + // SSSSSSSSSSSSSSS MMMMMMMM MMMMMMMM // SS:::::::::::::::SM:::::::M M:::::::M // S:::::SSSSSS::::::SM::::::::M M::::::::M