-1

I've made a script which replaces characters, you input text into a text area and the output is put into a tag (to keep all line breaks etc). (this is done using the replace method)

Im trying to figure out a way (Using javascript) to insert a
tag in each empty line in the output, is this possible to do?

Namenone
  • 344
  • 2
  • 5
  • 19

1 Answers1

0

I recommend you using a library like http://ckeditor.com/. It is highly configurable and accomplishes much of what you might want to do with editing.

saipanman
  • 37
  • 1
  • 9