I am using this rich text editor: com.google.gwt.user.client.ui.RichTextArea I would like to force line break on the editor, so that if I try to type a extremely long word, it is not displayed "out of bounds" with the horizontal scroll bar, but the line breaks automatically. How can I do that?

Already tried this without success:

@external .gwt-RichTextArea;

.gwt-RichTextArea {
    background-color: lightGrey;
    word-wrap: break-word;
}

Thanks!

有帮助吗?

解决方案

Apply CSS rule to your RichTextArea:

word-wrap: break-word;
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top