I’m trying to insert some text added by users inside a div that has contentEditable set to true. Unfortunately none of the methods at hand worked, and I’m trying to figure out if and how this can be accomplished.
I’m working on a Chrome Extension that needs to populate such a div with a text generated by the user.
Is this somehow accomplishable ?
As mentioned, none of the methods at hand worked. I’m talking about innerHTML, innerText, appendChild
and others.
Baje is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1