HPcode Responsive BR

外掛說明

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.

螢幕擷圖

安裝方式

  1. Install and activate the plugin.
  2. Put the caret where you want a break, then open “Responsive line break” in the block toolbar.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈HPcode Responsive BR〉的開發相關工作。

參與者

將〈HPcode Responsive BR〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄。

變更記錄

1.0.0

  • First public release.