|
|
@ -61,7 +61,9 @@ class NameLabel extends HTMLLabelElement {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(doctx != null){
|
|
|
|
if(doctx != null){
|
|
|
|
this.setAttribute("data-ref-doctx", doctx);
|
|
|
|
this.setAttribute("data-ref-doctx", doctx);
|
|
|
|
this.htmlFor = this.getAttribute("for")+"--"+doctx;
|
|
|
|
if(this.getAttribute("for") != null && this.getAttribute("for").indexOf("--") == -1){
|
|
|
|
|
|
|
|
this.htmlFor = this.getAttribute("for")+"--"+doctx;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -177,17 +179,19 @@ class CurlyBrackets extends HTMLTemplateElement {
|
|
|
|
constructor() {
|
|
|
|
constructor() {
|
|
|
|
super();
|
|
|
|
super();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let curlyBracketsOpen = String.fromCharCode(123); //중괄호시작
|
|
|
|
|
|
|
|
|
|
|
|
let thisCon = this.content;
|
|
|
|
let thisCon = this.content;
|
|
|
|
|
|
|
|
|
|
|
|
let trs = thisCon.querySelectorAll("tr");
|
|
|
|
let trs = thisCon.querySelectorAll("tr");
|
|
|
|
|
|
|
|
|
|
|
|
trs.forEach(function(node) {
|
|
|
|
trs.forEach(function(node) {
|
|
|
|
let key = node.getAttribute("data-key");
|
|
|
|
let key = node.getAttribute("data-key");
|
|
|
|
if(key != null && key != "" && key.indexOf("{") == -1){
|
|
|
|
if(key != null && key != "" && key.indexOf(curlyBracketsOpen) == -1){
|
|
|
|
node.setAttribute("data-key","{"+key+"}");
|
|
|
|
node.setAttribute("data-key","{"+key+"}");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
let index = node.getAttribute("data-index");
|
|
|
|
let index = node.getAttribute("data-index");
|
|
|
|
if(index != null && index != "" && index.indexOf("{") == -1){
|
|
|
|
if(index != null && index != "" && index.indexOf(curlyBracketsOpen) == -1){
|
|
|
|
node.setAttribute("data-index","{"+index+"}");
|
|
|
|
node.setAttribute("data-index","{"+index+"}");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
@ -201,8 +205,8 @@ class CurlyBrackets extends HTMLTemplateElement {
|
|
|
|
if(node.getAttribute("ondblclick") != null && node.getAttribute("ondblclick") == ""){
|
|
|
|
if(node.getAttribute("ondblclick") != null && node.getAttribute("ondblclick") == ""){
|
|
|
|
node.setAttribute("ondblclick","{ondblclick}");
|
|
|
|
node.setAttribute("ondblclick","{ondblclick}");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if(node.textContent.trim() != "" && node.textContent.indexOf("{") == -1){
|
|
|
|
if(node.textContent.trim() != "" && node.textContent.indexOf(curlyBracketsOpen) == -1){
|
|
|
|
node.textContent = "{"+node.textContent.trim()+"}";
|
|
|
|
node.textContent = "{"+node.textContent.trim()+"}";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|