WPC 2008
 Cerca nei blog
nov29

Written by:Dario Rossa
sabato 29 novembre 2008 9.14 

Never noticed that leaving the FCK html editor blank doesn't mean to get an empty string? Most probably what you get is a <p>&#160;</p>. If you don't mind why this happens, but just want to stop it, read more. - Avete mai notato che lasciare vuoto l'editor html FCK non significa ottenere una stringa vuota? Molto probabilmente quello che si ottiene è <p>&#160;</p>. Se non vi interessa il perchè questo succede, ma semplicemente volete evitarlo, leggete oltre.

 The html editor that comes with DNN is the FCK html editor, a feature rich control that is plenty of settings to suit any need. But one of the default settings that the DNN users hate most, probably  is the FillEmptyBlocks feature. To make a long story short, whenever the user leaves a blank textbox while in Normal View, the source is filled with a <p>&#160;</p> tag. This may cause some modules to 'read' the content as a not empty string, thus leading to undwanted results. Want to stop it? Launch your preferred text editor and open these files:

Il provider html Editor che viene fornito con DNN è FCK html editor, un controllo ricco di funzionalità e possibilità di personalizzazione. Ma una delle impostazioni predefinite che gli utenti odiano di più è senza dubbio FillEmptyBlocks. In breve, quando l'utente lascia la casella di testo vuota nella visualizzazione normale, il codice sorgente è riempito con un <p>&#160;</p>. Questo induce alcuni moduli ad interpretarlo come una stringa non vuota, conducendo così a risultati inaspettati. Volete evitare che accada? Utilizzate l'editor di testo preferito e aprite i seguenti files:

[dnnroot]\Providers\HtmlEditorProviders\Fck\FCKeditor\fckconfig.js
[dnnroot]\Providers\HtmlEditorProviders\Fck\Custom\fckconfig.js

Where [dnnroot] is the root folder where your DNN installation resides. Now find the FillEmptyBlocks key and set it to False. Save the files and restart your application. If you are running an online installation, you will need to download the files, edit them using notepad, and upload back them overwriting the originals. This is best done with a tool like Filezilla. From now and over, the FCK editor will not add any unwanted tags when an user leaves the editor empty.

Dove [dnnroot] è la cartella principale in cui è installato DNN. Ora individuate le chiavi FillEmptyBlocks e settatele a False. Salvate i files e riavviate l'applicazione. Se si ha a che fare con una installazione online, bisognerà scaricare i due files, modificarli, e ricaricarli sovrascrivendo gli originali. Questo è particolarmente semplice con tools come Filezilla. D'ora in poi l'editor FCK non aggiungerà altri tag indesiderati quando l'utente lascia l'editor vuoto.

Tags:

3 comment(s) so far...

Re: Those unwanted tags in FCK editor

Thank you for this entry. Those unwanted tags maked me tired.

By nmduc073 on  sabato 10 gennaio 2009 14.04

Re: Those unwanted tags in FCK editor

Thank you for this entry. I am tired to those unwanted tags.

By nmduc073 on  sabato 10 gennaio 2009 14.06

Re: Those unwanted tags in FCK editor

Thank you for this entry. I am tired of those tags.

By nmduc073 on  sabato 10 gennaio 2009 14.06

Your name:
Your email:
(Optional) Email used only to show Gravatar.
Your website:
Title:
Comment:
Add Comment  Cancel 
Invia questa pagina ad un amico