Mark.B
02-21-2012, 11:36 PM
Here's one that I bet will flummox everyone, but let's give it a try.
By default, the main "New message" window on CKEditor is 250px.
I know this because I can get Firebug to identify this:
<td id="cke_contents_vB_Editor_001_editor" class="cke_contents" role="presentation" style="height: 250px;">
Now, I realise I can shove some css into additional.css, the problem is, doing that works but it then disables the resizing function on CKEditor.
So, I want to find what is generating that damn 250px in the code!
I found this in clientscript/ckeditor/_source/core/themes.js:
<td id="cke_contents_', name, '" class="cke_contents" style="height:', height, '" role="presentation">'
Which looks like the culprit.
BUT I have no idea where "height" is set.
I tried taking that bit out and just hard coding a height in pixels - cleared cache and cookies, no joy.
Then I found clientscript/ckeditor/_source/plugins/resize/plugin.js:
config.resize_minHeight
Tried changing the value for that - cleared cache and cookies, no joy.
Finally, I found clientscript/ckeditor/ckeditor.js, which had this:
r.resize_minHeight=250
Tried changing that, cleared cache and cookies - no joy!
Where the hell is this damned thing?
A browser can't conjure up the value "250px" out of thin air, so it MUST be set somewhere!
--------------- Added 1329871670 at 1329871670 ---------------
Gaah! After posting all that, I found it.
I was in totally the wrong place. It's in the much more straightforward normal vBulletin file: includes/functions_editor.php.
$default_height =250;
Scream!
By default, the main "New message" window on CKEditor is 250px.
I know this because I can get Firebug to identify this:
<td id="cke_contents_vB_Editor_001_editor" class="cke_contents" role="presentation" style="height: 250px;">
Now, I realise I can shove some css into additional.css, the problem is, doing that works but it then disables the resizing function on CKEditor.
So, I want to find what is generating that damn 250px in the code!
I found this in clientscript/ckeditor/_source/core/themes.js:
<td id="cke_contents_', name, '" class="cke_contents" style="height:', height, '" role="presentation">'
Which looks like the culprit.
BUT I have no idea where "height" is set.
I tried taking that bit out and just hard coding a height in pixels - cleared cache and cookies, no joy.
Then I found clientscript/ckeditor/_source/plugins/resize/plugin.js:
config.resize_minHeight
Tried changing the value for that - cleared cache and cookies, no joy.
Finally, I found clientscript/ckeditor/ckeditor.js, which had this:
r.resize_minHeight=250
Tried changing that, cleared cache and cookies - no joy!
Where the hell is this damned thing?
A browser can't conjure up the value "250px" out of thin air, so it MUST be set somewhere!
--------------- Added 1329871670 at 1329871670 ---------------
Gaah! After posting all that, I found it.
I was in totally the wrong place. It's in the much more straightforward normal vBulletin file: includes/functions_editor.php.
$default_height =250;
Scream!