內容簡介
**摘要:**
這個外掛程式允許您管理特定用戶角色的 Gutenberg 區塊權限。定義哪些 Gutenberg 區塊可以被新增並控制其編輯能力。您可以配置區塊是否可以完全編輯或限制為僅文本更改。
**問題與答案:**
1. 這個外掛程式的標準功能有哪些?
- 可以分別為每個 Gutenberg 區塊定義是否可以完全編輯,或僅允許文本更改
- 可以分別為每個 Gutenberg 區塊定義是否可以使用區塊插入器添加
- 可以停用 Gutenberg 清單檢視
- 可以停用 Gutenberg 區塊插入器
- 可以定義這些設置應該應用於哪些用戶角色
2. 這個外掛程式的進階功能有哪些?
- 可以允許使用區塊工具列編輯區塊,以啟用設置例如連結或粗體字
- 可以新增未列在註冊區塊表中的自定義區塊
- 只允許添加模式,並定義用戶可以添加的模式類別
3. Gutenberg Premium 這一功能如何幫助網頁設計師/網頁代理商?
- Gutenberg 編輯器對於沒有技術背景的客戶來說可能難以理解和處理。然而,客戶通常仍需要一種方式來適應他們的網頁,移除部分,進行文本更改等。允許僅使用模式功能,提供了一個強大的方式來創建預定義的模板並將其組織到自定義類別中。這樣,您可以為客戶提供一種輕鬆直觀的方法,獨立地向其網頁添加部分,而不會影響整體布局。通過使用模式,您可以確保一致性並簡化非技術用戶的編輯流程。
外掛標籤
開發者團隊
原文外掛簡介
This plugin allows you to manage Gutenberg block permissions for specific user roles. Define which Gutenberg blocks can be added and control their editing capabilities. You can configure whether blocks are fully editable or limited to text-only changes.
Standard Features
*Define for each Gutenberg block separately whether it can be fully edited or whether only text changes should be allowed
*Define for each Gutenberg block separately whether it can be added using the block inserter
*Disable the Gutenberg list view
*Disable the Gutenberg Block Inserter
*Define for which user roles the settings should apply
Premium Features
*Allow blocks to be edited using the block toolbar to enable setting e.g. links or bold font
*Add custom blocks which are not listed in the table of registered blocks
*Allow only patterns to be added and define the pattern categories that user can add
How Gutenberg Premium can help web designers / web agencies
The Gutenberg editor can be difficult to understand and handle for clients who don’t have a technical background. However often clients still need a way to adapt their pages, remove sections, do text changes etc. The “allow patterns only” feature provides a powerful way to create predefined templates and organize them into custom categories. This allows you to offer your clients an easy and intuitive way to add sections to their pages independently, without risking the overall layout. By using patterns, you can ensure consistency and simplify the editing process for non-technical users.
Source Code
The uncompiled source code for this plugin is included in the src/ directory. This includes all JavaScript files before compilation and the build configuration.
To build the plugin from source:
1. Install Node.js and npm
2. Navigate to the src/ directory
3. Run npm install to install dependencies
4. Run npm run build to compile the JavaScript files
The original source files can be found at:
– JavaScript source: src/js/block-editor-roles-admin.js
– Build configuration: src/webpack.config.js
– Dependencies: src/package.json
