Skip to content

Conversation

@paulirish
Copy link

Love these tools, btw. <3

This is a small tweak that really amplifies the value of the clipboard HTML cleaner for me.

With this on, you can paste the cleaned version right into a rich text editor (like gmail, google docs, etc.). Not that I'd be using this to efficiently disguise that I copy pasted some output from an LLM chat..... :p

Or a blog post without the styles:

using this to paste some simonw blog content without the styles

If you paste into a plain-text editor... it makes no difference as that paste target doesn't accept text/html.

ClipboardItem and nav.clipboard.write() are newer than the old execCommand('copy') or even nav.clipboard.writeText().. but they're Baseline as of 18 months ago, so no browser support concerns here.

Lastly, I'd lean towards dropping the checkbox and just always doing this. But figured I'd leave that call up to you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant