mata / mata-imperavi-redactor

Imperavi Redactor WYSIWYG小部件(OEM许可用于Yii 2)

安装数: 2,273

依赖关系: 2

建议者: 0

安全: 0

星标: 0

关注者: 5

分支: 0

开放问题: 0

语言:JavaScript

类型:yii2-extension

1.0.5 2020-04-05 15:40 UTC

This package is not auto-updated.

Last update: 2024-09-16 12:47:22 UTC


README

Tourista创建

ImperaviRedactorWidgetImperavi Redactor的包装器,一个高质量的WYSIWYG编辑器。

注意,Imperavi Redactor本身是一个专有商业版权软件,但由于Yii社区购买了OEM许可证,您可以使用它免费与Yii一起使用。

使用模型

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

或者,您可以通过调用将Redactor附加到已存在的DOM元素

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

红actor插件通过资源包插入。

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

安装

安装此扩展的首选方式是通过composer

运行

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

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

将以下内容添加到您的composer.json文件的require部分。

变更日志

1.0.4.1,2016年11月11日

  • 在Widget中添加了默认按钮(包括'下划线')

1.0.4,2015年8月21日

  • 添加了matacms插件:imagematacms(默认使用)、linkmatacms(默认使用)、videomatacms、tablematacms

1.0.3,2015年6月29日

  • 更新Widget.php:修复了插件注册资源的问题

1.0.2,2015年6月29日

  • 更新资产包的路径:TableImperaviRedactorPluginAsset、TextdirectionImperaviRedactorPluginAsset、TextexpanderImperaviRedactorPluginAsset、VideoImperaviRedactorPluginAsset

1.0.1,2015年5月27日

  • 更新了redactor模态框的z-index