[WordPress] 外掛分享: Snow Monkey Editor

首頁外掛目錄 › Snow Monkey Editor
WordPress 外掛 Snow Monkey Editor 的封面圖片
30,000+
安裝啟用
★★★★
4/5 分(5 則評價)
11 天前
最後更新
問題解決
WordPress 7.1+ PHP 7.4+ v13.0.0 上架:2020-01-17

內容簡介

Snow Monkey Editor 是一款擴展區塊編輯器的外掛,提供多種文本格式化選項和區塊樣式,讓使用者能夠輕鬆自訂內容外觀,提升網站的視覺效果與使用體驗。

【主要功能】
• 提供多種文本格式化選項
• 支援區塊樣式自訂
• 可依設備或使用者角色隱藏內容
• 允許設定發佈與取消發佈時間
• 支援滾動動畫效果
• 儲存區塊設定以便重複使用

外掛標籤

開發者團隊

⬇ 下載最新版 (v13.0.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Snow Monkey Editor」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

The Snow Monkey Editor is a plugin that extends the block editor.
GitHub: https://github.com/inc2734/snow-monkey-editor/
Formatter
Click Snow Monkey button in toolbar.

Text badge
Text background color
Text font size
Text highlighter
Text color
Text gradient
Text letter spacing
Line break per screen size
Format clear

Extensions
You can settings in inspector.

Hide on smartphone size or tablet size or PC size. (Using media query)
Hide by user roles. (Using render_block filter hook. If it does not pass this filter, it is ignored)
Scroll animation
Publish date time settings
Unpublish date time settings
Edit lock by user roles. (Only administrators can set it)

Block presets
This feature allows you to save the settings of a block and set them for other blocks of the same type at the touch of a button.
(The number of blocks/attributes that can be used by the block preset feature is limited by default.)
Block styles
There can be used in paragraph blocks, group blocks, image blocks, etc.

Alert
Alert (Remarks)
Alert (Success)
Alert (Warning)
Fluid shapes
Post-it
Post-it (Narrow)
Shadowed
Speech (Top)
Speech (Right)
Speech (Bottom)
Speech (Left)
List (Arrow)
List (Check)
List (Remarks)
List (Times)
Ordered list (Circle)
Ordered list (Square)

Filter hooks (JavaScript)
SnowMonkeyEditor.extension.allowedNameSpaces
JavaScript
import { addFilter } from '@wordpress/hooks';

addFilter(
'SnowMonkeyEditor.extension.allowedNameSpaces',
'snow-monkey-blocks/apply-snow-monkey-editor-extensions',
( allowedNameSpaces, extensionName ) => {
return [
...allowedNameSpaces,
'snow-monkey-blocks',
];
}
);

PHP
add_action(
'admin_enqueue_scripts',
function() {
$data = "wp.hooks.addFilter(
'SnowMonkeyEditor.extension.allowedNameSpaces',
'snow-monkey-blocks/apply-snow-monkey-editor-extensions',
( allowedNameSpaces, extensionName ) => {
return [
...allowedNameSpaces,
'snow-monkey-blocks',
];
}
);";
wp_add_inline_script(
'snow-monkey-editor@editor',
$data
);
}
);

SnowMonkeyEditor.extension.allowedRoles
JavaScript
import { addFilter } from '@wordpress/hooks';

addFilter(
'SnowMonkeyEditor.extension.allowedRoles',
'snow-monkey-blocks/apply-snow-monkey-editor-extensions',
( allowedNameSpaces, extensionName ) => {
return [ 'administrator' ];
}
);

PHP
add_action(
'admin_enqueue_scripts',
function() {
$data = "wp.hooks.addFilter(
'SnowMonkeyEditor.extension.allowedRoles',
'snow-monkey-blocks/apply-snow-monkey-editor-extensions',
( allowedRoles, extensionName ) => {
return [ 'administrator' ];
}
);";
wp_add_inline_script(
'snow-monkey-editor@editor',
$data
);
}
);

延伸相關外掛

文章
Filter
Mastodon