1
votes

In the rich text field I choose Full alignment, but when previewed the text has left alignment. When I close and reopen the document, the text is brought back to left alignment. How can this be resolved?

2
Are you talking about the CKEditor? Or the Designer client? Can you give some more details as to your steps so we can test (or XSP code). Thanks.Simon O'Doherty
I have a form that contains a rich text field and an Xpage to show the contents of that rich text field. When I type some text and select Align paragraph > Full, the text is properly aligned in the form. So I save the document, close the form and when I preview it in the browser through the Xpage, the text is left aligned. Also when I open again the document in the Notes client, it's left aligned.gkidd
And is this Notes, IE7/8/9 or Firefox? We had tons of problems with rich text fields in IE. You may have to fiddle with the CSS a little.D.Bugger
It's in IE 8/9, Firefox 3.6* and Chrome... I thought about doing it with css, but what about when the user doesn't want a full text alignment?gkidd

2 Answers

3
votes

If I understand you correctly, you have a Notes Form with a Rich Text field, in which you align the text "justified", as in the screenshot below: Align Justified in Notes Client, viewed in Notes Clients

But if you view that in a Xpage, the text is no longer justified, neither in the read-only rendering, nor in the edit-rendering with the CKEditor: Align Justified in Notes Client, viewed as an Xpage in the browser

Alas, if you align the text justified via the CKEditor, it renders properly in the browser Align Justified in CKEditor, viewed as an Xpage in the browser

with an "interesting" rendering in the Notes Client: Align Justified in CKEditor, viewed in the Notes Client

This is a "known" problem and in my demo case, the Xpages runtime engine even warns me about that: Saving this document will change its format from native Notes rich text to HTML.  This may cause a change or loss of formatting if opened again in the regular Notes client.

"Saving this document will change its format from native Notes rich text to HTML. This may cause a change or loss of formatting if opened again in the regular Notes client."

The conversion of rich text to HTML and vice versa is not the whole problem, even though the message says that. There are also issues with repeated conversions back and forth changeing font sizes, loss of certain colors and styles, etc.

This is a long standing issue with Ben Langhinrichs, who documents that rather thoroughly and even sells an extension to handle that conversions better.

Hope this helps a little bit.

0
votes

I am using v8.5.3 and in the All Properties of the CKeditor they have a property called 'htmlConversion Warning' that you can set to 'noWarning' which seems to prevent the Saving this document message mentioned above. Seems someone from IBM has taken a note from Microsoft on providing a solution. Now if only they would take a note from them on how to market the product.