定制 black-lamp/yii2-text-editor 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

black-lamp/yii2-text-editor

最新稳定版本:2.0.0

Composer 安装命令:

composer require black-lamp/yii2-text-editor

包简介

Widget for Ace code editor

README 文档

README

Widget for Ace code editor

Latest Stable Version Latest Unstable Version License

Installation

Run command

composer require black-lamp/yii2-text-editor

or add

"black-lamp/yii2-text-editor": "2.0.0"

to the require section of your composer.json.

Using

Use widget with ActiveForm

$form = ActiveForm::begin();
    // ...
    echo $form->field($model, 'text')
              ->widget(bl\ace\AceWidget::className(), [
                    'language' => 'javascript'
              ]);
$form->end();

Widget configuration properties

Option Option Default Description
language string html Programming language
theme string github Code editor theme
enableEmmet boolean false Enable emmet plugin for HTML
attributes array ['style' => 'max-width: 600px; min-height: 400px;'] HTML attributes for editor container

For more information about 'language' and 'theme' configuration attributes read Ace documentation

统计信息

  • 总下载量: 1.58k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 1
  • 依赖项目数: 3
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2016-10-24