Skip to main content link. Accesskey S

The useful resource for IBM Lotus Domino XPages development

Submit Search


Home > Work with RichText
xpageswiki.com
is maintained by 
Julian Buss.
You can hire me.

Work with RichText

ShowTable of Contents

Using a content filter


In the "all properties" section of a richtext control there two filters: "htmlFilter" and "htmlFilterIn".

"htmlFilter" runs when DISPLAYING richtext content.
"htmlFilterIn" runs when SAVING richtext content.

The following filters are available:
- "identity": leave it as it is
- "empty": remove all content
- "acf": active content filter, removes potential dangerous HTML and JavaScript
- "striptags": remove all tags, leave only plain text

Note: the filters are available for other field types (like text fields), too.

Set default content filter


You can modify the xsp.properties file for one NSF or on the server to set a default content filter:

xsp.richtext.default.htmlfilter=acf 
xsp.richtext.default.htmlfilterin= 


More information about content filter is found at Steve Castledine.

Add buttons for link and image into RichText editor


Credits for this to Steve Leland

I created a ready-to-use dojo plugin to extend the build in RichText editor with buttons for "create link" and "insert image".
Steps:

1.) download this file and extract it onto your Domino server to notesdata/domino/js/dojo-1.3.2

2.) in your XPage, go to all properties -> resources -> add dojo module "yn.widget.layout.YNRichText"

3.) in the properties of your richtext input control, go to all properties -> dojoType and set dojoType to "yn.widget.layout.YNRichText"


How to take your XPages App to the iPhone, iPad, Android: use Domino To Go!
Do you look for an XPages Workflow solution? Take YouAtNotes Workflow.