Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

119
Views
Copia de la firma de GMAIL al portapapeles

Tengo una aplicación mediante la cual el usuario puede copiar firmas de correo electrónico en el portapapeles y pegarlas en la firma de Gmail en reaccionar js

Aquí hay un código mínimo

 import React, { useRef } from "react"; export default function App() { const tableRef = useRef(null); const CopyHtmlTableToCripboard = () => { let tableRange = document.createRange(); tableRange.selectNodeContents(tableRef.current); let sel = window.getSelection(); sel.removeAllRanges(); sel.addRange(tableRange); document.execCommand("Copy"); sel.removeAllRanges(); }; return ( <div className="App"> <div ref={tableRef} className="table"> <table width="500" cellPadding="0" cellSpacing="0" border="0" className="apply-font" > <thead> <tr> <th>#</th> <th>First Name</th> <th>Last Name</th> <th>Username</th> </tr> </thead> <tbody> <tr style={{ fontSize: "8px", fontFamily: "Verdana", color: "#fff", lineHeight: "10px", paddingTop: "10px", backgroundColor: "red" }} > <td>1</td> <td>Mark</td> <td>Otto</td> <td>@mdo</td> </tr> </tbody> </table> </div> <button onClick={CopyHtmlTableToCripboard}> Copy to Clipboard using execCommand </button> </div>

); }

Problema: cuando copio la tabla en Clipborad y la pego en la firma de Gmail, agrega CSS no deseado

ingrese la descripción de la imagen aquí

¿Qué debo hacer para evitar que Gmail agregue estos css no deseados a mi firma?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!