0

I was wondering how one could create something that resembles a textfield, but can contain html elements in it. For example, something like what Stackoverflow uses for tags on its "Ask Question" page. Can this be done this done using a particular plugin/library or does it need to be created from scratch?

I have seen some solutions using the "contenteditable" property, but I am worried about cross browser compatibility. In fact it would appear that the Stackoverflow example does not use this. I have tried searching for info on how to do this but haven't found anything. Would be grateful if someone could point me in the right direction.

Benjen
  • 2,835
  • 5
  • 28
  • 42

2 Answers2

1

You don't need to create it from scratch. Here is the one I use: TinyMCE

Rafael Sedrakyan
  • 2,541
  • 10
  • 34
  • 42
0

You might also find this useful. But you dont need to make a new one. There are a plenty of open source options available.

Community
  • 1
  • 1
Phani Rahul
  • 840
  • 7
  • 22