Skip to content

Instantly share code, notes, and snippets.

@thisbailiwick
Created February 7, 2018 00:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thisbailiwick/11e20493d95e9eb7a47222b504a41239 to your computer and use it in GitHub Desktop.
Save thisbailiwick/11e20493d95e9eb7a47222b504a41239 to your computer and use it in GitHub Desktop.
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