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

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

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

maybeworks/yii2-tinymce

Composer 安装命令:

composer require maybeworks/yii2-tinymce

包简介

TinyMCE widget for Yii PHP framework 2.0

README 文档

README

TinyMCE WYSIWYG text editor plugin widget for Yii PHP framework 2.0

Features:

  • TinyMCE always the latest version, because loaded from the bower-asset/tinymce
  • Automatically download the language file based on the current localization settings Yii
  • Simple addition of their plug-ins and skins
  • Correct client validation
  • Other facilities

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require "maybeworks/yii2-tinymce" "*"

or add

"maybeworks/yii2-tinymce" : "*"

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

Usage

Basic usage

use maybeworks\tinymce\TinyMceWidget;

<?= $form->field($model, 'text')->widget(TinyMceWidget::className());?>

Editor config

use maybeworks\tinymce\TinyMceWidget;

<?= $form->field($model, 'text')->widget(
    TinyMceWidget::className(),
    clientOptions' => [
        'plugins' => [
            "code fullscreen",
            "media table contextmenu paste"
        ],
        'toolbar' => "undo redo | styleselect | bold italic | link image"
    ]
    );?>

Information

Documentation: TinyMCE plugin site

MaybeWorks
Nothing is impossible, limit exists only in the minds of...
maybe.works

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2014-10-30