#277 - Forum message box (editor) can be resized out of form layout
| Identifier | #277 |
|---|---|
| Issue type | Feature request or suggestion |
| Title | Forum message box (editor) can be resized out of form layout |
| Status | Closed (rejected) |
| Handling member | Chris Graham |
| Addon | cns_forum |
| Description | Forum message box can be resized out of form layout so it cannot be resized again.
|
| Steps to reproduce | 1) Create new forum topic (or replay to existing one) 2) Click and hold lower right corner of the message box 3) Drag to resize message box to the right (out of the form layout) 4) Release mouse button 5) Try to resize the message box again. It is not possible because its right margin is out of the form (see attached screenshots) |
| Additional information | Expected behavior: the message box cannot be larger than form size (width). |
| Funded? | No |
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".


Comments
// 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.