WordPress.org

Plugin Directory

Changeset 575032


Ignore:
Timestamp:
07/20/12 08:23:47 (21 months ago)
Author:
bpetty
Message:

Added ACE javascript library, and hooked scripts into the appropriate pages.

Location:
better-file-editor/branches/development
Files:
38 added
1 edited

Legend:

Unmodified
Added
Removed
  • better-file-editor/branches/development/better-file-editor.php

    r574865 r575032  
    1313 
    1414    function BetterFileEditorPlugin() { 
     15        add_action('admin_footer-theme-editor.php', array($this, 'print_scripts')); 
     16        add_action('admin_footer-plugin-editor.php', array($this, 'print_scripts')); 
     17    } 
     18 
     19    function print_scripts() { 
     20        // data-ace-base="js/lib/ace" 
     21        ?> 
     22            <script src="<?php echo plugins_url( 'js/ace/ace.js' , __FILE__ ); ?>" 
     23                type="text/javascript" charset="utf-8"></script> 
     24            <script src="<?php echo plugins_url( 'js/wp-ace.js' , __FILE__ ); ?>"></script> 
     25            <script type="text/javascript" charset="utf-8"> 
     26                require("wp-ace"); 
     27            </script> 
     28        <?php 
    1529    } 
    1630 
Note: See TracChangeset for help on using the changeset viewer.