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

This is what you call a component builder. I was able to master using this in a very short time and the resulting component works like a charm. Not just a basic component builder but a fully working component builder with forms fields tables all ready to go. You can make the list and item views to display in the front and back end. Also there is a great forum just starting to evolve and I'm sure this will grow very rapidly when you all realise how good this tool is.
Kevin (JED)

         

Get Started