Could you tell me how to change textarea size? config.js doesn't work…
At first, I'm sorry about my bad English.
I was just setting “ckeditor +kcfinder” in my rental server yesterday.
and I'd like to change textarea size from 100%width to 1000px and from ?rows height to 700px.(I can't sure how big height is.)
After I read this support page and another japanese advices,I noted these words bellow.
■<config.js>
CKEDITOR.editorConfig = function( config )
{
config.width = '1000px';
config.height = '700px';
};
■and also <html>
<script type="text/javascript" src="./ckeditor/ckeditor.js"></script>
<script type="text/javascript"> var editor = CKEDITOR.replace( 'editor1' ); </script>
<script type="text/javascript" src="./ckeditor/config.js"></script>
<script type="text/javascript"> CKEDITOR.replace( 'editor1', {
width :1000
height: 700
}); </script>
■<my textarea>
<textarea class="ckeditor" id="editor1" name="editor1"></textarea>
BUT these didn't works any more.
Text area is still 100%width&?rows(it maybe 300px height or so).
How can I change textarea size?
please tell me this solution.
thanks.
p.s.
I can resize freely textarea with mouse.
But I'd like to set textarea my own size for default.
At first, I'm sorry about my bad English.
I was just setting “ckeditor +kcfinder” in my rental server yesterday.
and I'd like to change textarea size from 100%width to 1000px and from ?rows height to 700px.(I can't sure how big height is.)
After I read this support page and another japanese advices,I noted these words bellow.
■<config.js>
CKEDITOR.editorConfig = function( config )
{
config.width = '1000px';
config.height = '700px';
};
■and also <html>
<script type="text/javascript" src="./ckeditor/ckeditor.js"></script>
<script type="text/javascript"> var editor = CKEDITOR.replace( 'editor1' ); </script>
<script type="text/javascript" src="./ckeditor/config.js"></script>
<script type="text/javascript"> CKEDITOR.replace( 'editor1', {
width :1000
height: 700
}); </script>
■<my textarea>
<textarea class="ckeditor" id="editor1" name="editor1"></textarea>
BUT these didn't works any more.
Text area is still 100%width&?rows(it maybe 300px height or so).
How can I change textarea size?
please tell me this solution.
thanks.
p.s.
I can resize freely textarea with mouse.
But I'd like to set textarea my own size for default.

Re: how to change textarea size? config.js doesn't work…
Try changing your HTML. Only use these lines and notice I added a comma after " width :1000 ".
Now it is " width :1000, "
<html>
<script type="text/javascript" src="./ckeditor/ckeditor.js"></script>
<script type="text/javascript"> CKEDITOR.replace( 'editor1', {
width :1000,
height: 700
}); </script>
Remove these lines:
// <script type="text/javascript"> var editor = CKEDITOR.replace( 'editor1' ); </script>
// <script type="text/javascript" src="./ckeditor/config.js"></script>
Good Luck,
Joe
Re: how to change textarea size? config.js doesn't work…
But before I read your comment,I had already solved the problem In the last hour.
The solution is below.
anyway, I had given up that nobody would reply to me.
so I extremely thank you.
If I get another trouble and couldn't change editor size, I'll try your solution.
* * * * * * * * * * * *
At last I solved that ploblem by myself.
I think because I changed & saved “character set” of config.js by web ftp service on server directly.
delete all files from server and upload all the same files again.
then,
Config.js was working!
I could change editor size.
Thank you all.
p.s.
I removed
<script type="text/javascript"> CKEDITOR.replace( 'editor1', {
width :1000
height: 700
}); </script>
.
now
<script type="text/javascript" src="./ckeditor/ckeditor.js"></script>
<script type="text/javascript"> var editor = CKEDITOR.replace( 'editor1' ); </script>
<script type="text/javascript" src="./ckeditor/config.js"></script>
Re: how to change textarea size? config.js doesn't work…
You could try removing the call to:
<script type="text/javascript" src="./ckeditor/config.js"></script>
It should be called automatically by:
<script type="text/javascript" src="./ckeditor/ckeditor.js"></script>
I think you're loading it twice.
You might want to load a custom configuration file, for instance if you use the editor for multiple fields throughout your site and need to use different settings based on where CKEditor is being used. To load a custom configuration file, you would put that config setting in the call to CKEDITOR.replace. Like this:
CKEDITOR.replace( 'editor1',
{
customConfig : '/custom/ckeditor_config.js'
});
You can use whatever name you want for the custom config file.
Be Well,
Joe
Re: how to change textarea size? config.js doesn't work…
Re: how to change textarea size? config.js doesn't work…
http://stackoverflow.com
http://stackoverflow.com