where is the default textarea size (columns/rows) found?

where is the default textarea size (columns/rows) found?

by Zachary DeLand -
Number of replies: 1

Greetings,

     I have spent the last day trying to figure out how to adjust the default columns and rows for every textartea or TinyMCE in the moodle code.  I have successfully done it several months ago but I have no idea which file it was. 

Also, I somehow managed to disable TinyMCE for user's, but am unable to reactive it.  (I believe this may have been done through code as well, several months back).

I am currently using Moodle 2.3

Thanks!

Average of ratings: -
In reply to Zachary DeLand

Re: where is the default textarea size (columns/rows) found?

by Zachary DeLand -

Of course now that I finally decide to post the questions, one of the answers reveals itself. 

To set the default rows and columns for texteara elements, go to

       lib/form/editor.php

Look inside the function toHtml();

$rows = empty($this->_attributes['rows']) ? 5 : $this->_attributes['rows'];
$cols = empty($this->_attributes['cols']) ? 80 : $this->_attributes['cols'];

Entered your desired dimensions for the numbers in purple. 

I still cant figure out how I disabled the TinyMCE for the user registration page....