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

83
Views
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
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!