Open GoogleCodeExporter opened 9 years ago
I think this is an
[http://ckeditor.com/forums/CKEditor-3.x/Setting-editor-area-height-100?page=1
issue] with CKEditor not accepting percentage values for
[http://docs.ckeditor.com/#!/api/CKEDITOR.config height]. A workaround is to
resize the Editor through JSNI once your Layout is loaded and you know the
actual height in pixels.
{{{
private native void resizeEditor(CKEditor editor, String width,
String height) /*-{
var e = editor.@com.axeiya.gwtckeditor.client.CKEditor::editor;
if(typeof(e) != 'undefined' && e != null){
e.resize(width, height);
}
}-*/;
}}}
and call it like this
{{{
String calculatedHeight = getClientHeightAsString(); // '500', '25em' or '300px'
resizeEditor(myCKEditor, "100%", calculatedHeight);
}}}
I've blogged about this
[http://cirovladimir.wordpress.com/2013/04/22/smartgwt-ajustando-la-altura-de-un
-ckeditor/ here] (spanish)
Original comment by cirovlad...@gmail.com
on 22 Apr 2013 at 5:10
Original issue reported on code.google.com by
eli...@espoc.com
on 15 Feb 2011 at 4:10