]> _ Git - ccv-email.git/commitdiff
Make all snippet text bold + italic. Wait #4244 @0:05
authorStephen Cameron <stephen@cubedesigners.com>
Tue, 27 Apr 2021 12:54:32 +0000 (14:54 +0200)
committerStephen Cameron <stephen@cubedesigners.com>
Tue, 27 Apr 2021 12:54:32 +0000 (14:54 +0200)
resources/views/components/quill.blade.php

index 769f3cc426b91f043962bd6bc7428e7e448f8747..7a970cb3bd383ba5d0f0b7741d99b91f26bdd674 100644 (file)
@@ -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 = `<strong><em>${content}</em></strong>`;
+
             // 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);