Ubivectel,
document.addEventListener("click", ({ target }) => {
if (target = target.closest('.KIDE_msg_hour')) {
target = target.closest('.KIDE_msg_top')
let text = target.textContent;
kide.insertSmile(`[QUOTE]${text}[/QUOTE]`)// добавить теги
}
});
filter_smilies: function(s) {
s = " " + s + " ";
for (let i = 0; i < this.smilies.length; i++) {
s = s.replace(" " + this.smilies[i][0], '<img alt="' + this.smilies[i][0] + '" title="' + this.smilies[i][0] + '" src="' + this.smilies[i][1] + '" class="KIDE_icono" />');
s = s.replace(" " + this.smilies[i][0].toLowerCase(), '<img alt="' + this.smilies[i][0] + '" title="' + this.smilies[i][0] + '" src="' + this.smilies[i][1] + '" class=KIDE_icono" />')
}
/* добавить замену*/
let reg = /\[QUOTE\](.+)\[\/QUOTE\]/;
while (reg.test(s)) {
s = s.replace(reg, `<span class="KIDE_quote">$1</span>`)
};
/* добавить */
return s;
},
и в css добавить оформление
.KIDE_quote {
color: #8B4513;
}