# Format text in forums (enter, bold,...)

**URL:** <https://www.ruby-forum.com/t/format-text-in-forums-enter-bold/160289>\
**Category:** Rails\
**Created:** [February 13, 2009, 7:14pm UTC](https://www.ruby-forum.com/t/format-text-in-forums-enter-bold/160289 "2009-02-13T19:14:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![captaffy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/f04885/32.png) [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Post date:** [February 13, 2009, 7:14pm UTC](https://www.ruby-forum.com/t/format-text-in-forums-enter-bold/160289/1 "2009-02-13T19:14:55Z")

</div>

I have forums in my web. I have a field in my database in my posts table  
that is a textarea.  
I would like to save things like press enter or use bold when I write a  
message in the forum, but it is not possible only with what an scaffold  
gives.  
I think there are some javascripts that can help. Which is the best  
idea?

Thanks a lot for helping me.

---

<div class="post-metadata">

**Author:** ![captaffy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/f04885/32.png) [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Post date:** [February 13, 2009, 7:17pm UTC](https://www.ruby-forum.com/t/format-text-in-forums-enter-bold/160289/2 "2009-02-13T19:17:32Z")

</div>

pode tentar colocar tinymce ou xinha. são 2 WYSIWYG.

On Fri, Feb 13, 2009 at 4:14 PM, John S.

---

<div class="post-metadata">

**Author:** ![captaffy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/f04885/32.png) [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Post date:** [February 13, 2009, 7:18pm UTC](https://www.ruby-forum.com/t/format-text-in-forums-enter-bold/160289/3 "2009-02-13T19:18:44Z")

</div>

Sorry, sleepy friday, need coffee:

You could try to use tinymce or xinha. these are both WYSIWYG editors.

On Fri, Feb 13, 2009 at 4:16 PM, Mathieu R.

---

<div class="post-metadata">

**Author:** ![captaffy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/f04885/32.png) [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Post date:** [February 14, 2009, 8:24am UTC](https://www.ruby-forum.com/t/format-text-in-forums-enter-bold/160289/4 "2009-02-14T08:24:55Z")

</div>

Look at Textile or Markdown to make it really simple. I think there  
might be a javascript editor to add the tags for you, but I would  
recommend one of those two for simplicity’s sake.

On Feb 13, 12:14 pm, John S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
