yii2-tinymce-widget:Yii2 的 TinyMCE 所见即所得小部件

  • C6_442342
    了解作者
  • 215.8KB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-05-30 19:26
    上传日期
Yii2 的 TinyMCE 小部件 呈现小部件。 安装 安装此扩展的首选方法是通过 。 要么跑 composer require 2amigos/yii2-tinymce-widget:~1.1 或添加 " 2amigos/yii2-tinymce-widget " : " ~1.1 " 到应用程序的composer.json文件的 require 部分。 用法 use dosamigos\tinymce\TinyMce; <?= $form->field($model, 'text')->widget(TinyMce::className(), [ 'options' => ['rows' => 6], 'language' => 'es', 'clientOptions' => [ 'plugins' => [
yii2-tinymce-widget-master.zip
内容介绍
# TinyMCE Widget for Yii2 [![Latest Version](https://img.shields.io/github/tag/2amigos/yii2-tinymce-widget.svg?style=flat-square&label=release)](https://github.com/2amigos/yii2-tinymce-widget/tags) [![Software License](https://img.shields.io/badge/license-BSD-brightgreen.svg?style=flat-square)](LICENSE.md) [![Build Status](https://img.shields.io/travis/2amigos/yii2-tinymce-widget/master.svg?style=flat-square)](https://travis-ci.org/2amigos/yii2-tinymce-widget) [![Coverage Status](https://img.shields.io/scrutinizer/coverage/g/2amigos/yii2-tinymce-widget.svg?style=flat-square)](https://scrutinizer-ci.com/g/2amigos/yii2-tinymce-widget/code-structure) [![Quality Score](https://img.shields.io/scrutinizer/g/2amigos/yii2-tinymce-widget.svg?style=flat-square)](https://scrutinizer-ci.com/g/2amigos/yii2-tinymce-widget) [![Total Downloads](https://img.shields.io/packagist/dt/2amigos/yii2-tinymce-widget.svg?style=flat-square)](https://packagist.org/packages/2amigos/yii2-tinymce-widget) Renders a [TinyMCE WYSIWYG text editor plugin](http://www.tinymce.com/) widget. ## Installation The preferred way to install this extension is through [composer](http://getcomposer.org/download/). Either run ``` composer require 2amigos/yii2-tinymce-widget:~1.1 ``` or add ```json "2amigos/yii2-tinymce-widget" : "~1.1" ``` to the require section of your application's `composer.json` file. ## Usage ``` use dosamigos\tinymce\TinyMce; <?= $form->field($model, 'text')->widget(TinyMce::className(), [ 'options' => ['rows' => 6], 'language' => 'es', 'clientOptions' => [ 'plugins' => [ "advlist autolink lists link charmap print preview anchor", "searchreplace visualblocks code fullscreen", "insertdatetime media table contextmenu paste" ], 'toolbar' => "undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image" ] ]);?> ``` ### About ClientOptions Please, remember that if you are required to add javascript to the configuration of the js plugin and is required to be plain JS, make use of `JsExpression`. That class was made by Yii for that specific purpose. For example: ```php // Having the following scenario <script> function jsFunctionToBeCalled() { // ... } </script> <?= $form->field($model, 'content')->widget(TinyMce::className(), [ 'options' => ['rows' => 16], 'language' => 'en_GB', 'clientOptions' => // ... // this will render the function name without quotes on the configuration options of the plugin 'file_picker_callback' => new JsExpression('jsFunctionToBeCalled'), // ... ] ]); ?> ``` ## Testing ``` bash $ phpunit ``` ## Further Information Please, check the [TinyMCE plugin site](http://www.tinymce.com/wiki.php/Configuration) documentation for further information about its configuration options. ## Contributing Please see [CONTRIBUTING](CONTRIBUTING.md) for details. ## Credits - [Antonio Ramirez](https://github.com/tonydspaniard) - [All Contributors](../../contributors) ## License The BSD License (BSD). Please see [License File](LICENSE.md) for more information. > [![2amigOS!](http://www.gravatar.com/avatar/55363394d72945ff7ed312556ec041e0.png)](http://www.2amigos.us) <i>Web development has never been so fun!</i> [www.2amigos.us](http://www.2amigos.us)
评论
    相关推荐
    • node_yargs_json
      Aplicacion de Comandos节点 亚太地区行政管理机构 没有节点的安装 npm install
    • jotason::candy: 轻量级数据交换语言,为 JSON 添加语法糖
      一种向 JSON 添加语法糖的轻量级语言。 什么是乔塔森? 我们为什么要写这个 JSON: { "_id": 1237, "name": "Walter Merriam", "birthdate": "08/23/1987", "allergic": false, "celiac": false, "diabetic...
    • json-simulados
      json-simulados
    • proyecto_json
      Proyecto JSON 布纳斯! 从JSONJSON的详细信息从JSON到CPU的信息。 英特尔公司的英特尔公司。 Cuenta los procesadores deinstrucciónde 32和64位。 表演艺术博物馆的重要表演(los procesadoresserá...
    • 密码加密:从JSONJSON的简单转换
      奇夫拉多-德Kong塞斯纳斯 信息保护法和重要保护法书。 禁止使用个人信息保护您的个人信息的权利,请在获得法律服务后立即加入。... 存在的差异性:simétricoyasimétrico。 El cifradosimétricousa la misma llave ...
    • dbjsonrepo:DB Json回购
      dbjsonrepo:DB Json回购
    • paperboat:PaperBoat - 流式 JSON 输出库
      PaperBoat - 流式 JSON 输出 这是 Streaming JSON 输出器的一个非常简单且非常具有 alpha 质量的实现。 给我看货 $ stream = new PaperBoat \ JsonStream (); $ stream -> startObject () -> property ( 'data' ...
    • DockstoreDOSPlugin:Docskstore的DOS文件插件
      $ cat test.dos.json { "input_file": { "class": "File", "path": "dos://ec2-52-26-45-130.us-west-2.compute.amazonaws.com:8080/911bda59-b6f9-4330-9543-c2bf96df1eca" }, "output_file": { "class": ...
    • mothership:帮助模块找到它的 package.json 母舰
      帮助模块找到它的package.json母舰。 var mothership = require ( 'mothership' ) , path = require ( 'path' ) ; mothership ( path . join ( __dirname , 'uno' , 'dos' , 'tres' ) , function ismothership...