Testimonials Minimize
BTW 5.0 rocks. Nice work.
User: z3r0c00l via our forums
  
spacer
DNNDev Blogs: Most recent blog entries Minimize
Jan 13

Written by: Buck Anderson
1/13/2009 12:11 PM 

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...

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 <p>&#160;</p>

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

 

Tags:

Your name:
Your email:
(Optional) Email used only to show Gravatar.
Your website:
Title:
Comment:
Security Code
Enter the code shown above in the box below
Add Comment   Cancel 
spacer
dummy