burgensteen Posted July 5, 2006 Share Posted July 5, 2006 Hello, I thought I saw a post some time ago about how to make the window bigger in the FCK editor. Anybody know how to do this or where the post is. Thanks Burgensteen Quote Link to comment Share on other sites More sharing options...
roban Posted July 5, 2006 Share Posted July 5, 2006 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 = '' ; Quote Link to comment Share on other sites More sharing options...
burgensteen Posted July 5, 2006 Author Share Posted July 5, 2006 Thanks for that Roban. Much appreciated. Burgensteen Quote Link to comment Share on other sites More sharing options...
Guest vrakas Posted July 6, 2006 Share Posted July 6, 2006 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. Quote Link to comment Share on other sites More sharing options...
Guest bgrouse Posted July 12, 2006 Share Posted July 12, 2006 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 Quote Link to comment Share on other sites More sharing options...
Guest anopep Posted October 12, 2006 Share Posted October 12, 2006 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) Quote Link to comment Share on other sites More sharing options...
markscarts Posted November 13, 2006 Share Posted November 13, 2006 @ 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? :) Quote Link to comment Share on other sites More sharing options...
Guest Posted November 13, 2006 Share Posted November 13, 2006 The height (as above) was mentioned by Convict a while ago but the width is now mentioned by anopep. Well done anopep and added here */* Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.