From 1997383027c2013bce4086af9b19f49fc0008a3b Mon Sep 17 00:00:00 2001 From: Stephen Cameron Date: Tue, 27 Apr 2021 14:54:32 +0200 Subject: [PATCH] Make all snippet text bold + italic. Wait #4244 @0:05 --- resources/views/components/quill.blade.php | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.39.5