xheditor-widget Wrapper for xhEditor WYSISWYG XHTML editor v1.1.9 (build 110803) 03aug2011

  1. Requirements
  2. Installation
  3. Usage
  4. Resources

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',
	),
));
?>

Resources

3 0
5 followers
2 813 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: User Interface
Developed by: Evgeny L
Created on: Aug 16, 2011
Last updated: 13 years ago

Downloads

show all

Related Extensions