(Article contents added) |
(Minor article title rewording) |
||
Line 1: | Line 1: | ||
− | {{#CUSTOMTITLE:How Do I Limit the Directions for CKEditor Resizing?}} | + | {{#CUSTOMTITLE:How Do I Limit the Directions for CKEditor Resizing to Horizontal or Vertical Only?}} |
CKEditor window can be [[CKEditor_3.x/Users_Guide/Interface#Resizing_and_Maximizing_CKEditor|resized]] if the <code>[http://docs.cksource.com/ckeditor_api/symbols/src/plugins_resize_plugin.js.html resize]</code> plugin is enabled. You can however define the resizing directions in order to have more control over the resulting editor appearance. | CKEditor window can be [[CKEditor_3.x/Users_Guide/Interface#Resizing_and_Maximizing_CKEditor|resized]] if the <code>[http://docs.cksource.com/ckeditor_api/symbols/src/plugins_resize_plugin.js.html resize]</code> plugin is enabled. You can however define the resizing directions in order to have more control over the resulting editor appearance. | ||
Latest revision as of 10:18, 11 July 2011
CKEditor window can be resized if the resize
plugin is enabled. You can however define the resizing directions in order to have more control over the resulting editor appearance.
By default CKEditor resizing is allowed in both directions — vertical and horizontal. This is achieved thanks to setting the resize_dir
configuration value to both
(this is the default setting).
config.resize_dir = 'both';
If you want to allow vertical resizing only, you need to set the resize_dir
configuration value to vertical
.
config.resize_dir = 'vertical';
If you set the resize_dir
configuration value to horizontal
, CKEditor window will only be resizable in horizontal dimension.
config.resize_dir = 'horizontal';