중괄호 자동추가 템플릿 수정(그리드의 셀에 html태그가 있을 경우 skip)

main
이범준 3 months ago
parent 18075ad486
commit a29662ce73

@ -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()+"}";
}
}
});

Loading…
Cancel
Save