Welcome, Guest
Username: Password: Remember me

TOPIC: [FIXED] Height & Width for Textarea (WYSIWYG)

[FIXED] Height & Width for Textarea (WYSIWYG) 25 Oct 2012 05:44 #4731

  • goslingcools
  • goslingcools's Avatar
  • Offline
  • Senior Member
  • Posts: 64
  • Thank you received: 7
  • Karma: 1
How can I set the Height & Width for a Textarea (WYSIWYG) on a particular page?

When I use the params in the field nothing changes.

I use the JCE Editor.
The administrator has disabled public write access.

Re: Height & Width for Textarea (WYSIWYG) 25 Oct 2012 11:21 #4734

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
Right little issue here.

will fix it soon.

TODO :
in your models/fields/ckeditor.php file

Add, some followers :
$this->input = JDom::_('html.form.input.editor', array_merge(array(
	'dataKey' => $this->getOption('name'),

//HERE
'width' => $this->getOption('width'),
'height' => $this->getOption('height'),

//OR ALSO
'cols' => $this->getOption('cols'),
'rows' => $this->getOption('rows'),


	'dataValue' => $this->value,
	'domClass' => (isset($this->element['class'])?$this->element['class']:null),
	'formControl' => $this->formControl
), $this->jdomOptions));

This added code, is furnishing the datas from xml to jDom.

That's it.

Not tested, but should work.
Coding is now a piece of cake
The administrator has disabled public write access.

Re: Height & Width for Textarea (WYSIWYG) 25 Oct 2012 11:23 #4736

  • goslingcools
  • goslingcools's Avatar
  • Offline
  • Senior Member
  • Posts: 64
  • Thank you received: 7
  • Karma: 1
Thanks, will let you know if it worked out!
The administrator has disabled public write access.

Re: Height & Width for Textarea (WYSIWYG) 25 Oct 2012 12:18 #4737

  • goslingcools
  • goslingcools's Avatar
  • Offline
  • Senior Member
  • Posts: 64
  • Thank you received: 7
  • Karma: 1
Yep, works fine. Thanks!
The administrator has disabled public write access.

Re: Height & Width for Textarea (WYSIWYG) 10 Oct 2013 08:19 #11364

  • bobr666
  • bobr666's Avatar
  • Offline
  • New Member
  • Posts: 3
  • Karma: 0
Is this now working without changes as standard?

If I enter values other than 4 rows, 32 columns in the forms in the GUI, these changes do not migrate through to the project. (e.g. 1 row 80 columns)
The administrator has disabled public write access.
Time to create page: 0.066 seconds

Get Started