Skip to content

Commit

Permalink
add ace editor charset script attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
ayublin committed Dec 5, 2013
1 parent 932bd77 commit 7517fd5
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,18 @@ function vp_ajax_wrapper()
add_action( 'current_screen' , 'vp_sg_enqueue' );
add_action( 'admin_enqueue_scripts', 'vp_enqueue_scripts' );
add_action( 'current_screen' , 'vp_sg_init_buttons' );
add_filter( 'clean_url' , 'vp_ace_script_attributes', 10, 1 );

if( !function_exists('vp_ace_script_attributes') )
{
function vp_ace_script_attributes( $url )
{
if ( FALSE === strpos( $url, 'ace.js' ) )
return $url;

return "$url' charset='utf8";
}
}

if( !function_exists('vp_metabox_enqueue') )
{
Expand Down

0 comments on commit 7517fd5

Please sign in to comment.