carlcs/craft-redactoriconbuttons 问题修复 & 功能扩展

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

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

carlcs/craft-redactoriconbuttons

Composer 安装命令:

composer require carlcs/craft-redactoriconbuttons

包简介

Redactor Icon Buttons plugin for Craft CMS

README 文档

README

Redactor Icon Buttons

This plugin allows to replace the text buttons with icons in the Redactor editor toolbar in Craft CMS.

Installation

The plugin is available on Packagist and can be installed using Composer. You can also download the latest release and copy the files into craft/plugins/redactoriconbuttons/.

$ composer require carlcs/craft-redactoriconbuttons

Enable the plugin in your Redactor config files stored in craft/config/redactor/ by adding iconbuttons to the plugins setting. Make sure you have a config file in your Redactor field settings selected where the plugin is enabled.

Icon Sets

The icon set the plugin uses by default contains a collection of icons from the Redactor 10 editor and some handcrafted icons to complement the set.

If you want to use a custom icon set, create a folder craft/config/redactoriconbuttons/ and add a SVG sprite named icons.svg to it. You can now use the iconMapping config setting to map symbols contained in the SVG to individual buttons.

The plugin includes an example file with icons from the Google Material icon set in the _examples/ folder, the file was created with the Icomoon App.

Configuration

The plugin is pre-configured for Redactor’s default buttons. To customize it, create a new plugin configuration file in the craft/config/ folder named redactoriconbuttons.php, which returns an array of settings.

  • iconMapping (see defaults) – Maps buttons to icons. The setting expects an array of key-value pairs that map a button’s index (inspect the “rel” attribute in the toolbar!) to the symbol ID of an icon in the SVG sprite.
  • ieShim (default true) – Adds external spritemap support for IE9+ and Edge 12.

Requirements

  • PHP 5.4 or later
  • Craft CMS 2.5 or later

统计信息

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

GitHub 信息

  • Stars: 10
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2016-07-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固