# OT: TinyMCE in Rails

**URL:** <https://www.ruby-forum.com/t/ot-tinymce-in-rails/68829>\
**Category:** Rails\
**Created:** [September 15, 2006, 7:17pm UTC](https://www.ruby-forum.com/t/ot-tinymce-in-rails/68829 "2006-09-15T19:17:03Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![zanoni](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/e99b99/32.png) [@zanoni](https://www.ruby-forum.com/u/zanoni)\
**Post date:** [September 15, 2006, 7:17pm UTC](https://www.ruby-forum.com/t/ot-tinymce-in-rails/68829/1 "2006-09-15T19:17:03Z")

</div>

I’m having a problem getting the text area the size I want it to be.

In my view at the top I have this init calls

Then in my form:

\<%= text\_area ‘position’, ‘full\_description’ , :cols =\> “50”, :rows =\>  
“15” %\>

I’ve had the cols set to 200 and the rows to 600 and it hasn’t  
changed. Anyone know how to get this working right or perhaps any  
issues ? I’ve tested it both in IE 7 and FF 1.5.x  
Same behaviour in both.

TIA  
Stuart

---

<div class="post-metadata">

**Author:** ![zanoni](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/e99b99/32.png) [@zanoni](https://www.ruby-forum.com/u/zanoni)\
**Post date:** [September 15, 2006, 8:25pm UTC](https://www.ruby-forum.com/t/ot-tinymce-in-rails/68829/2 "2006-09-15T20:25:08Z")

</div>

Hi Stuart,

Dark A. wrote:

> I’m having a problem getting the text area the size I want it to be.

> Then in my form:
> 
> \<%= text\_area ‘position’, ‘full\_description’ , :cols =\> “50”, :rows =\>  
> “15” %\>

Get rid of the quotes around the values. The api documentation for  
text\_area gives the following example (with substitutions to use your  
object/method/values):

text\_area(“position”, “full\_description”, “cols” =\> 50, “rows” =\>  
15)Your  
substitution of symbols for strings won’t give you a problem, but  
putting  
quotes on the values will.

hth,  
Bill

---

<div class="post-metadata">

**Author:** ![zanoni](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/e99b99/32.png) [@zanoni](https://www.ruby-forum.com/u/zanoni)\
**Post date:** [September 15, 2006, 11:33pm UTC](https://www.ruby-forum.com/t/ot-tinymce-in-rails/68829/3 "2006-09-15T23:33:28Z")

</div>

Bummer, it didn’t help! :(. It sounded hopeful. I even changed the  
rows cols back to symbols but alas no difference. I’m having a tough  
time with these editors. Had dumped fck the other day for this.

Stuart

---

<div class="post-metadata">

**Author:** ![zanoni](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/e99b99/32.png) [@zanoni](https://www.ruby-forum.com/u/zanoni)\
**Post date:** [September 16, 2006, 12:40pm UTC](https://www.ruby-forum.com/t/ot-tinymce-in-rails/68829/4 "2006-09-16T12:40:16Z")

</div>

I thought I’d try removing tinymce and seeing what I get just defining  
a regular text\_area.  
Well it’s not sizing the rows and cols correctly with just a plain old  
rails text\_area. Very puzzling as I’ve tried various combinations:

\<%= text\_area ‘position’, ‘full\_description’, :cols =\> 300, :rows =\> 900  
%\>

Anyone ?

Stuart

---

<div class="post-metadata">

**Author:** ![zanoni](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/e99b99/32.png) [@zanoni](https://www.ruby-forum.com/u/zanoni)\
**Post date:** [September 16, 2006, 2:10pm UTC](https://www.ruby-forum.com/t/ot-tinymce-in-rails/68829/5 "2006-09-16T14:10:21Z")

</div>

On 9/16/06, Dark A. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Anyone ?
> 
> Stuart

Have you tried using smaller numbers? I’m wondering if the large number  
of  
rows and columns is causing the browser to ignore the numbers.

Also, when you ‘view source’ from within the browser, what does the html  
look like?

–  
Larry W.  
[http://www.approachingnormal.com](http://www.approachingnormal.com)  
[http://www.welcometoparenthood.com](http://www.welcometoparenthood.com)

---

<div class="post-metadata">

**Author:** ![zanoni](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/e99b99/32.png) [@zanoni](https://www.ruby-forum.com/u/zanoni)\
**Post date:** [September 16, 2006, 3:48pm UTC](https://www.ruby-forum.com/t/ot-tinymce-in-rails/68829/6 "2006-09-16T15:48:32Z")

</div>

\<…\>

> The html is fine, for example:

If HTML if fine, maybe you have problem in your CSS? How does it work  
with CSS off?

## Regards, Rimantas

[http://rimantas.com/](http://rimantas.com/)

---

<div class="post-metadata">

**Author:** ![zanoni](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/e99b99/32.png) [@zanoni](https://www.ruby-forum.com/u/zanoni)\
**Post date:** [September 16, 2006, 3:56pm UTC](https://www.ruby-forum.com/t/ot-tinymce-in-rails/68829/7 "2006-09-16T15:56:33Z")

</div>

Rimantas,  
Thanks , yes I think I messed up changing the topic on this thread.  
However, yes it was in the CSS.

Stuart

---

<div class="post-metadata">

**Author:** ![zanoni](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/e99b99/32.png) [@zanoni](https://www.ruby-forum.com/u/zanoni)\
**Post date:** [September 16, 2006, 2:16pm UTC](https://www.ruby-forum.com/t/ot-tinymce-in-rails/68829/8 "2006-09-16T14:16:21Z")

</div>

Larry , I just updated this thread so in answer to your first  
question, the new thread explains is that this only happens in one of  
my apps. In another I could correctly size from 20x20 to 200 x 400  
(rows and cols)  
The html is fine, for example:

Stuart
