Decode html in tinymce

Ciao a tutti ragazzi,

ho scaricato l’estensione per l’editor “tinymce”.

Avevo già una tabella esistente nel db, e il campo "content" era già popolato.

Ora aggiungendo questa estensione mi ritrovo non il testo formattato dentro l’editor ma l’html per esteso.

Il widget l’ho utilizzo così:




 <?php

        $this->widget('application.extensions.tinymce.ETinyMce', array(

            'name' => 'html',

            'editorTemplate' => 'full',

            'model' => $model,

            'attribute' => 'content',

            'options' => array(

                'theme' => 'advanced',

                'skin' => 'o2k7',

                'theme_advanced_buttons1' => 'preview,bold,italic,underline,fontselect,fontsizeselect,link,justifyfull,justifyleft,justifycenter,justifyright,pasteword,pastetext,table,image,|,bullist,numlist,|,undo,redo,|,code,fullscreen',

                'theme_advanced_buttons2' => '',

                'theme_advanced_buttons3' => '',

            ),

            'value' => $model->content,

        ));

        ?>




e nell’allegato la foto di come vedo il testo.

Insomma pensavo ad un decode come l’esempio di “CHtml::decode”.

ciao e grazie.

Giuseppe

e comunque ragazzi dajeeee con sto framework che davvero fa risparmiare un sacco di tempo.