Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
add this in a plugin or functions.php and the elements will show up in tinymce's char map. Good special char reference: https://dev.w3.org/html5/html-author/charref
<?php
add_filter( 'tiny_mce_before_init', 'tinymce_add_chars' );
function tinymce_add_chars( $settings ) {
$new_chars = json_encode( array(
array( '8224', 'Dagger' ),
array( '337', 'Double Accute o - lowercase' )
) );
$settings['charmap_append'] = $new_chars;
return $settings;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.