jQuery TE is a jQuery plugin. It is a lightweight (19.5 KB) and very useful HTML editor. And it works with WYSIWYG model.
jQuery TE works with same performance on the most preferred browsers. And its source of the output is same as 90% on these browsers. Also, it compresses to source of the output automatically. jQuery TE's system runs more practical and more rapidly to other some editors.
This extension is used mainly jquery TE plugin
Requirements ¶
Requirements of using this extension (e.g. Yii 1.1 or above)
Usage ¶
<?php $this->widget('ext.jqueryte.Jqueryte', array(
'id'=>'contrl',
'model'=>$model,
'attribute'=>'attr_name',
'value'=>$model->attr_name,
'options' => [
'strike'=> false,
'sub'=>false,
'source'=>false,
'button'=>'SEND',
//'format'=>false,
'formats'=>[["p","Paragraph"],["h1","My Head 1"]],
'fsizes'=>["10", "15", "20"],
'linktypes'=>["Web URL", "E-mail", "Picture"],
],
));
Try out a demo: http://jqueryte.com/demos
Not working as it is. I made small changes in usage
Thank you for sharing.
The correct usage seems to be:
<?php $this->widget('ext.jqueryte.Jqueryte', array( 'id'=>'contrl', 'model'=>$model, 'attribute'=>'attr_name', 'value'=>$model->attr_name, 'options' => array( 'strike'=> false, 'sub'=>false, 'source'=>false, 'button'=>'SEND', //'format'=>false, 'formats'=>'[["p","Paragraph"],["h1","My Head 1"]]', 'fsizes'=>'["10", "15", "20"]', 'linktypes'=>'["Web URL", "E-mail", "Picture"]', ), )); ?>
Syntax problem
Thanks for sharing correct syntax. But it was working on my application :)
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.