Skip to content

Commit

Permalink
add music button
Browse files Browse the repository at this point in the history
  • Loading branch information
lhy0807 committed Feb 15, 2016
1 parent f56240c commit c5c9200
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,13 @@ function my_custom_avatar( $avatar, $id_or_email, $size, $default, $alt) {

return $avatar;
}
//为可视化编辑器自定义按钮
add_action('admin_print_footer_scripts','eg_quicktags');
function eg_quicktags() {
?>
<script type="text/javascript" charset="utf-8">
edButtons[edButtons.length] = new edButton( 'button', '音乐播放器', '<audio src="', '"/></audio> ', '' );
</script>
<?php
}
?>

0 comments on commit c5c9200

Please sign in to comment.