Hi all,
I'm new to the board and admittedly, just this minute come across CKEditor whilst customising my site.
I've integrated my CKEditor in to new posts (my website is based around Webspell) however the width is quite compact. What file do I need to change so that it fills the width of the window?
Many Thanks
Thu, 05/12/2011 - 13:27
#1
Re: CKEditor is not full width of window
For reference, this is my function:
function update_textarea(value) {
$("#news_textarea textarea").each(function(index) {
message[index] = $(this).val();
var editor = $(this).ckeditorGet();
if (editor) {
editor.destroy()
}
});
document.getElementById('news_textarea').innerHTML='';
for(var i = 0; i < value; i++) {
if(message[i] || headline[i] || langs[i] && langs[i] != default_language)
{
document.getElementById('news_textarea').innerHTML+=' %headline% <input name="headline[]" type="text" value="'+headline[i]+'" size="80" onchange="headline['+i+']=this.value;" />';
document.getElementById('news_textarea').innerHTML+='<textarea name="message[' + i + ']" rows="20">'+message[i]+'</textarea><br /><br />';
}
else
{
message[i] = '';
headline[i] = '';
langs[i] = '';
document.getElementById('news_textarea').innerHTML+=' <b>%headline%: </b><br /> <input name="headline[]" type="text" value="" size="80" onchange="headline['+i+']=this.value;" /><hr />';
document.getElementById('news_textarea').innerHTML+='<textarea name="message[' + i + ']" rows="20"></textarea><br /><br />';
}
}
$("#news_textarea textarea").ckeditor();
if(message.length > value) {
var message_length = message.length;
for(var i = value; i < message_length; i++) {
delete message[i];
message.length--;
delete headline[i];
headline.length--;
delete langs[i];
langs.length--;
}
}
initialize_language();
update_language();
}
Re: CKEditor is not full width of window
Re: CKEditor is not full width of window
Just to clarify, it is the width of the ckeditor itself which is not filling the full width of the page. The information it posts is fine.
Re: CKEditor is not full width of window
Look for the width properties in your CSS.
Re: CKEditor is not full width of window
oz