內容簡介
總結:這個 WordPress 外掛可以在編輯器中加入內嵌的字體控制功能,讓使用者能夠調整字型大小、內聯區塊以及小標籤。
問題與答案:
1. 這個外掛提供了哪些內嵌字體控制功能?
- 答:這個外掛提供了字體大小、內聯區塊以及小標籤控制功能。
2. 請問可以在哪裡找到這個外掛的原始碼?
- 答:這個外掛的原始碼可在 Github 上找到,連結是https://github.com/hamworks/inline-typography-controls。
外掛標籤
開發者團隊
原文外掛簡介
This plugin adds extra controls to the rich text formatting toolbar (the popup toolbar shown when you select text inside a block). Each control wraps the selected text in an inline element, similar to Bold or Italic, so you can mix formatting within a single paragraph or heading.
Github: https://github.com/torounit/inline-typography-controls
Controls
Font Size — Apply an inline font size to the selected text. Choose from the font size presets defined in your theme’s theme.json, or pick a custom value with the slider.
Font Family — Apply an inline font family to the selected text, chosen from the font family presets defined in your theme’s theme.json.
Inline Block — Wrap the selected text in an inline-block element (display: inline-block), which is useful for keeping a phrase from breaking across lines.
Side comment — Wrap the selected text in a tag, useful for side comments and supplementary text such as captions or fine print.
Credits
The Font Size toolbar button icon is based on the “format_size” icon from Material Symbols by Google, licensed under the Apache License 2.0.
