Insert Special Characters

plugin banner

A Special Character inserter for the WordPress block editor (Gutenberg).

Author:10up (profile at wordpress.org)
WordPress version required:5.5
WordPress version tested:6.0.1
Plugin version:1.0.5
Added to WordPress repository:30-08-2019
Last updated:18-07-2022
Rating, %:96
Rated by:6
Plugin URI:https://github.com/10up/insert-special-charac...
Total downloads:22 667
Active installs:3 000+
plugin download
Click to start download

Ever wanted to add a special character while working within the WordPress block editor (Gutenberg) and suddenly find yourself longing for the days of the Classic Editor and the Special Character inserter? Well long no more, the Insert Special Characters plugin is here to ease your publishing woes!

Note: you can display the popover via the ctrl/cmd + o keyboard shortcut.

”https://media.giphy.com/media/ImJtBjUD0RQqjdJkHv/giphy.mp4″

Development takes place in the GitHub repository.

Technical Notes

Extending

To control the available tabs and characters, developers can filter the data set using the insertspecialcharacters-characters JavaScript (wp.hooks) filter.

For example, to create a character inserter that only provides currency symbols:

wp.hooks.addFilter(
    'insertspecialcharacters-characters',  // The filter name.
    'mycallback', // Our callback namespace.
    function( component ) { // The callback function.

        // Return the categories/characters to display.
        // The data structure is: { category: [ character data ], category2: ... }
        return {
            "Currency": [
                { "entity": "$", "hex": "", "name": "Dollar Sign", "char": "$" },
                { "entity": "€", "hex": "&#20AC;", "name": "Euro Sign", "char": "€" },
                { "entity": "¢", "hex": "&#00A2;", "name": "Cent Sign", "char": "¢" },
                { "entity": "£", "hex": "&#00A3;", "name": "Pound Sign", "char": "£" },
                { "entity": "¥", "hex": "&#00A5;", "name": "Yen Sign", "char": "¥" },
            ]
        };
    }
);

Screenshots
FAQ
ChangeLog