Post by eghambob » Mon Aug 02, 2010 7:18 pm

Hi there,

How can I make the ckeditor windows bigger in the OC back-end? Can't seem to find the right files to edit, at the moment the product description box is 200px high but i'd like to change this to at least 400px as it would be easier for the client to make changes instead of scrolling. I'm using version 1.4.7.

Many thanks,
Rob
Last edited by eka7a on Sun May 27, 2012 8:15 am, edited 1 time in total.
Reason: solved

New member

Posts

Joined
Thu Jan 21, 2010 2:36 am

Post by Moggin » Tue Aug 03, 2010 3:02 am

That is an extremely good question...

Try editing admin/view/javascript/ckeditor/config.js

add (eg)

Code: Select all

config.height = '500px';  
above

Code: Select all

config.filebrowserBrowseUrl = 'index.php?route=common/filemanager';  
... etc

That seemed to work. See what you think. There must be a default 200px setting in there somewhere: I couldn't find it, but adding this line seems to over-ride it.

Active Member

Posts

Joined
Wed May 05, 2010 4:56 am

Post by eghambob » Tue Aug 03, 2010 3:14 am

Hey thanks that works great! Yea can't see where the 200px height is anywhere although firebug shows it. Its just a bit on the small side for some product descriptions.

Again many thanks thats a real help!

New member

Posts

Joined
Thu Jan 21, 2010 2:36 am

Post by Moggin » Tue Aug 03, 2010 10:17 pm

...ah, glad it helped! :)

Active Member

Posts

Joined
Wed May 05, 2010 4:56 am

Post by manson » Sat Dec 18, 2010 8:36 pm

Moggin wrote:That is an extremely good question...

Try editing admin/view/javascript/ckeditor/config.js

add (eg)

Code: Select all

config.height = '500px';  
above

Code: Select all

config.filebrowserBrowseUrl = 'index.php?route=common/filemanager';  
... etc

That seemed to work. See what you think. There must be a default 200px setting in there somewhere: I couldn't find it, but adding this line seems to over-ride it.
Exactly what I'm looking for! Thanks Moggin!
Any idea how to increase the size for file browser's file preview box?

I don't know much about PHP...~~
Don't know much about JQuery...~~
But I do know that I love OC!~~
and I know that if you'd guide me, what a wonderful world this would be...!~~

_________________________________________________________________
Using OC 1.4.9.2
http://www.ten2hundred.com


User avatar
New member

Posts

Joined
Mon Dec 06, 2010 6:58 pm

Post by Moggin » Mon Dec 20, 2010 3:16 am

Good to know, thanks manson! :)

I believe the file browser uses jquery UI. If so, this is a place to start
http://jqueryui.com/demos/dialog/

- the 'options' section tells you how to change the default configuration...but I'm not sure how to implement - don't know much jquery! If you figure this out, let me know.

Active Member

Posts

Joined
Wed May 05, 2010 4:56 am

Post by manson » Mon Dec 20, 2010 9:32 am

Moggin wrote:Good to know, thanks manson! :)

I believe the file browser uses jquery UI. If so, this is a place to start
http://jqueryui.com/demos/dialog/

- the 'options' section tells you how to change the default configuration...but I'm not sure how to implement - don't know much jquery! If you figure this out, let me know.
I managed to find it after 1 hour of searching. It took me so long because the value doesn't sit inside jquery. It was in OC's stylesheet for filemanager. Here's how to change it:

Go to:
/public_html/admin/view/template/common/filemanager.tpl

Look for:

Code: Select all

#column_right
And

Code: Select all

#column_left
Change value:

Code: Select all

Height: 600px;
You will also need to change the dialog/window that is associate with ckeditor and filemanager.

For ckeditor, go to:
/public_html/admin/view/javascript/ckeditor/config.js

Look for:

Code: Select all

config.filebrowserWindowHeight = '500';
Replace with:

Code: Select all

config.filebrowserWindowHeight = '700';
For filemanager, go to:
/public_html/admin/view/javascript/jquery/ui/ui.dialog.js

I've still figuring out which value to adjust, I've tried minHeight but the vertical scrollbar is not working to the full extent. Whereas changing height from 'auto' to fix pixel doesn't load the filemanager.

Moggins, any idea on the last part? ???

I don't know much about PHP...~~
Don't know much about JQuery...~~
But I do know that I love OC!~~
and I know that if you'd guide me, what a wonderful world this would be...!~~

_________________________________________________________________
Using OC 1.4.9.2
http://www.ten2hundred.com


User avatar
New member

Posts

Joined
Mon Dec 06, 2010 6:58 pm

Post by haydent » Wed Dec 14, 2011 4:23 pm

thanks

Code: Select all

add (eg)


    config.height = '500px';  

above

Code: Select all
    config.filebrowserBrowseUrl = 'index.php?route=common/filemanager';  

... etc

User avatar
Active Member

Posts

Joined
Wed Nov 09, 2011 9:50 am
Location - Sydney, Australia

Post by tophat » Fri May 04, 2012 1:38 am

Amazing. Working in 200px was driving me Bananas!!

Whilst I was there I also added:

Code: Select all

	config.width = '960px';
Which makes the box width line up with the website which seemed essentially logical so you can see a proper layout! :)

Webmaster for: http://www.getlaidbeds.co.uk + www.mattressmoose.co.uk + www.pixellounge.co.uk


User avatar
Active Member

Posts

Joined
Fri Nov 25, 2011 8:31 am


Post by timparnell » Sat May 26, 2012 9:39 pm

I noticed a few lines down

Code: Select all

	config.resize_enabled = false;
However, changing this to true seemed to have no effect.

[EDIT]: Tried again and it works..... (helps if you actually put the code to server before using) ::)

tim@pointreddesign.co.uk | http://www.pointreddesign.co.uk


User avatar
New member

Posts

Joined
Wed Feb 01, 2012 11:03 pm
Location - Norwich, Norfolk, UK
Who is online

Users browsing this forum: No registered users and 35 guests