361 Lotus blogs updated hourly. Who will post next? Home | Downloads | Events | Pods | Blogs | Search | myPL | About 
 
Latest 7 Posts
Got PNG? You may get problems.
Mon, Nov 17th 2014 247
VMWare Fusion VM Corrupted? Try this.
Mon, Nov 10th 2014 197
Domino SSL Fixes Coming: "Dis is good!"
Tue, Oct 21st 2014 377
Hey who got The Handsome Champion?
Thu, Jul 24th 2014 61
SoftLayer + IBM: One Year Update
Wed, Jul 2nd 2014 67
Streaming files to IE8? You may want this.
Fri, Jun 20th 2014 59
Let me tell you some things about the Irish...
Thu, Jun 12th 2014 54
Top 10
Domino SSL Fixes Coming: "Dis is good!"
Tue, Oct 21st 2014 377
Got PNG? You may get problems.
Mon, Nov 17th 2014 247
VMWare Fusion VM Corrupted? Try this.
Mon, Nov 10th 2014 197
Using CKEditor 4: Part 6 - Caveats: Jumping Editors, More on Validation, Going iPad "Only," and 32K Limits
Fri, Mar 14th 2014 143
Setting Up The IBM HTTP Server with Domino 9
Wed, May 29th 2013 115
Use "secret" XPages for controlling scoped variables
Thu, Sep 20th 2012 99
FIX: "Infinite" IE windows from mailto links
Thu, Oct 17th 2013 88
Setting Up TLS (SSL) for IBM HTTP Server with Domino 9 - Part 1
Thu, May 30th 2013 82
Using CKEditor 4: Part 4 - Designing for Read/Edit Modes and Using Validation
Wed, Mar 12th 2014 73
Add Custom HTML Templates to Your CKEditor
Wed, Oct 16th 2013 70


Be careful with empty CKEditor rich text fields
   


The CKEditor is very handy in XPages since it saves the content as MIME which can be processed as such in other places in your application. However you should be aware of how it operates so you can code around its behavior.

In 8.5.3 the CKEditor for rich text controls has been updated.

1. If you never enter any information into the field, then the field is a text field even if the document has been saved.

2. If you enter a single space and save the document, then the field is a MIME object and remains so even if you remove the content and re-save the document.

SOLUTION:

Use something similar to the code below to discover if the field is actually MIME or just plain empty text:


if(doc.getFirstItem("aRichTextField").getType()==Item.MIME_PART){
x=doc.getMIMEEntity("aRichTextField").getContentAsText();
}else{
x="";
}


NOTE: I have already upgraded everything to 8.5.3 so I cannot accurately verify but I believe this was not the case in 8.5.2 because after upgrading some existing/working suddenly stopped working and this was the cause.

If anyone knows differently about 8.5.2, please let me know.

---------------------
http://xpagetips.blogspot.com/2011/10/be-careful-with-empty-ckeditor-rich.html
Oct 28, 2011
34 hits



Recent Blog Posts
247


Got PNG? You may get problems.
Mon, Nov 17th 2014 6:18a   Russell Maher
Last Spring I was configuring the Web Application Firewall in front of our Domino XPages application and discovered a rather annoying little Domino "feature." It seems that Domino likes to send PNG files down the wire while indicating that those files are JPEG files. To illustrate the issue I've included a screen shot from a quick Burp scan that shows there is a mismatch. The issue is that the image might not display at all depending on your network and security setup. This came up agai [read] Keywords: domino xpages application network security server
197


VMWare Fusion VM Corrupted? Try this.
Mon, Nov 10th 2014 5:17a   Russell Maher
I use several VMs and have been using VMWare Fusion for years. No problems. Then last month one of my two main vms got this strange error. I futzed with it but was in a hurry and ended up being able to copy the critical files off of it just in case and the darn thing is still corrupted somehow and I really cannot use it any more. So...this past weekend I received a similar error that looks somethings like this... ...except that this time it was on my really, really main VM so I quickly us [read] Keywords: google vm vmware
377


Domino SSL Fixes Coming: "Dis is good!"
Tue, Oct 21st 2014 10:10a   Russell Maher
As Nicolas Cages tells Cher in Moonstruck when he's eating the steak she cooked for him... "'Dis is good." IBM released two technotes today regarding SSL and Domino. I do wish this would have happened sooner but I can tell you from a lot of life experience that "late" is truly better than "never." Domino peeps will be able to support TLS 1.0 and disable SSLv3 support (to protect themselves from POODLE without a proxy server) AND support for SHA2 SSL/TLS certificates is also coming. [read] Keywords: domino ibm server
61


Hey who got The Handsome Champion?
Thu, Jul 24th 2014 1:11p   Russell Maher
My IBM Champion swag just arrived and I ripped into it like it was Christmas then got on a real roll with PhotoBooth! Thank you to IBM for having the Champion program and thank you to Oliver and Amanda for providing us with some really nice things. Very cool. The stuff is cool, no doubt about that, but it is still the honor of being selected an IBM Champion that is really really cool and I am very grateful. [read] Keywords: ibm
67


SoftLayer + IBM: One Year Update
Wed, Jul 2nd 2014 3:11p   Russell Maher
About a year ago I posted a couple of times regarding IBM's acquisition of SoftLayer. Received email this morning heralding the one year anniversary of the acquisition and I thought I would take a few moments to give my take as a SoftLayer customer. I was very concerned a year ago when I heard the SoftLayer announcement because, while I sincerely believe the financials of IBM's acquisition of Lotus Software back in 1995 are right in line with IBM's business track record (which is to say the [read] Keywords: ibm lotus application email
59


Streaming files to IE8? You may want this.
Fri, Jun 20th 2014 9:11a   Russell Maher
An easy XPages tip for a lazy Friday... Got SSL? Streaming files using an XAgent? You're gonna' get an error unless you do something like this: if(context.getUserAgent().isIE(8, 8)==false){ response.setHeader("Cache-Control", "no-cache"); } Apparently IE8 don't like no caching when streaming files over SSL. [read] Keywords: xpages




54


Let me tell you some things about the Irish...
Thu, Jun 12th 2014 6:12a   Russell Maher
To tie off my Ireland Itinerary series of posts I wanted to close with some thoughts on the Irish people and country. I have a curiosity about people that I do not often have the chance to indulge generally because I am too busy and many people find my inquisitive intensity to be unnerving but when I have the chance, the time and the opportunity I really try to learn as much about others as possible and am often rewarded with some valuable perspectives. What I found in Ireland is that the peop [read] Keywords:
46


A Few Pics from Ireland
Wed, Jun 11th 2014 6:12a   Russell Maher
Some of my favorite pics from our Ireland trip... They run anybody during elections! At Newgrange Giant's Causeway Sheeps At Harvey's Point they added this small fireplace room in 2004. It is so awesome! Kylemore Abbey Cows on the road Cows in a field. Banded Galloways Dinner at Hayfield Manor Where the Mahers are from Rock of Cashel Actually drank some whiskey...well Ginger Ale with some whiskey This is really good! Too much to drink? Fishing pole and an an MG [read] Keywords: application blogger google
45


Our Grand Ireland Itinerary: Nights 8-11
Tue, Jun 10th 2014 2:15p   Russell Maher
This is the second part in a series of posts about our trip to Ireland. Day 1 Itinerary Day 3 Itinerary Nights 8-11 Our first seven nights took us from Dublin to Trim to Northern Ireland to Donegal and then toward Galway. Nights 8-11 took us to the Dingle Peninsula, through part of the Ring of Kerry then over to Cork. Dingle The Dingle Peninsula is stunning. The road out on the peninsula offers some of the most stunning coastline you'll ever encounter. Really something to see. Sadly [read] Keywords:
42


Our Grand Ireland Itinerary: Nights 12-14
Tue, Jun 10th 2014 2:15p   Russell Maher
This is the third post in a series of posts about our Ireland itinerary. Day 1 Itinerary Day 2 Itinerary Nights 12-14 Our last drive took us from Cork, where we stayed at the lovely Hayfield Manor, to Dublin via Blarney Castle, where we both kissed the Blarney Stone, to Tipperary (the ancestral location ft the Mahers), to the Rock of Cashel, the lovely town of Kilkenny and then to Dublin where we dropped off the rental car after checking in to fabulous Westbury Hotel. Blarney Castle [read] Keywords: wiki




Created and Maintained by Yancy Lent - About - Blog Submission - Suggestions - Change Log - Blog Widget - Advertising - Mobile Edition