yii2-aceeditor

Yii2 Ace Editor widget

  • 所有者: trntv/yii2-aceeditor
  • 平台:
  • 许可证:
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

Ace Editor Widget For Yii2

About

It is Ace Editor integration for Yii2 framework.

Demo

Since this package was created as a part of (Yii2 Starter Kit)yii2-starter-kit it's demo can be found in starter kit demo here (login: webmaster, password: webmaster)

Ace Editor demo can be found here

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require trntv/yii2-aceeditor

or add

"trntv/yii2-aceeditor": "^2.0.0"

to the require section of your composer.json file.

Usage

Using model

trntv\aceeditor\AceEditor::widget([
	// You can either use it for model attribute
	'model' => $my_model,
	'attribute' => 'my_field',

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

    'mode'=>'html', // programing language mode. Default "html"
    'theme'=>'github', // editor theme. Default "github"
    'readOnly'=>'true' // Read-only mode on/off = true/false. Default "false"
]);

With active field

$form->field($model, 'field')->widget(
        'trntv\aceeditor\AceEditor',
        [
            'mode'=>'html', // programing language mode. Default "html"
            'theme'=>'github', // editor theme. Default "github"
            'readOnly'=>'true' // Read-only mode on/off = true/false. Default "false"
        ]
    )

Lists of all available modes and themes see here

主要指标

概览
名称与所有者trntv/yii2-aceeditor
主编程语言PHP
编程语言PHP (语言数: 1)
平台
许可证
所有者活动
创建于2014-07-23 12:20:38
推送于2018-04-04 06:43:27
最后一次提交2018-04-04 09:42:50
发布数7
最新版本名称2.1.2 (发布于 )
第一版名称1.0.0 (发布于 )
用户参与
星数43
关注者数8
派生数24
提交数35
已启用问题?
问题数11
打开的问题数2
拉请求数7
打开的拉请求数0
关闭的拉请求数5
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?