Created
February 7, 2018 00:33
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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