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 the file "yn.widget.layout.YNRichText.zip" (attached to this page, see below in the "Attachments" section) 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"
|