定制 stkevich/yii2-ckeditor5 二次开发

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

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

stkevich/yii2-ckeditor5

Composer 安装命令:

composer require stkevich/yii2-ckeditor5

包简介

ckeditor 5 widget for yii2 framework

README 文档

README

More details about it on site https://docs.ckeditor.com/ckeditor5/latest/builds/

Installation

The preferred way to install this extension is through composer.

Either run

composer require --prefer-dist stkevich/yii2-ckeditor5 "*"

or add

"stkevich/yii2-ckeditor5": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by:

use \stkevich\ckeditor5\EditorClassic;
...
$form->field($model, 'fieldName')->widget(EditorClassic::className(), []);

You can edit toolbar or uploadUrl:

$form->field($model, 'fieldName')->widget(EditorClassic::className(), 
    [
        'toolbar' => ['heading', '|', 'bold', 'italic', 'link', 'bulletedList', 'numberedList', 'blockQuote'],
        'uploadUrl' => '/someUpload.php',
    ]
);

More info in guides

统计信息

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

GitHub 信息

  • Stars: 6
  • Watchers: 3
  • Forks: 11
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-03-25