[Plugin: TinyMCE] Add 'codesample' plugin for code highlighting
-
In 4.5 WP version there is a possibility to add code highlighting with codesampe TinyMCE plugin.
I added button in TinyMCE and it works fine on edit-post page:
function mytheme_tinymce_settings( $settings ) { $settings['plugins'] .= ",codesample"; $settings['toolbar1'] .= ",codesample"; return $settings; } add_filter( 'tiny_mce_before_init', 'mytheme_tinymce_settings' );But it doesn’t work on post view page. Plugin’s javascript file is added to both pages but works only on edit post page.
How to make it work on view post page?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘[Plugin: TinyMCE] Add 'codesample' plugin for code highlighting’ is closed to new replies.