Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions tools/linkedin-text-formatter/formatter.html
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,10 @@ <h1>LinkedIn Text Formatter</h1>
<label>Input</label>
<textarea id="input" placeholder="Type your text here..."></textarea>

<div class="btn-group">
<button id="copyInputBtn">Copy Input</button>
</div>

<div class="btn-group">
<button id="boldBtn">Bold</button>
<button id="italicBtn">Italic</button>
Expand Down
14 changes: 13 additions & 1 deletion tools/linkedin-text-formatter/formatter.js
Original file line number Diff line number Diff line change
Expand Up @@ -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!");
});


Expand Down Expand Up @@ -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();