Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

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

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.

Please Log in or Create an account to join the conversation.

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

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
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

Please Log in or Create an account to join the conversation.

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

Thanks, will let you know if it worked out!

Please Log in or Create an account to join the conversation.

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

Yep, works fine. Thanks!

Please Log in or Create an account to join the conversation.

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

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)

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.090 seconds

Les générateurs de code je les connais presque tous pour les avoir essorés en long en large et en travers ... mais celui ci c'est vraiment un outil formidable de simplicité et d'efficacité !
Marc. (liubov - Forum)

Get Started