
內容簡介
HPcode Responsive BR 外掛為豐富文本工具列新增響應式換行項目,使用者可以輕鬆地在編輯器中插入換行,並設定適用的螢幕尺寸,提升內容的可讀性與排版靈活性。
【主要功能】
• 新增響應式換行功能
• 可設定適用的螢幕尺寸
• 編輯器中顯示換行標記
• 支援 TypeScript 開發環境
• 兼容 WordPress 預設的螢幕尺寸設定
外掛標籤
開發者團隊
原文外掛簡介
This plugin adds a Responsive line break item to the rich text toolbar. Put the caret where you want the break, tick the screen sizes it should apply to, and insert it.
Breakpoints
The screen sizes come from settings.viewport in theme.json, through the same core function that drives the editor’s @mobile and @tablet states. Themes that do not set it get the WordPress defaults.
In the editor
A small marker shows where each break is, even at widths where it does not apply. Hover it to see the screen sizes, click it to change them.
Development
The editor script in build/ is compiled from the TypeScript sources in src/, which are
included in this plugin. To rebuild them:
npm install
npm run build
The build uses @wordpress/scripts (webpack). package.json and tsconfig.json ship with the
plugin so the output can be reproduced.
