1

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

Sadhan Sarker
  • 129
  • 3
  • 11

0 Answers0