富文本字段的默认字体 [英] Default font for Rich Text field

查看:47
本文介绍了富文本字段的默认字体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的 xpages 应用程序中,我有一个评论字段,它是一个富文本字段.我的用户希望默认字体为 Courier New.是的,他们可以单击下拉菜单并选择 Courier New,但他们希望能够开始输入.我尝试在富文本控件上设置样式,但是没有用.以某种方式在主题中?

In my xpages application, I have one comments field that is a rich text field. My users would like the default font to be Courier New. Yes, they can click the drop down and select Courier New, but they would like to be able to just start typing. I tried setting the style on the rich text control, but that didn't work. In the theme somehow maybe?

有什么想法吗?

推荐答案

理论上(说实话,我自己从来没有做过)这可以通过 rt 编辑器的配置来完成.Xpages 默认带有 CKEditor,它有自己的 JS API;您可以在此处找到文档:

in theory (to be honest, I've never done it myself) this can be done through the rt editor's configuration. Xpages by default come with CKEditor which has its own JS API; you can find the documentation here:

CKEditor API

相关的 config.js 存储在服务器端的这个位置:

The relevant config.js is stored server-side at this location:

[domino-data]/domino/html/ckeditor/config.js

[domino-data]/domino/html/ckeditor/config.js

这篇关于富文本字段的默认字体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆