How Do I Limit the Directions for CKEditor Resizing to Horizontal or Vertical Only?

This website contains links to software which is either no longer maintained or will be supported only until the end of 2019 (CKFinder 2). For the latest documentation about current CKSource projects, including software like CKEditor 4/CKEditor 5, CKFinder 3, Cloud Services, Letters, Accessibility Checker, please visit the new documentation website.

If you look for an information about very old versions of CKEditor, FCKeditor and CKFinder check also the CKEditor forum, which was closed in 2015. If not, please head to StackOverflow for support.

(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';
This page was last edited on 11 July 2011, at 10:18.