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.059 seconds

Awards for the best Joomla app. This product is gonna win an award for this amazing job. Cook Self Service is the the best application from all over the Joomla universe ! It brings Joomla to a professional level really advanced for developers. It is a real fun to develop with it. The ACL part and security checks implementation are just... so much hours saved. I can now concentrate myself more on the design part and the creative works. Thank you so much. Guys I offer you all my congratulation ! Keep up the works because Joomla is needing it to increase the quality of extensions availables on the JED. I also learned a lot because I can see how to code at the proper place and I found all my answers reading the forum.
lack_hanson (JED)
          

Get Started