codelight/tinymce-button-button
Composer 安装命令:
composer require codelight/tinymce-button-button
包简介
Add buttons with specified CSS classes to your WordPress TinyMCE editor
README 文档
README
Add buttons to your TinyMCE editor. The "buttons" are actually just link tags with CSS classes you can define.
Installation
Via Composer:
composer require codelight/tinymce-button-button
Alternatively, download and install as a WordPress plugin.
Note that v2 of this plugin will only be released as a composer package.
Usage
Register different button styles using the following filter:
add_filter('tinyMCEButton', function ($buttons) { $buttons[] = [ 'text' => 'Intro Button', 'value' => 'button intro-button' ]; return $buttons; });
Every element in the $buttons array will create a new selectable button style.
The text parameter is displayed to the user when selecting button styles. The value parameter is used as the link class.
统计信息
- 总下载量: 16
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2019-09-24