Default font for Rich Text field

感情迁移 提交于 2019-12-11 14:00:52

问题


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?

Any thoughts?


回答1:


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

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

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



来源:https://stackoverflow.com/questions/16040875/default-font-for-rich-text-field

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!