From e5a805fa08d97bd67eb8562a29519f89c2832af3 Mon Sep 17 00:00:00 2001 From: Antoine M Date: Wed, 10 Jan 2024 16:52:41 +0100 Subject: [PATCH] handling title with innerHtml instead of text to handle rich text titles --- resources/js/schema-bullet-points.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/js/schema-bullet-points.js b/resources/js/schema-bullet-points.js index 8f07154..b92893d 100644 --- a/resources/js/schema-bullet-points.js +++ b/resources/js/schema-bullet-points.js @@ -13,7 +13,8 @@ export default function SchemaBulletPointsInit() { focusPointPopupContainer.className = 'homegrade-blocks-focus-point-bullet__tooltip-container'; const focusPointPopupTitle = document.createElement('h4'); - focusPointPopupTitle.textContent = focusTitle; + // focusPointPopupTitle.textContent = focusTitle; + focusPointPopupTitle.innerHTML = focusTitle; focusPointPopupTitle.className = 'tooltip-title'; focusPointPopupContainer.style.left = `${focusPointPosition.x}%`; focusPointPopupContainer.style.top = `${focusPointPosition.y}%`;