-
14 Feb 2011 8:13 PM #1
CKEditor-GWT FitLayout
CKEditor-GWT FitLayout
When adding a CKEditor object to a LayoutContainer with a FitLayout, the CKEditor only takes up about 300px height-wise no matter how tall the available LayoutContainer is.
Has anyone been able to get CKEditor to use up 100% of the height of its container under GXT?
-
15 Feb 2011 3:21 AM #2
What is a CKEditor?
Maybe in this CKEditor code, the height is manually set to 300px?
It is really hard to tell what is the problem without some code...
-
15 Feb 2011 11:42 AM #3
It's a rich text editor control with a lot more options than the stock GXT rich text editor.
http://ckeditor.com/
There's a wrapper library for GWT:
http://code.google.com/p/gwt-ckeditor/
Here's my code:
Code:package com.espoc.vericle.gwt.xdoc.client.ui; import com.axeiya.gwtckeditor.client.CKConfig; public class XDocTemplateEditorWindow extends Window { private CKEditor cke = new CKEditor(CKConfig.full); public XDocTemplateEditorWindow() { setLayout(new FitLayout()); add(cke); cke.setWidth("100%"); cke.setHeight("100%"); // tried with and without the setHeight/setWidth functions and also tried absolute pixels. It always sets to the max width and about 300px height or so. layout(); } @Override public void show() { setSize(RootPanel.get().getOffsetWidth() - 40, RootPanel.get().getOffsetHeight() - 40); super.show(); layout(true); } }
-
16 Feb 2011 1:43 AM #4
cke.setWidth("100%") and setHeight("100%") should not be called, since the layout is already set to FitLayout.
The problem must be with your CKEditor. It must be configured internally with a width of "about" 300px.
Please check the rendered page with FireBug, for example, and try to check where is this set.
Or, you would need to analyse the CKEditor code and look for it.
Regards,
Michel.
-
16 Feb 2011 3:57 AM #5
Yeah.. My first try was without the setHeight/Width, hoping it would just work. I'll give Firebug a try. I was just hoping someone already ran into this or could suggest a good rich text editor (with table and image support) that would just work with GXT.
I'll keep the group posted! Thanks for the suggestion.
Similar Threads
-
CKEditor Extension
By iosoftgame in forum Ext 3.x: User Extensions and PluginsReplies: 39Last Post: 5 Sep 2012, 9:16 AM -
CkEditor and (Sencha) Extjs
By russall1985 in forum Community DiscussionReplies: 0Last Post: 10 Feb 2011, 7:15 AM -
Initialize panel as disabled with embedded ckeditor
By ChrisR in forum Ext 2.x: Help & DiscussionReplies: 1Last Post: 10 Jan 2011, 1:44 PM -
TabPanel with FitLayout
By franck971 in forum Ext GWT: DiscussionReplies: 0Last Post: 21 Aug 2009, 4:52 AM


Reply With Quote