Linux 软件免费装
Banner图

JVM Rich Text Icons

开发者 jorisvanmontfort
更新时间 2026年2月19日 23:43
捐献地址: 去捐款
PHP版本: 5.4 及以上
WordPress版本: 6.9.1
版权: GPLv2 or later
版权网址: 版权信息

标签

gutenberg svg icon font-awesome icon-block

下载

1.6.2 1.6.3 1.6.4

详情介绍:

Add icons to any rich text field in the WordPress block editor. Insert icons inline in paragraphs, headings, lists, buttons, or use the dedicated single icon block. Features See it in action How it works Pick an icon from the toolbar while editing any rich text field. The plugin inserts a small HTML tag that gets styled by the chosen icon set. Why use a custom SVG icon set? When you use a custom SVG icon set, the plugin defaults to inline SVG rendering. This is a great choice for performance! Google PageSpeed Insights will thank you. Alternative render technologies (CSS masks, ::before / ::after pseudo-elements) are also available for custom SVG icons if your use case requires it. For developers The plugin provides several filter hooks to customize its behavior. You can load your own icon set, CSS file, or change the icon class prefix. Load a custom icon set file add_filter( 'jvm_richtext_icons_iconset_file', function($file) { return get_stylesheet_directory() . '/path_to_my/icons.json'; }); Load a custom CSS file add_filter( 'jvm_richtext_icons_css_file', function($cssfile) { return get_stylesheet_directory_uri() . '/path_to_my/cssfile.css'; }); To disable the default CSS file entirely: add_filter( 'jvm_richtext_icons_css_file', '__return_false'); Change the icon class prefix add_filter( 'jvm_richtext_icons_base_class', function() { return 'my-custom-css-class-name'; }); Disable the settings screen add_filter( 'jvm_richtext_icons_show_settings', '__return_false'); Please note that if you are loading a custom icon set with the plugin hook: jvm_richtext_icons_css_file, you should make sure the plugin is not set to My SVG uploads as this setting does not load any CSS file.

更新日志:

1.6.4 1.6.3 1.6.2 1.6.1 1.6.0 1.5.1 1.5.0 1.4.1 1.4.0 1.3.7 Tested on WordPress 6.9 1.3.6 Font awesome 5.x and 6.x have been updated and are now loaded from a source within the plugin. This also fixes a bug where Font Awesome icons did not display in the block pattern / full site editor. 1.3.4 Php deprecation warning fixed. 1.3.3 Added a fix for CSS in the full site editor and block editor when using custom icons. 1.3.2 Added a font-size (pixels) option for single icon block. 1.3.1 Added color options for single icon block. 1.3.0 Added alignment and spacing options for single icon block. 1.2.9 Added an option for rendering technology for custom icons sets. You can now also choose rendering with a ::before or ::after pseudo element instead of the regular HTML / CSS. This allows for more CSS flexibility. For example adding backgrounds or hover effects. 1.2.8 Update to re-enable icons in ACF select2 field. Icons apeared as literal HTML after an update of the ACF plugin. 1.2.7 Security update. File name now sanitize in delete icon ajax call. 1.2.6 Security update. Fixed a vulnerabilities in plugin settings upload and delete icon options. 1.2.3 Fixed the thick border around the toolbar button by using the correct toolbar button markup. 1.2.2 Bugfix WordPress 6.2 site editor rich text blocks not editable. 1.2.1 Bugfix for the single icon block using incomplete css classes. 1.2.0 Added a dedicated single icon block for Gutenberg. 1.1.9 Fixed some deprecation errors to get this plugin compatible with the site editor and future WordPress versions. Some work is still needed on this. 1.1.8 Got rid of position relative for custom icon sets. 1.1.7 Fixed editor dialog position on smaller screens. 1.1.5 Font Awesome 4.7 webfont URL's fixed. 1.1.4 Now also load in the site editor. Not all block however. 1.1.3 Fixed a deprecated warning in php 8.1. 1.1.2 Added Font Awesome Free 5.15.4 and Font Awesome Free 6.2.0 to the settings. The CSS for these verions are loaded from a CDN. Font Awesome version 4.7 is still the default. 1.1.1 Added a notice on the settings screen if a custom icon set is loaded and the SVG icon set is selected. These options won't work together. 1.1.0 Added a hook to disable the plugin settings page altogether for those who like a clean WordPress admin. Use this in your functions.php to disable the settings screen that was added in 1.0.9: add_filter('jvm_richtext_icons_show_settings', '__return_false'); 1.0.9 Added a plugin settings screen and a nice interface to upload and create a custom SVG file based icon set. If you like this feature please consinder donating: https://www.paypal.com/donate/?hosted_button_id=VXZJG9GC34JJU 1.0.8 Fixed some WordPress coding convenstions and tested and fixed some minor issues for WordPress 6.0. 1.0.7 Fixed the styling of the editor pop-over. It was to large since WordPress 5.9. 1.0.6 The addon is now also loaded in the widget screen (widget.php) 1.0.5 Added a hook for modifying the editor javascript file loaded for advanced users. Example usage: ` function add_my_js_file($file) { $file = '/path_to_my/js_file.js'; return $file; } add_filter( 'jvm_richtext_icons_editor_js_file', 'add_my_js_file'); ` 1.0.4 Bug fix: Replaced the deprecated block_editor_settings hook by the new block_editor_settings_all hook. This fixes a deprecated notice. 1.0.3 New feature: ACF field for the JVM icon set loaded. New feature: Font icon config file can now also ben in fontello format 1.0.2 Bugfix: Changed backend asset loading to load only on new posts and edit post pages. In version 1.0.1 scripts for this plugin loaded on all backend pages and kept breaking the widget text editor. 1.0.1 Php error fix for some php versions on plugin activation. 1.0.0 Initial release