From 8ba2bace0ab82bce4d467d1d5f11da4abc3caafd Mon Sep 17 00:00:00 2001 From: Alejandra <90076947+alejsdev@users.noreply.github.com> Date: Fri, 16 Jan 2026 12:24:14 +0100 Subject: [PATCH] =?utf8?q?=F0=9F=90=9B=20Fix=20copy=20button=20in=20`custo?= =?utf8?q?m.js`=20(#1711)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- docs/js/custom.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/js/custom.js b/docs/js/custom.js index ef64c612..82c1d455 100644 --- a/docs/js/custom.js +++ b/docs/js/custom.js @@ -81,8 +81,11 @@ function setupTermynal() { } } saveBuffer(); + const inputCommands = useLines.filter(line => line.type === "input").map(line => line.value).join("\n"); + node.textContent = inputCommands; const div = document.createElement("div"); - node.replaceWith(div); + node.style.display = "none"; + node.after(div); const termynal = new Termynal(div, { lineData: useLines, noInit: true, -- 2.47.3