Last active
January 25, 2019 12:53
-
-
Save danielstrelec/847b5f776f6d47f5624cf3488aa02962 to your computer and use it in GitHub Desktop.
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
// přidání pluginu do TinyMCE | |
function my_mce_external_plugins($plugins) { | |
$plugins['anchor'] = '/wp-includes/js/tinymce/plugins/anchor/plugin.min.js'; // plugin pro kotvy | |
return $plugins; | |
} | |
add_filter('mce_external_plugins', 'my_mce_external_plugins'); | |
// přidání rozšířených vlastností k TinyMCE | |
function extra_editor_buttons($buttons) { | |
$buttons[] = 'anchor'; | |
$buttons[] = 'superscript'; | |
$buttons[] = 'subscript'; | |
return $buttons; | |
} | |
add_filter("mce_buttons_2", "extra_editor_buttons"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment