diff --git a/tools/linkedin-text-formatter/formatter.html b/tools/linkedin-text-formatter/formatter.html index bc5064a..cd658de 100644 --- a/tools/linkedin-text-formatter/formatter.html +++ b/tools/linkedin-text-formatter/formatter.html @@ -220,6 +220,10 @@

LinkedIn Text Formatter

+
+ +
+
diff --git a/tools/linkedin-text-formatter/formatter.js b/tools/linkedin-text-formatter/formatter.js index 8560d52..fa25181 100644 --- a/tools/linkedin-text-formatter/formatter.js +++ b/tools/linkedin-text-formatter/formatter.js @@ -207,7 +207,7 @@ document.getElementById("copyBtn").addEventListener("click", async () => { } await navigator.clipboard.writeText(text); - notify.success("Copied to clipboard!"); + notify.success("Output copied to clipboard!"); }); @@ -273,5 +273,17 @@ document.getElementById("strikeBtn").addEventListener("click", () => { restoreInputFocus(start, end); }); +document.getElementById("copyInputBtn").addEventListener("click", async () => { + const text = input.value.trim(); + + if (!text) { + notify.error("Nothing to copy."); + return; + } + + await navigator.clipboard.writeText(text); + notify.success("Input copied to clipboard!"); +}); + updateCounter();