Вопрос

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