I wrote a custom file browser to integrate with the ckeditor image manager. My only question is, I do not get scrollbars for this popup window in all browsers. In Chrome & Safari (both use same rendering engine) when I click on the browse server button and my popup is opened to my file browser window, I get scrollbars as I desire. In IE or FF I do not get these scrollbars.
has anyone had this issue, I looked through the JS source and it appears all window.open calls are supposed to have scrollbars=yes
I didn't see anything in the API to turn scrollbars on/off unless I overlooked it.
a sample call I use to define my ckeditor with JQuery is:
can someone shed some light on my problems? would greatly appreciate it.
has anyone had this issue, I looked through the JS source and it appears all window.open calls are supposed to have scrollbars=yes
I didn't see anything in the API to turn scrollbars on/off unless I overlooked it.
a sample call I use to define my ckeditor with JQuery is:
if ($('#response').length) { if (CKEDITOR.env.isCompatible) { CKEDITOR.replace('response', { toolbar : 'Default', width : 600, height : 500, filebrowserImageBrowseUrl : 'path/to/browser.php', filebrowserImageUploadUrl : 'path/to/upload.php', filebrowserImageWindowWidth : '640', filebrowserImageWindowHeight : '480' }); } }
can someone shed some light on my problems? would greatly appreciate it.
Re: ckeditor file manager browser
Re: ckeditor file manager browser
Re: ckeditor file manager browser
Re: ckeditor file manager browser
Because the 'ckeditor.js' code is optimized I'm not sure what the actual line number will be for you but I found the spot by searching for 'resizable=yes' and you'll get a couple results, it should be pretty obvious which one is the one you're looking for. It's in a 'popup' object.
Anyhow I just added 'scrollbars=yes' to the string and it worked.
Hope that helped, love it when someone tells you they have the answer then decides not to share
Cheers!
Re: ckeditor file manager browser
Cheers!
Re: ckeditor file manager browser
The first one works only partially.
That is to set the width or height of the browser to be something like this:
filebrowserImageWindowHeight : '600,scrollbars=yes'
This gives you the scroll bar but with a height of 1 ... as it isn't a real number.
The second work around would be to write a small serverside script that searches for "resizable=yes" in the ckeditor.js file and replaces it with "resizable=yes,scrollbars=yes"... then returns the whole js code as if it was the javascript file... i.e. (pseudo code)
That way in the event of the ckeditor being updated, it will keep the scrollbars so long as resizable still exists in the code.
My searching essentially found that unless you do one of the two above, you need to edit the ckeditor.js file.
Re: ckeditor file manager browser
This is a very irritating feature.
Re: ckeditor file manager browser
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+