Skip to content
This repository has been archived by the owner. It is now read-only.
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
bin
 
 
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Add RichText Toolbar Button

CI Status codecov CodeFactor License: GPL v2+ PHP: >=5.6 WordPress: >=5.4

Banner

Read this in other languages: English, 日本語.

This plugin makes it easy to add RichText toolbar button.

Latest version

Table of Contents

Details

Screenshots

Behavior

Behavior

Toolbar

Toolbar

Sidebar

Sidebar

Add setting

Add setting

Setting list

Setting list

Dashboard

Dashboard

Requirements

  • >= PHP 5.6
  • >= WordPress 5.4

Installation

  1. Download latest version
    release.zip
  2. Install plugin install
  3. Activate plugin

Usage

Add setting

  1. Go to "All Settings" from left side menu "Add RichText Toolbar Button" of admin page.
  2. "Add New"
  3. Input settings like name or styles.
  4. Press "Publish" button.

Use button

  1. Go to editor page.
  2. Select sentence which you want to add style.
  3. Apply button. Button

Use Inline Text Settings

  1. Go to editor page.
  2. Select sentence which you want to add style.
  3. Apply color and font size from sidebar on the right. Inline Text Settings

Setting

Tag name

Specify the tag name. You can use HTML tags like span or cite.
If you do not input anything, span is used.

Class name

Specify the class name. An error will occur if you specify something that is used by another.
If you do not input anything, Unique name using post ID is used.

Group name

Specify the group name.
If there are multiple buttons with the same group name, they will be gathered by DropDown.

Icon

Specify the icon.
You can use dashicon or URL.

Style

Specify the design to be applied in the following format.

property: value

Pseudo classes like before and after are described by the following rules.

[Pseudo-classes] property: value

ex.

display: block;
padding: 10px;
background: #f0f9ff;
border: 1px solid #acf;
[before] font-family: "Font Awesome 5 Free";
[before] content: "\f06a";
[before] font-size: 1.2em;
[before] font-weight: 900;
[before] padding-right: .2em;
[before] margin-right: .2em;
[before] color: #9cf;
[before] border-right: 1px solid #acf;

Preset

Several design patterns are available.

Validity of toolbar button

Specify whether to display on the toolbar of the Gutenberg editor.
If you move setting to the trash or delete setting, the design itself will be invalid.
This setting is useful when you want to keep the design applied.

Priority

The lower the value, the higher the priority.

Dashboard

Validity

When this setting is off, all functions are disabled.

Validity of font color button

Specify whether to add a button that can change the text color.

font color button

Font color button icon

Specify the icon of font color button

Validity of background color button

Specify whether to add a button that can change the background color.

background color button

Background color button icon

Specify the icon of background color button

Validity of font size button

Specify whether to add a button that can change the font size.

font size button

Font size button icon

Specify the icon of font size button

Validity of remove formatting button

Specify whether to add a button to remove all formatting in the sidebar.

Validity of fontawesome

Specify whether to load Fontawesome.

Default icon

Specify the default icon.

Default group

Specify the default group.

Test phrase

Specify the test phrase.

Dependency

Register Grouped Format Type

Author

GitHub (Technote)
Blog

Plugin framework

WP Content Framework

About

WordPress plugin to add richtext toolbar button

Topics

Resources

License

Code of conduct

Sponsor this project

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages