The useful resource for IBM Lotus Domino XPages development
Home
mobile Apps for iPhone, iPad, Android
Browser compatibility
Debugging and error logging
Developing for an iPhone or iPad
Export to PDF and Excel
How to create a picklist style dialog
How to export to Excel or other formats
How to output custom content like print from an agent
How to secure your application
How to use object oriented server side javascript
Memory Usage and Performance
Special chars and escaping
Useful CSS tipps
Useful formulas and code snippets
Useful tools, tips and keyboard shortcuts for Domino Designer
What's new in Domino 8.5.2
What's new in Domino 8.5.3
What's new in Domino 9
Work with a file upload and download controls
Work with agents
Work with application settings and xpage properties
Work with Client side JavaScript
Work with custom controls
Work with datasources
Work with Dates
Work with DbColumn and DbLookup
Work with documents and fields on the XPage
Work with Dojo
Work with events
Work with events and partial or full refresh
Work with Extension Library
Work with Hide When on a XPage
work with HTML forms
Work with Java
Work with multimedia
Work with numbers / math
Work with oneUI theme
Work with Partial Refresh and Dojo.connect
Work with profile documents
Work with regular expressions
Work with relational databases
Work with repeat controls
Work with RichText
Work with scoped variables
Work with ServerSide JavaScript
Work with strings
Work with tables and tabs
Work with themes
Work with Typeahead
Work with URLs
Work with validation and message controls
Work with views
Work with XPages in the Notes Client
xPages further information
xpageswiki.com - the useful resource for IBM Lotus Domino XPages development
xpageswiki.com for iPhone, iPad and Android
Create new page...
All pages
All pages
Alphabetical List
Recently Added
Recent Page Edits
Pages Owned By Me
Categories
Categories
CSS (1)
Client JavaScript (2)
Controls (2)
Dojo (1)
Formula (2)
Getting ready for production (3)
Mobile (2)
Server JavaScript (16)
UI (13)
Working with fields (2)
Subscribe to RSS
Subscribe to RSS
Latest Pages
Recently Revised
Comments
Home
>
Work with RichText
xpageswiki.com
is maintained by
Julian Buss
.
You can hire me.
See my
LinkedIn profile
.
Julian Buss
Work with RichText
Show
Table of Contents
Hide
Table of Contents
1 Using a content filter
2 Set default content filter
3 Add buttons for link and image into RichText editor
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"
Comments (0)
Comments (0)
Add Comment
Name:
Comments:
Post Comment
Attachments (1)
Attachments (1)
File Type
Size
File Name
Created On
application/x-zip
2 KB
yn.widget.layout.YNRichtext.zip
2/16/10 11:24 AM
Revisions (5)
Revisions (5)
5
Revised on
Oct 21, 2011 4:54:50 PM
by
Julian Buss
4
Revised on
Feb 16, 2010 12:10:04 PM
by
Julian Buss
3
Revised on
Feb 16, 2010 12:09:10 PM
by
Julian Buss
2
Revised on
Feb 16, 2010 12:09:03 PM
by
Julian Buss
1
Revised on
Feb 16, 2010 12:08:41 PM
by
Julian Buss
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.