Skip to content

Commit

Permalink
Make insert TinyMCE Template button work with multiple editors
Browse files Browse the repository at this point in the history
  • Loading branch information
mbiert committed Aug 10, 2016
1 parent 887229d commit 3e522bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/tinymce-templates.js
Expand Up @@ -8,7 +8,7 @@ var tinymceTemplates;

init: function()
{
$('#button-tinymce-templates').bind('click', function(e){
$(document).on('click', '.button-tinymce-templates', function(e){
e.preventDefault();
tinymceTemplates.get_template_list();
tinymceTemplates.open();
Expand Down
2 changes: 1 addition & 1 deletion tinymce-templates.php
Expand Up @@ -207,7 +207,7 @@ public function media_buttons( $editor_id = 'content' )
printf(
$button_html,
'button-tinymce-templates',
'button',
'button button-tinymce-templates',
esc_attr( $editor_id ),
esc_attr( __( 'Insert Template', 'tinymce_templates' ) ),
'dashicons dashicons-edit',
Expand Down

0 comments on commit 3e522bc

Please sign in to comment.