Xheditor help


I need help regarding alert before submitting the form and disabling some of the elements of the editor.

Does anyone have used it?


I am using Yii 1.1.7 and Xheditor (http://www.yiiframework.com/extension/xheditor), occured following problem.

I correctly installed, but Xheditor tools not displayed, only shows blank html textarea . How to solve this?

My Code :

$this->widget(‘application.extensions.xheditor.JXHEditor’, array(

		'model' => $model,

		'attribute' => 'content_en',


    		'tools'=>'full', // mini, simple, full or from XHeditor::$_tools





check is JS enable in your browser

Actually there’s javascript error which stops script from working. Javascript does not find textarea (field to be edited) that has ‘class’ attribute = ‘xheditor’. So you should add ‘class’ attribute manually.

What you need to do is -

In file protected\extensions\xheditor\JXHEditor.php

Add line (in line 43):


right before :


echo CHtml::activeTextArea($this->model,$this->attribute,$this->htmlOptions);


echo CHtml::textArea($name,$this->value,$this->htmlOptions);