obgov/yii2-widget-ckeditor 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

obgov/yii2-widget-ckeditor

最新稳定版本:1.0.0

Composer 安装命令:

composer require obgov/yii2-widget-ckeditor

包简介

CKEditor widget for Yii2.

README 文档

README

Renders a CKEditor WYSIWYG text editor plugin widget.

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require "skeeks/yii2-widget-ckeditor" "*"

or add

"skeeks/yii2-widget-ckeditor" : "*"

to the require section of your application's composer.json file.

Skins & Plugins

This widget works with default's dev-full/stable branch of CKEditor, with a set of plugins and skins. If you wish to configure a different skins or plugins that the one proposed, you will have to download them separately and configure the widget's clientOptions attribute accordingly.

Usage

The library comes with two widgets: CKEditor and CKEditorInline. One is for classic edition and the other for inline editing respectively.

Using a model with a basic preset:


use skeeks\widget\ckeditor\CKEditor;


<?= $form->field($model, 'text')->widget(CKEditor::className(), [
		'options' => ['rows' => 6],
		'preset' => 'basic'
	]) ?>

Using inline edition with basic preset:


use skeeks\widget\ckeditor\CKEditorInline;

<?php CKEditorInline::begin(['preset' => 'basic']);?>
	This text can be edited now :)
<?php CKEditorInline::end();?>

Further Information

Please, check the CKEditor plugin site documentation for further information about its configuration options.

skeeks!
Web development has never been so fun!
www.skeeks.com

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2023-12-20