Hi Forum,
I have been trying to integrate CKEditor in SmartGWT 3.0 using the instructions in http://wiki.smartclient.com/display/...or+as+a+widget
It seems to work but unfortunately the Widget isn't correct visualized in a SmartGWT Window...It appears onto the Window Title bar!
This is my attempt:
And what I get is in the image attached.
What am I doing wrong? Any hints?
Many thanks in advance!
Fabio
I have been trying to integrate CKEditor in SmartGWT 3.0 using the instructions in http://wiki.smartclient.com/display/...or+as+a+widget
It seems to work but unfortunately the Widget isn't correct visualized in a SmartGWT Window...It appears onto the Window Title bar!
This is my attempt:
Code:
public ImageBox(final Container container) {
this.container = container;
setShowEdges(true);
oCKEditor.setWidth100();
oCKEditor.setHeight100();
oCKEditor.setID("editor1");
setID("ID" + id++);
final Window window = new Window();
window.setTitle("Edit Image");
window.setCanDragReposition(true);
window.setCanDragResize(true);
window.setWidth(700);
window.setHeight(300);
window.setTitle("" + window.getZIndex());
VLayout oLayout = new VLayout();
oLayout.addChild(oCKEditor);
oLayout.setWidth100();
oLayout.setHeight100();
window.addChild(oLayout);
window.centerInPage();
ClickHandler oCanvasClickHandler = new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
// When the editor is opened, the panel is selected..
ImageBox.this.setBackgroundColor("#FF0000");
window.show();
}
};
addClickHandler(oCanvasClickHandler);
}
What am I doing wrong? Any hints?
Many thanks in advance!
Fabio
Comment