承接 codezeen/yii2-tinymce 相关项目开发

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

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

codezeen/yii2-tinymce

最新稳定版本:1.0.0

Composer 安装命令:

composer require codezeen/yii2-tinymce

包简介

TinyMCE extension for Yii2 with compressor

README 文档

README

TinyMCE Extension For Yii2 With Compressor

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist codezeen/yii2-tinymce "*"

or add

"codezeen/yii2-tinymce": "*"

to the require section of your composer.json file.

Usage

Register Asset Only

If you only want to use the asset, you only need to write the following code to the file view:

<?= \codezeen\yii2\tinymce\TinyMceAsset::register($this); ?>

Usage With ActiveForm

<?= $form->field($model, 'attribute')->widget(
    TinyMce::className(),
    [
        'settings'        => [
            'language'               => 'en',
            'plugins'                => [
                "advlist autolink lists link image charmap print preview hr anchor pagebreak",
                "searchreplace visualblocks visualchars code fullscreen",
                "insertdatetime media nonbreaking save table contextmenu directionality",
                "template paste textcolor"
            ],
            'toolbar'                => "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image | print preview media | forecolor backcolor",
            'toolbar_items_size'     => 'small',
            'image_advtab'           => true,
            'relative_urls'          => false,
        ],
    ]
) ?>

Usage Without ActiveForm

<?= TinyMce::widget([
    // ...
]) ?>

Usage With Compressor

Add the following code to the controller

public function actions()
{
    return [
        'tinyMceCompressor' => [
            'class' => TinyMceCompressorAction::className(),
        ],
    ];
}

Then, add route to configured action to widget options:

$form->field($model, 'content')->widget(
    TinyMce::className(),
    ['compressorRoute' => 'controller/tiny-mce-compressor']
)

More Information About TinyMCE

Please, check the TinyMCE plugin site documentation for more options.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2015-05-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固