
內容簡介
JuZ Rich Text Extender 讓開發者能在 Gutenberg 編輯器工具列中註冊自訂的內聯格式按鈕,並為選取的文字應用特定的 HTML 內聯標籤和可選的 CSS 類別,提升編輯靈活性與效率。
【主要功能】
• 註冊自訂內聯格式(標籤 + CSS 類別)
• 內建嵌套驗證系統,避免無效 HTML 嵌套
• 按鈕在不允許嵌套時自動禁用
• 提供全面的內聯標籤規則集
• 透過 WordPress 過濾器進行格式和標籤規則擴展
外掛標籤
開發者團隊
原文外掛簡介
JuZ Rich Text Extender allows developers to register custom inline format buttons in the Gutenberg (block editor) toolbar. Each button applies a specific HTML inline tag with an optional CSS class to the selected text.
The plugin includes a built-in nesting validation system: buttons are automatically disabled when their use would produce invalid HTML nesting (e.g. inside ). When a format is already active, its button remains enabled so it can always be toggled off.
Key features:
Register custom inline formats (tag + CSS class) via a WordPress filter
tagName defaults to span, which is strongly recommended for compatibility
Smart nesting validation against the full active tag stack (for non-span tags)
Buttons are visually disabled when nesting is not allowed
Exhaustive inline tag ruleset (span, a, strong, em, mark, code, u, s, i, b, q, cite, abbr, small, sub, sup)
Inline tag rules are filterable for full customisation by themes or other plugins
For developers:
Formats and inline tag rules are both exposed via WordPress filters, making the plugin fully extensible without modifying core files.
