1
votes

For 20 years I have been able to copy and paste rich text fields from one lotus document to another. But now if I try to copy rich text from a Lotus Document (or another application) into a Rich Text Field in an Xpage, I cannot! Why? Maybe I am doing something wrong.

If I open up the document in the form that is the datastore then I can paste in my rich text contents, and then edit them via the Xpage. But this should be functionality that is available in Xpages.

It is in the XPiNC.

1
Is it in XPiNC or using browser access?David Navarre

1 Answers

1
votes

Domino supports 2 ways of storing the contents of a 'Rich Text' item in a Notes Document.

  • Domino's Native Rich Text format
  • MIME / Html - Which is used throughout the internet and mail systems.

There is a setting on the Item Properties which determines what format 'Store contents as Mime/html'.

The XPages control only supports MIME / HTML. When you load a document's Rich Text Item that is stored as the Native Rich Text Format, it converts it from Native to MIME / HTML upon loading the document so that it can be used with the XPages control. This explains why pasting it into the document and then loading via XPages works, as you are pasting in the Native rich text, but it converts it when opening.

If you try to copy from Notes Client (Native Format) to XPages it will only support whatever format that CKEditor will accept for pasting and I don't think Domino Native Rich Text is one of them. This is still the same whether using Xpinc or Web browser

If you are going to be doing anything fancy with XPages Rich Text it is worth learning about MIME and how it works as it will save you some headaches.