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

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

@ -206,9 +206,11 @@ class CurlyBrackets extends HTMLTemplateElement {
node.setAttribute("ondblclick","{ondblclick}"); node.setAttribute("ondblclick","{ondblclick}");
} }
if(node.childElementCount == 0){
if(node.textContent.trim() != "" && node.textContent.indexOf(curlyBracketsOpen) == -1){ if(node.textContent.trim() != "" && node.textContent.indexOf(curlyBracketsOpen) == -1){
node.textContent = "{"+node.textContent.trim()+"}"; node.textContent = "{"+node.textContent.trim()+"}";
} }
}
}); });
let tdCheckboxes = thisCon.querySelectorAll("td>input[type='checkbox']"); let tdCheckboxes = thisCon.querySelectorAll("td>input[type='checkbox']");

Loading…
Cancel
Save