Ah, that helps! However it can only be hard-coded if Composr is set to fixed width. It may be possible to do findWidth(element) on the containing box. If you want to make a patch, it would be gladly accepted, it's just too low priority for me.
Closing this, as it's a minor problem IMO, and solving it would create a bigger one.
That is, if the browser window is resized, the editor width would be too narrow.
We'd therefore have to set up an event listener to accomodate for that, but then we'd be modifying CKEditor which is something we really want to avoid, as it means forking it further.
// To disable resizing
CKEDITOR.editorConfig = function( config )
{
config.resize_enabled = false;
};
// To adjust the size
CKEDITOR.editorConfig = function( config )
{
// Sizes are in pixels
// config.resize_minWidth = 550;
config.resize_maxWidth = 500;
// config.resize_minHeight = 200;
// config.resize_maxHeight = 500;
};
That is, if the browser window is resized, the editor width would be too narrow.
We'd therefore have to set up an event listener to accomodate for that, but then we'd be modifying CKEditor which is something we really want to avoid, as it means forking it further.