承接 chuzzlik/yii2-ckeditor5 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

chuzzlik/yii2-ckeditor5

Composer 安装命令:

composer require chuzzlik/yii2-ckeditor5

包简介

CKEditor 5 WYSIWYG widget for Yii2

README 文档

README

CKEditor 5 WYSIWYG widget for Yii2

Installation

The preferred way to install this extension is through composer.

Either run

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

or add

"chuzzlik/yii2-ckeditor5": "*"

to the require section of your composer.json file.

Usage

Examples of using:

use chuzzlik\ckeditor5\EditorClassic;
...
	<?= $form->field($model, 'content')->widget(EditorClassic::className(),[
		'clientOptions' => [
			'language' => 'en',
			'uploadUrl' => 'upload', 	//url for upload files
			'uploadField' => 'image',	//field name in the upload form
		]
	]); ?>
use chuzzlik\ckeditor5\EditorInline;	//..or EditorBalloon
...
	<?php EditorInline::begin([
		'name' => 'editor-inline',
		'clientOptions' => [
			'language' => 'en',
			'uploadUrl' => 'upload'
		]
	]);?>
		<h1>The three greatest things you learn from traveling</h1>
		<p>Like all the great things on earth traveling teaches us by example. 
		Here are some of the most precious lessons I’ve learned over the years of traveling.</p>
	<?php EditorInline::end();?>

Look for detailed documentation and examples on the official website of CKEditor 5 https://ckeditor.com/ckeditor-5/

统计信息

  • 总下载量: 18
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2023-04-01