score:5

Accepted answer

when using contenteditable, you should generally use dangerouslysetinnerhtml to set the html content.

  <div
    contenteditable
    dangerouslysetinnerhtml={{
      __html: value
    }}
  />

here's a working jsfiddle example showing how to do just that.


Related Query

More Query from same tag