From: Stephen Cameron Date: Tue, 27 Apr 2021 12:54:32 +0000 (+0200) Subject: Make all snippet text bold + italic. Wait #4244 @0:05 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=1997383027c2013bce4086af9b19f49fc0008a3b;p=ccv-email.git Make all snippet text bold + italic. Wait #4244 @0:05 --- diff --git a/resources/views/components/quill.blade.php b/resources/views/components/quill.blade.php index 769f3cc..7a970cb 100644 --- a/resources/views/components/quill.blade.php +++ b/resources/views/components/quill.blade.php @@ -71,6 +71,9 @@ snippetsDropDown.onSelect = function(label, content, quill) { + // Client wishes all inserted text to be bold and italic, so wrap snippet HTML before inserting + content = `${content}`; + // First, delete any text that might be selected (it's expected that it will be replaced) const selection = quill.selection.savedRange; quill.deleteText(selection.index, selection.length);