pravda1979/yii2-tinymce 问题修复 & 功能扩展

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

邮箱: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
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固