Editor Extension

Hello!

Someone could tell me how to use this extension.

The usage from there is too short for some one new like me.

Suppose I have code like this:




        <div class="row">

		<?php echo $form->labelEx($model,'hotel_desc'); ?>

		<?php echo $form->textField($model,'hotel_desc',array('size'=>45,'maxlength'=>45)); ?>

		<?php echo $form->error($model,'hotel_desc'); ?>

	</div>



How to apply the extension?

Thank you for reading.

Regards.

copy this extension’s into ur protected/extensions folder

add this code to ur view…

Slim and easy

Sorry what do you mean by saying "add this code to ur view…"?

Do you mean my code in my first code?

No, it won’t work.

From the link I’ve provided, there is a snippet for using like this:




echo CHtml::activeTextArea($post,'content',array('rows'=>6, 'cols'=>60));

$this->widget('application.extensions.editor.editor',

                   array('name'=>'post_content', ));



It’s to short and not understandable.

Regards.

i am using ck editor, which is so good, kcfinder will allow us to browse and upload… try ckeditor