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

Freakin' Awesome!!! J-Cook is simply awesome - whether you're a highly experienced developer or complete novice whether you're building a small inventory component or a complete community solution! The beauty comes from a fast slick and reliable platform that readily provides developers with everything they'll need to build the backbone of a solid and secure component with wizards for authoring access publishing aliasing created/modified by dates... you name it COOK provides it! J-Cook really surpasses all of the 'competition' as far as MVC tools are concerned! Try love it and get cooking!
learnthrusong (JED)
          

Get Started