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