Jump to content

FCK window too small!!


burgensteen

Recommended Posts

admin/includes/rte/fckeditor.php

function FCKeditor( $instanceName )

{

$this->InstanceName = $instanceName ;

$this->BasePath = '/FCKeditor/' ;

$this->Width = '100%' ;

$this->Height = '200' ;

$this->ToolbarSet = 'Default' ;

$this->Value = '' ;

Edit width and height values. Below are my values and it works well:

function FCKeditor( $instanceName )

{

$this->InstanceName = $instanceName ;

$this->BasePath = '/FCKeditor/' ;

$this->Width = '760' ;

$this->Height = '600' ;

$this->ToolbarSet = 'Default' ;

$this->Value = '' ;

Link to comment
Share on other sites

Guest vrakas

This free mod was writen by EvilHomer a while ago.

Change Window Size for FCKEditor (Rich Text Editor)

- With Help from EvilHomer

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Is the window size for the Rich Text Editor you use in your

ACP too small? Here are some settings to enlarge it.

1. OPEN admin/includes/rte/fckeditor.php

2. FIND the following line of code at about line 39:

$this->Height = '200' ;

3. CHANGE THE VALUE from 200 to 400, or some other value until

the window is of a size to suit you. You can test the setting by

saving and uploading the file, and viewing the editor on the add

or edit products page.

4. SAVE and UPLOAD the file to your webserver.

5. OPEN admin/includes/rte/fckeditor.js

6. FIND the following line of code at about line 31:

this.Height = height || '200' ;

7. CHANGE THE VALUE from 200 to the same value you set in step 3

above for fckeditor.php.

8. SAVE and UPLOAD the file to your webserver.

END of mod.

Link to comment
Share on other sites

Guest bgrouse

This free mod was writen by EvilHomer a while ago.

Change Window Size for FCKEditor (Rich Text Editor)

- With Help from EvilHomer

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Is the window size for the Rich Text Editor you use in your

ACP too small? Here are some settings to enlarge it.

1. OPEN admin/includes/rte/fckeditor.php

2. FIND the following line of code at about line 39:

$this->Height = '200' ;

3. CHANGE THE VALUE from 200 to 400, or some other value until

the window is of a size to suit you. You can test the setting by

saving and uploading the file, and viewing the editor on the add

or edit products page.

4. SAVE and UPLOAD the file to your webserver.

5. OPEN admin/includes/rte/fckeditor.js

6. FIND the following line of code at about line 31:

this.Height = height || '200' ;

7. CHANGE THE VALUE from 200 to the same value you set in step 3

above for fckeditor.php.

8. SAVE and UPLOAD the file to your webserver.

END of mod.

Well That was very easy!! Thanks!! Took less then a couple of minutes

Link to comment
Share on other sites

  • 3 months later...

A more flexible alternative to messing with fckeditor.php is to insert

$oFCKeditor->Width  = '100%';

$oFCKeditor->Height = '200';


(change values to suit yer needs)



immediately before


$oFCKeditor->Create();

where ever an instance of the FCKeditor is created

(for example, admin/products/index.php)

Link to comment
Share on other sites

  • 1 month later...

@ anopep, this is a good point */*

The tutorial above was edited/written by me (though evilhomer put me onto the path by posting a similar fix) and the reason for editing both those files was to set some default behavior across the board - but this can be overidden locally anywhere the fckeditor is called.

It is a very good idea to make a default value setting in fckeditor.php, as I have instructed above, because this may apply to any mods you add that use the fckeditor, as well as any instances of it appearing in CubeCart, where a different local setting is not made */*

Still your contribution is much appreciated, and may be added as a note in my published version of this tutorial, if I have your permission? :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...