The Snow Monkey Editor is a plugin that extends the block editor.
The Snow Monkey Editor is a plugin that extends the block editor.
GitHub: https://github.com/inc2734/snow-monkey-editor/
Click Snow Monkey button in toolbar.
You can settings in inspector.
render_block
filter hook. If it does not pass this filter, it is ignored)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.)
There can be used in paragraph blocks, group blocks, image blocks, etc.
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 ); } );
This plugin can be installed directly from your site.
Text badge
Text background color
Text font size
Text letter spacing
Text highlighter
Text color
Hide on smartphone size or tablet size or PC size.
Hide by user roles.
Scroll animation settings
Publish settings
Unpublish settings
Edit lock by user roles.
Alert
Alert (Remarks)
Alert (Success)
Alert (Warning)
Fluid shapes 1
Fluid shapes 2
Fluid shapes 3
Post-it
Post-it (Narrow)
Shadowed images
Shadowed button
Speech
List (Arrow)
List (Check)
List (Remarks)
List (Times)
Yes! You can use the Snow Monkey Editor with any theme, but we recommend using our Snow Monkey theme for the best presentation.
defer
attribute to wp_enqueue_script()
.Popover.isAlternate
to Popover.variant
.display
from inline-block
to inline
in the list..sme-font-size
and .sme-line-height
to inline-block
..sme-hidden-xxx
styles. Using display: none
.SnowMonkeyEditor.extension.allowedRoles
.SnowMonkeyEditor.extension.allowedNameSpaces
.