Hi,
I need help regarding alert before submitting the form and disabling some of the elements of the editor.
Does anyone have used it?
Thanks
Hi,
I need help regarding alert before submitting the form and disabling some of the elements of the editor.
Does anyone have used it?
Thanks
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',
'options'=>array(
'tools'=>'full', // mini, simple, full or from XHeditor::$_tools
'width'=>'100%',
'skin'=>'o2007silver',
),
));
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):
$this->htmlOptions[‘class’]=‘xheditor’;
right before :
if($this->hasModel())
echo CHtml::activeTextArea($this->model,$this->attribute,$this->htmlOptions);
else
echo CHtml::textArea($name,$this->value,$this->htmlOptions);