Skip to content

qi-interactive/mata-imperavi-redactor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Imperavi Redactor 10.0.2 Widget For Yii2

Created for Tourista

ImperaviRedactorWidget is a wrapper for Imperavi Redactor, a high quality WYSIWYG editor.

Note that Imperavi Redactor itself is a proprietary commercial copyrighted software but since Yii community bought OEM license you can use it for free with Yii.

Using model

yii\imperavi\Widget::widget([
	// You can either use it for model attribute
	'model' => $my_model,
	'attribute' => 'my_field',

	// or just for input field
	'name' => 'my_input_name',

	// Some options, see http://imperavi.com/redactor/docs/
	'options' => [
		'toolbar' => false,
		'css' => 'wym.css',
	],
]);

Alternatively you can attach Redactor to already existing DOM element by calling:

yii\imperavi\Widget::widget([
	// Some options, see http://imperavi.com/redactor/docs/
	'options' => [],
]);

The redactor plugins plugged in with packages of resources.

yii\imperavi\Widget::widget([
	'options' => [
		'lang' => 'ru',
	],
	'plugins' => [
		'fullscreen',
		'clips'
	]
]);

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require asofter/yii2-imperavi-redactor "*"

or add

"asofter/yii2-imperavi-redactor": "*"

to the require section of your composer.json file.

Changelog

1.0.4.1, November 11, 2016

  • Added default buttons in Widget (including 'underline')

1.0.4, August 21, 2015

  • Added matacms plugins: imagematacms (used by default), linkmatacms (used by default), videomatacms, tablematacms

1.0.3, June 29, 2015

  • Updated Widget.php: fixed registering assets for plugins

1.0.2, June 29, 2015

  • Updated paths for asset bundles: TableImperaviRedactorPluginAsset, TextdirectionImperaviRedactorPluginAsset, TextexpanderImperaviRedactorPluginAsset, VideoImperaviRedactorPluginAsset

1.0.1, May 27, 2015

  • Z-index for redactor modal updated