Skip to content

Commit

Permalink
allow override of input.js #31
Browse files Browse the repository at this point in the history
  • Loading branch information
Hube2 committed Jul 24, 2020
1 parent 86aec8a commit 3bddab3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
4 changes: 2 additions & 2 deletions acf-medium-editor.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Plugin Name: ACF Medium Editor Field
Plugin URI: https://wordpress.org/plugins/acf-medium-editor-field/
Description: Medium Editor Field for ACF 5
Version: 2.5.3
Version: 2.6.0
Author: John A. Huebner II
Text Domain: acf-medium-editor
Author URI: https://github.com/Hube2
Expand Down Expand Up @@ -39,7 +39,7 @@ function __construct() {

// vars
$this->settings = array(
'version' => '2.5.3',
'version' => '2.6.0',
'url' => plugin_dir_url(__FILE__),
'path' => plugin_dir_path(__FILE__)
);
Expand Down
6 changes: 5 additions & 1 deletion fields/acf-medium-editor-v5.php
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,11 @@ function input_admin_enqueue_scripts() {
wp_register_style('medium-editor-input', $url.'assets/css/input.css', array('medium-editor-theme'), $version);
wp_enqueue_style('medium-editor-input');

wp_register_script('acf-input-medium-editor', $url.'assets/js/input.js', array('acf-input'), $version);
$src = $url.'assets/js/input.js';
// allow override script to be used
$src = apply_filters('acf-medium-editor-script-src', $src);

wp_register_script('acf-input-medium-editor', $src, array('acf-input'), $version);
wp_enqueue_script('acf-input-medium-editor');

// enqueue custom editor stylesheet(s)
Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: Hube2
Tags: acf, add on, inline wysywig, medium editor, configurable
Requires at least: 4.0.0
Tested up to: 5.4
Stable tag: 2.5.3
Stable tag: 2.6.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -213,6 +213,9 @@ add_filter('acf/medium-editor-field/buttons', 'my_buttons', 10, 2);

== Changelog ==

= 2.6.0 =
* allow override of plugin input.js src

= 2.5.3 =
* added disc/number list style type in editor to overide WP admin styling

Expand Down

0 comments on commit 3bddab3

Please sign in to comment.