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

77
Visualizações
Modify contents of contenteditable div on a facebook/twitter post like grammarly

I am trying to make an extension like Grammarly. When I want to make it work on Facebook and Twitter post field it doesn't work. When I write something in the Facebook post field and want to replace a suggestion of an existing wrong word by DOM modification using javascript, replacing suggestion does occur nicely. But after that no key including backspace, delete seems to stop working. This happens only in the case of Facebook and Twitter. I wonder how Grammarly manage this. Can anyone show me the path to solve this?

Hint: Just open the browser post dialog and hit below that code from the browser the dev console tool to regenerate that issue.

document.activeElement.innerText="hello, world"

Similar Userful References

  • Reference01
  • Reference02
  • Reference03
  • Reference04
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