Buck Anderson posted on April 22, 2009 00:13 :: 4094 Views

Issue:
If you have worked with XMod, and the FCK Editor Provider, you may have noticed that even if you have not entered any data the editor still retains a paragraph with a no break space - to the rescue.
I was having considerable issues writing Xmod applications since DNN version 4.0.0.
I had gone under the assumption that if you did enter any test into the HTML editor control it would remain empty - WRONG!
Beginning with DNN 4.8.0 the included FCK Editor provider will retain a code chunk.
If you are working in XMod templates and you use an xmod:if statement to test if there is data (Example xmod:if name="CompanyProfile") you will assume that nothing will be returned if no data was entered.
Unfortunately the if statement will fail because of the paragraph that is save to the editor by default.
Solution:
In your DNN file structure search for the file fckconfig.js. It should be located in Providers\HtmlEditorProviders\Fck\Custom
Perform a search for the line FCKConfig.FillEmptyBlocks and change the value from true to false.
I want to thank Bill Mason for discovering the solution.
More information can be found here.
Buck