Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

114
Vistas
How to generate a copyable link to clipboard that is clickable in gmail

I have to generate a url to the clipboard when user click the button. The question is, I have no idea how can I make this url clickable when I paste it into email. The result turns out to plain text. And I am using ReactJs as my frontend framework. I have tried using Clipboard.writeText(), but it not works. I also tried to paste html code to email, but all I get is plain text. I have seen other website implemented this function, but I really don't know how to do this.

about 4 years ago · Juan Pablo Isaza
2 Respuestas
Responde la pregunta

0

You can copy a string to the clipboard by turning on the following:

 navigator.clipboard.writeText('text');

full example

 const [text, setText] = useState(""); const handleChange = (e) => { setText(e.target.value); }; const handleCopy = () => { navigator.clipboard.writeText(text); }; return ( <div> <input type="text" value={text} onChange={handleChange} /> <button onClick={handleCopy}>Copy</button> </div> );

If that doesn't work, I'd check the console for other errors.

More in documents

about 4 years ago · Juan Pablo Isaza Denunciar

0

I think I've solved this myself. Simply put the html code as type [text/html] in the clipboard API and it can be copied as seen on a web page.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda