0

I wonder if it is possible to make textarea contain multiple lines with different alignments using JavaScript. Something like that:

Naftali
  • 144,921
  • 39
  • 244
  • 303
uiuidjjdj
  • 1
  • 2

2 Answers2

0

Using some sort of wysiwyg editor might get you where you want to go.

Here are some google results to that fact

Naftali
  • 144,921
  • 39
  • 244
  • 303
  • I don't really want an entire WYSIWYG editor. I want this particular function implemented within regular textarea. – uiuidjjdj Jul 08 '11 at 17:19
  • how would ur users change alignment then?? – Naftali Jul 08 '11 at 17:20
  • Well it's really easy to manually add some button however i actually need this for automatic alignment swap when you type in different languages. I really don't ask a code or something, just point me how can i take particular line inside the textarea and change it's alignment. That's all. – uiuidjjdj Jul 08 '11 at 17:26
0

I would just customize TinyMCE

Example here: http://www.midgard-project.org/documentation/customizing-tinymce-editor/

two7s_clash
  • 5,755
  • 1
  • 27
  • 44