- xml 里面给 richTextArea 加一个stylename:
<richTextArea id="richTextArea" stylename="textarea-no-toolbar"/>
- 自定义主题,然后添加样式:
.textarea-no-toolbar .gwt-RichTextToolbar {
display: none;
}
这样一来,不需要显示toolbar的富文本只需指定stylename textarea-no-toolbar
即可,其他的富文本不受影响。
1 个赞