Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

131
Visualizações
Android Chrome clipboard write text/html does not appear to work

According to: https://chromestatus.com/feature/5357049665814528 it appears that Android Chrome does support clipboard copy of text/html. It references the following example url: https://hyper-silly-cross.glitch.me/ which does not appear to work on any Android devices I have tried.

Can other developers confirm if Android Chrome does support this functionality? It is working fine on other browsers, but not the mobile chrome.

Here is the typescript for our method we are trying to use... It appears to be failing silently and the promise is being resolved, it would be nice to at least have an exception thrown we could subscribe to.

  copyEmailHtml(emailText: string) {
    const blobInput = new Blob([emailText], { type: 'text/html' });
    const clipboardItemInput = new ClipboardItem({ 'text/html': blobInput } as any);

    navigator.clipboard.write([clipboardItemInput]).then(() => {
      notification.emailCopied = true;
      this.emailCopied.emit(notification);
    }, (error) => {
      this.showDialog('Error copying to clipboard.  Your browser is not supported');
    });
  }
about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda