kbrabrand/craft-tinymce 问题修复 & 功能扩展

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

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

kbrabrand/craft-tinymce

Composer 安装命令:

composer require kbrabrand/craft-tinymce

包简介

Edit rich text content in Craft CMS using the TinyMCE editor.

README 文档

README

This plugin adds a TinyMCE field type to Craft CMS, which provides a rich text editor powered by TinyMCE (v4).

Requirements

This plugin requires Craft CMS 3.0.0-RC15 or later.

Installation

You can install this plugin with Composer.

With Composer

Open your terminal and run the following commands:

# go to the project directory
cd /path/to/my-project.test

# tell Composer to load the plugin
composer require kbrabrand/craft-tinymce

# tell Craft to install the plugin
./craft install/plugin tinymce

Configuration

TinyMCE config

You can creaete custom TinyMCE configs that will be available to your TinyMCE fields. They should be created as JSON files in your config/tinymce/ folder. The options are the ones you find in the TinyMCE documentation – with two exceptions: the theme will be set to modern, and the selector to the id of the field rendered by Craft.

{
    "menubar": false,
    "plugins": ["autoresize", "link", "code", "table contextmenu paste help"],
    "toolbar": "bold italic | alignleft aligncenter alignright alignjustify | removeformat | table",
    "table_class_list": [
        {"title": "None", "value": ""},
        {"title": "Dog", "value": "dog"},
        {"title": "Cat", "value": "cat"}
    ]
}

HTML Purifier Configs

You can create custom HTML Purifier configs that will be available to your TinyMCE fields. They should be created as JSON files in your config/htmlpurifier/ folder.

See the HTML Purifier documentation for a list of available config options.

统计信息

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

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 0
  • 开发语言: CSS

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-11-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固