【发布时间】:2012-11-15 12:31:48
【问题描述】:
我的 xhtml 视图中有一个 rich:editor 字段,它的默认字体大小为 11。它是这样的:
<rich:editor id="editor_value"
configuration="#{editorBean.currentSimpleConfiguration}"
width="560" height="130" viewMode="#{editorBean.viewMode}"
value="#{bean.value}">
我想更改默认字体大小并使其更大。
我知道我可以使用 "f:param" 来做到这一点,例如:
<rich:editor id="editor_value"
configuration="#{editorBean.currentSimpleConfiguration}"
width="560" height="130" viewMode="#{editorBean.viewMode}"
value="#{bean.value}"/>
<f:param name="font_size" value="13px"/>
</rich:editor>
或将分配“font_size=13px”放入我的“simple.properties”文件(在“configuration="#{editorBean.currentSimpleConfiguration}"”中引用)
但这些解决方案无效,字体大小继续为 11px...
有人知道我哪里错了吗?
非常感谢
【问题讨论】:
标签: richfaces