Viewing 1 replies (of 1 total)
  • Thread Starter keithsuperk

    (@keithsuperk)

    I was able to resolve this by editing the codemirror-2.php as follows:

    <?php
    /*
    Plugin Name: Codemirror 2 editor
    Version: 0.1
    Author: Bj?rn Ali G?ransson
    Author URI: https://www.bedr.se/
    */
    
    function load_codemirror2() {
      wp_enqueue_script("codemirror_1", "/wp-content/plugins/codemirror-2/scripts/codemirror-compressed.js", array("jquery"));
      wp_enqueue_script("codemirror_2", "/wp-content/plugins/codemirror-2/scripts/main.js", array("jquery"));
      wp_enqueue_style("codemirror_1", "/wp-content/plugins/codemirror-2/styles/codemirror.css");
      wp_enqueue_style("codemirror_2", "/wp-content/plugins/codemirror-2/styles/main.css");
    }
    add_action('admin_enqueue_scripts', 'load_codemirror2');
Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Codemirror 2 editor for WordPress admin area] Plugin could not be activated because it trig’ is closed to new replies.