1

I want to include PHP scripts in my website. I am using CL editor to post contents. Can anyone help me to do syntax enabling in the CL editor.

Thanks

hakre
  • 193,403
  • 52
  • 435
  • 836
Janaki
  • 185
  • 12
  • 2
    It does not look like that CL Editor offers a feature more or less close to what you would like to achieve. – hakre Mar 23 '12 at 15:07

1 Answers1

0

After you extract CLEditor in protected/extensions/ this is the script to create it:

<?php $this->widget('Application.extensions.cleditor.ECLEditor',array(
                        'model'=>$model,
                        'attribute'=>'isi',
                        'options'=>array(
                            'width'=>'700',
                            'height'=>250,
                            'useCSS'=>true,
                        ),
                        'value'=>$model->artikel
                    )); ?>

Try it :)