gwt - 如何本地化用作 vaadin 富文本区域工具提示的文本?

标签 gwt vaadin vaadin7

official documentation他们建议使用 css 来本地化 vaadin 富文本区域的工具提示,它说:

Localizing RichTextArea Toolbars

The rich text area is one of the few components in Vaadin that contain textual labels. The selection boxes in the toolbar are in English and currently can not be localized in any other way than by inheriting or reimplementing the client-side VRichTextToolbar widget. The buttons can be localized simply with CSS by downloading a copy of the toolbar background image, editing it, and replacing the default toolbar. The toolbar is a single image file from which the individual button icons are picked, so the order of the icons is different from the rendered. The image file depends on the client-side implementation of the toolbar.

.v-richtextarea-richtextexample .gwt-ToggleButton
.gwt-Image {
  background-image: url(img/richtextarea-toolbar-fi.png)
                    !important;
}

我已经下载了工具栏背景图像。 我的问题是如何本地化用于富文本区域工具栏工具提示的字符串?或者是否有任何 vaadin 插件可以用来替代具有语言本地化功能的富文本区域?

最佳答案

尝试 Vaadin Addon - CK Editor 的包装器.

Here你可以找到在线演示。它会自动本地化为我的浏览器语言。

您可以在 official CKEditor site 上找到更多信息.

关于gwt - 如何本地化用作 vaadin 富文本区域工具提示的文本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30231332/

相关文章:

java - 如何扩展 Canvas 的Context2d?

java - Vaadin JPAContainer JDBC 连接使用

java - 在 Vaadin 7 的 TabSheet 中延迟加载选项卡内容的策略

grid - 在 vaadin 网格的一个单元格内显示多个组件

gwt - 谷歌云端点 gwt Oauth2 身份验证

java - 使用 GET 在列标题中设置大标题

java - 如何在vaadin中创建多个ui页面

java - 如何在 Vaadin 中打印

grails - Vaadin on Grails小部件集编译错误

java - HttpUrlConnection : how to get the XML response into a String?