.v-richtextarea {
border: 1px solid #aaa;
+ overflow: hidden;
}
.v-richtextarea .gwt-RichTextArea {
background: #fff;
border: none;
}
-/* IE6 needs a hack to render the editor with a correct height */
-.v-ie6 .v-richtextarea {
- overflow: hidden;
-}
-.v-ie6 .v-scrollable {
- overflow: auto;
-}
-
.v-richtextarea .gwt-RichTextToolbar {
white-space: nowrap;
background: #959595 url(img/richtext-toolbar-bg.png) repeat-x 0 -42px;
import com.vaadin.terminal.gwt.client.ui.ShortcutActionHandler;
import com.vaadin.terminal.gwt.client.ui.ShortcutActionHandler.BeforeShortcutActionListener;
import com.vaadin.terminal.gwt.client.ui.ShortcutActionHandler.ShortcutActionHandlerOwner;
-import com.vaadin.terminal.gwt.client.ui.TouchScrollDelegate;
-import com.vaadin.terminal.gwt.client.ui.TouchScrollDelegate.TouchScrollHandler;
/**
* This class implements a basic client side rich text editor component.
private boolean readOnly = false;
- private TouchScrollHandler touchScrollHandler = null;
-
public VRichTextArea() {
createRTAComponents();
fp.add(formatter);
initWidget(fp);
setStyleName(CLASSNAME);
+
}
private void createRTAComponents() {
}
rta.setHTML(currentValue);
fp.add(rta);
- if (touchScrollHandler != null) {
- touchScrollHandler.removeElement(fp.getElement());
- }
} else {
html.setHTML(currentValue);
fp.remove(rta);
fp.add(html);
- if (touchScrollHandler == null) {
- touchScrollHandler = TouchScrollDelegate
- .enableTouchScrolling(this);
- }
- touchScrollHandler.addElement(fp.getElement());
}
}