Snow Monkey Editor

Mô tả

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
        );
    }
);

Ảnh màn hình

Cài đặt

This plugin can be installed directly from your site.

  1. Log in and navigate to Plugins Add New.
  2. Type “Snow Monkey Editor“ into the Search and hit Enter.
  3. Locate the Snow Monkey Editor plugin in the list of search results and click Install Now.
  4. Once installed, click the Activate link.

Hỏi đáp

Can the Snow Monkey Editor be used with any theme?

Yes! You can use the Snow Monkey Editor with any theme, but we recommend using our Snow Monkey theme for the best presentation.

Đánh giá

14 Tháng 4, 2022
The plugin is a good idea and adds a lot of additional features, styles and visibility controls to many Gutenberg elements. But it slows down the editor significantly. Each click into the paragraph editor or each new line takes a second longer (you can see the delay each time) which makes it a very frustrating editing experience. For example clicking between paragraphs adds at least a 1 second delay – so you feel like you're working on a 90s computer. I presume it's because all the additional styles and options are being loaded. Guess it's the price you need to pay for additional features – unless the author finds a way to speed things up (delayed loading, parallel loading etc).
7 Tháng 3, 2021
Very useful for block editor users! Must install!
Đọc tất cả 5 đánh giá

Người đóng góp & Lập trình viên

“Snow Monkey Editor” là mã nguồn mở. Những người sau đã đóng góp vào plugin này.

Những người đóng góp

“Snow Monkey Editor” đã được dịch qua 1 ngôn ngữ. Cảm ơn những người tham gia dịch vì đóng góp của họ.

Dịch “Snow Monkey Editor” sang ngôn ngữ của bạn.

Muốn tham gia phát triển?

Duyệt code, check out SVN repository, hoặc theo dõi nhật ký phát triển qua RSS.