From 857ae9930451fb29dc535a75e1b25f767c8a4e94 Mon Sep 17 00:00:00 2001 From: 2Abendsegler <2Abendsegler@users.noreply.github.com> Date: Fri, 24 Nov 2023 21:19:16 +0100 Subject: [PATCH] Use not innerHTML but value in textarea for changes. --- gc_little_helper_II.user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gc_little_helper_II.user.js b/gc_little_helper_II.user.js index e673d3cd..16422d8c 100644 --- a/gc_little_helper_II.user.js +++ b/gc_little_helper_II.user.js @@ -4743,7 +4743,7 @@ var mainGC = function() { var signature = getValue((isTB ? "settings_tb_signature" : "settings_log_signature"), ""); if (!logtext.includes(signature.replace(/^\s*/, ''))) { let text = (logfield.value != '' ? logfield.value + '\n' : '') + replacePlaceholder(signature); - logfield.innerHTML = text; + logfield.value = text; } if (!$('.gclh_signature')[0]) $('#gc-md-editor_md').addClass('gclh_signature'); logfield.dispatchEvent(new Event('input'));