From a29662ce7340f959784137b5074dd3dfd50752b0 Mon Sep 17 00:00:00 2001 From: leebj Date: Thu, 8 Aug 2024 09:25:03 +0900 Subject: [PATCH] =?UTF-8?q?=EC=A4=91=EA=B4=84=ED=98=B8=20=EC=9E=90?= =?UTF-8?q?=EB=8F=99=EC=B6=94=EA=B0=80=20=ED=85=9C=ED=94=8C=EB=A6=BF=20?= =?UTF-8?q?=EC=88=98=EC=A0=95(=EA=B7=B8=EB=A6=AC=EB=93=9C=EC=9D=98=20?= =?UTF-8?q?=EC=85=80=EC=97=90=20html=ED=83=9C=EA=B7=B8=EA=B0=80=20?= =?UTF-8?q?=EC=9E=88=EC=9D=84=20=EA=B2=BD=EC=9A=B0=20skip)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/webapp/resources/js/fims/cmmn/customElements.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/webapp/resources/js/fims/cmmn/customElements.js b/src/main/webapp/resources/js/fims/cmmn/customElements.js index 261073ea..6d810052 100644 --- a/src/main/webapp/resources/js/fims/cmmn/customElements.js +++ b/src/main/webapp/resources/js/fims/cmmn/customElements.js @@ -206,8 +206,10 @@ class CurlyBrackets extends HTMLTemplateElement { node.setAttribute("ondblclick","{ondblclick}"); } - if(node.textContent.trim() != "" && node.textContent.indexOf(curlyBracketsOpen) == -1){ - node.textContent = "{"+node.textContent.trim()+"}"; + if(node.childElementCount == 0){ + if(node.textContent.trim() != "" && node.textContent.indexOf(curlyBracketsOpen) == -1){ + node.textContent = "{"+node.textContent.trim()+"}"; + } } });