定制 pravda1979/yii2-tinymce 二次开发

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

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

pravda1979/yii2-tinymce

最新稳定版本:1.1.0

Composer 安装命令:

composer require pravda1979/yii2-tinymce

包简介

TinyMCE WYSIWYG HTML Editor for Yii2.

README 文档

README

Extension for Yii2 based on TinyMCE 5.

Installation

Preferred installation method for this extension is through composer.

To install TinyMCE extension run:

composer require pravda1979/yii2-tinymce "~1.0.0"

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

"pravda1979/yii2-tinymce": "~1.0.0"

Demo

You can see demo example

Usage

Use with model

use pravda1979\tinymce\TinyMce;

<?= $form->field($model, 'html')->widget(TinyMce::className(), [
    'options' => ['rows' => 10],
    'language' => 'ru',
    'clientOptions' => [
        // Setting by default
        'plugins' => 'print preview fullpage searchreplace autolink directionality visualblocks visualchars fullscreen image link media template codesample table charmap hr pagebreak nonbreaking anchor toc insertdatetime advlist lists wordcount imagetools textpattern help',
        'toolbar' => 'formatselect | bold italic strikethrough forecolor backcolor formatpainter | link image media | alignleft aligncenter alignright alignjustify  | numlist bullist outdent indent | removeformat | addcomment',
    ]
]);?>

or without model

use pravda1979\tinymce\TinyMce;

<?= \pravda1979\tinymce\TinyMCE::widget([
    'name' => 'test-tinymce',
    'value' => 'test TinyMCE',
    'language' => 'ru',
    'clientOptions' => [
        // Setting by default
        'plugins' => 'print preview fullpage searchreplace autolink directionality visualblocks visualchars fullscreen image link media template codesample table charmap hr pagebreak nonbreaking anchor toc insertdatetime advlist lists wordcount imagetools textpattern help',
        'toolbar' => 'formatselect | bold italic strikethrough forecolor backcolor formatpainter | link image media | alignleft aligncenter alignright alignjustify  | numlist bullist outdent indent | removeformat | addcomment',
    ]
]); ?>

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: JavaScript

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2019-03-21