Wrapper for xhEditor WYSIWYG XHTML editor v1.1.9 (build 110803)
Features: ¶
- tool panel skins (nostyle, o2007blue, o2007silver, vista) demo;
- tool panel custom elements demo;
- translations (en, zh-cn, zh-tw, ru);
- language detect (based on Yii application language);
- browser support: IE6, IE7, IE8, IE9, Firefox 3.0+, Chrome 1.0+, Opera 9.6+, Safari 3.22+,
- fast and fatfree.
Based on wysiwyg-text-editor developed by jayrulez but already not supported.
Improvements:
- includes xhEditor 1.1.9 (from 03 august 2011);
- small refactoring;
- language detect;
- enhanced documentation;
- russian localization support;
- small simple php-script for creating localizations for other languages (see js-LANG-localizer.php for instructions).
Requirements ¶
- Yii 1.1 or above.
- JQuery 1.4.2 or above.
- xhEditor 1.1.9 (included).
Installation ¶
- Extract the release files under protected/extensions/widgets
Usage ¶
Standalone usage:
$this->widget('ext.widgets.xheditor.XHeditor',array(
'language'=>'en', // en, zh-cn, zh-tw, ru
'config'=>array(
'id'=>'xh1',
'name'=>'xh',
'skin'=>'o2007silver', // default, nostyle, o2007blue, o2007silver, vista
'tools'=>'mini', // mini, simple, mfull, full or from XHeditor::$_tools, tool names are case sensitive
'width'=>'100%',
//see XHeditor::$_configurableAttributes for more
),
'contentValue'=>'Enter your text here', // default value displayed in textarea/wysiwyg editor field
'htmlOptions'=>array('rows'=>5, 'cols'=>10), // to be applied to textarea
));
Or with model:
<?php
$this->widget('ext.widgets.xheditor.XHeditor',array(
'model'=>$modelInstance,
'modelAttribute'=>'attribute',
'showModelAttributeValue'=>false, // defaults to true, displays the value of $modelInstance->attribute in the textarea
'config'=>array(
'tools'=>'full', // mini, simple, mfull, full or from XHeditor::$_tools
'width'=>'300',
),
));
?>
upload feature
How do I enable the upload feature?
'upImgUrl'=>'upload.php',
in the config section, doesn't seem to work.
upload feature
Sorry, but upload feature is not implemented in this widget. Only wysiwyg editor.
Is it possible to use this extension to embed youtube?
Can we use this extension to embed youtube videos?
I can put in the source code the embed code, and i can see it when i'm updating, but when i render the view i can't view the embed contents.
Any ideas how to do this?
Great extention
first time i placed two times the same editor but only first one worked...then i assigned different id for each editor and now both editors are working perfectly....
$this->widget('application.components.widgets.textAreaEditor.XHeditor',array( 'model'=>$form['lead']->model, 'modelAttribute'=>'situation', 'showModelAttributeValue'=>true, 'config'=>array( 'tools'=>'mini', 'width'=>'210', 'id'=>'editor1' ), ));
thnxxxxxxxxxxxxxxx
Great extension
first time i placed two times the same editor but only first one worked...then i assigned different id for each editor and now both editors are working perfectly....
$this->widget('application.components.widgets.textAreaEditor.XHeditor',array( 'model'=>$form['lead']->model, 'modelAttribute'=>'situation', 'showModelAttributeValue'=>true, 'config'=>array( 'tools'=>'mini', 'width'=>'210', 'id'=>'editor1' ), ));
thnxxxxxxxxxxxxxxx
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.