marcosamz / vaadin-ckeditor

Automatically exported from code.google.com/p/vaadin-ckeditor
0 stars 0 forks source link

Add feature for disabling editor resize #20

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
As suggested in this article 
http://mikebranski.com/blog/disable-editor-resizing-in-ckeditor/

Thanks,
Tien

Original issue reported on code.google.com by tiendung.tran on 21 Jun 2012 at 1:22

GoogleCodeExporter commented 9 years ago
You can do this yourself now with the generic setting routines in 
CKEditorConfig using 

public void addExtraConfig(String extraConfigName, String extraConfigValue )

The blog post you have points out difficulty in setting resize directions, but 
this is already available with CKEditorConfig:

public enum RESIZE_DIR { BOTH, VERTICAL, HORIZONTAL }
public void setResizeDir(RESIZE_DIR dir)

We'll get some specific methods added to support:
setResizeEnabled(boolean v) for resize_enabled
setResizeMinWidth(int pixels) for resize_minWidth
setResizeMinHeight(int pixels) for resize_minHeight
setResizeMaxHeight(int pixels) for resize_maxHeight
setResizeMaxWidth(int pixels) for resize_maxWidth

This will probably occur soon.

Original comment by yoz...@gmail.com on 21 Jun 2012 at 2:19

GoogleCodeExporter commented 9 years ago
Okay, fixed in 1.6.5.

Original comment by yoz...@gmail.com on 21 Jun 2012 at 2:28

GoogleCodeExporter commented 9 years ago
Lovely, much appreciate for the quick turnaround :)

Original comment by tiendung.tran on 21 Jun 2012 at 2:35