Click and change text inside the element

Asked

Viewed 35 times

0

Giving a researched I found the contenteditable, but I was wondering if there’s another way to do that, by taking a look at some of the website builders that use this kind of thing, I don’t think any of them used the contenteditable, since I didn’t see the attribute in any element of the whole page.

  • Have you tried using Innerhtml with the element id?

  • Look at this link: https://vitalets.github.io/angular-xeditable/

  • I suggest you look at the angular am library: angular-xeditable Ë one of the ways to do what you want.

1 answer

1


The ways I can think of are as follows::

  1. contenteditable=true
  2. When clicking, convert to a inputor textarea (Linkedin does so)
  3. Make a Javascript schema where it puts an element on top, hide the previous one and pass the value to the initial element via innerHTML.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.