wysiwyg-text-editor xheditor widget

  1. Documentation
  2. Change Log

This widgets will be updated as soon as xheditor releases their 1.0.0 version (http://code.google.com/p/xheditor/)

It will make use of the latest version of jquery.

This extension is a wysiwyg text editor that can be applied to your forms.

Resources

Documentation

Requirements
  • Yii 1.0 or above
Installation
  • Extract the release file under protected/components/widgets
Usage

See the following code example:

<?php
			$this->widget('application.components.widgets.XHeditor',array(
				'language'=>'en', //options are en, zh-cn, zh-tw
				'config'=>array(
					'id'=>'xh1',
					'name'=>'xh',
					'tools'=>'mini', // mini, simple, fill or from XHeditor::$_tools
					'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
			));
			?>
			
			//with a model
			<?php
			$this->widget('application.components.widgets.XHeditor',array(
				'model'=>$modelInstance,
				'modelAttribute'=>'attribute',
				'showModelAttributeValue'=>false, // defaults to true, displays the value of $modelInstance->attribute in the textarea
				'config'=>array(
					'id'=>'xh1',
					'name'=>'xh',
					'tools'=>'mini', // mini, simple, fill or from XHeditor::$_tools
					'width'=>'100%',
					//see XHeditor::$_configurableAttributes for more
				),
			));
			?>

Change Log

January 7, 2010
  • Initial release.

Code requires documentation. Will be done by the weekend.

11 1
12 followers
5 158 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: User Interface
Tags:
Developed by: jayrulez
Created on: Jan 7, 2010
Last updated: 14 years ago

Downloads

show all