Skip to content

Commit

Permalink
Contact Form: Adding non minified JS file to ensure there is a choice…
Browse files Browse the repository at this point in the history
… of non-minified and minified (#37351)
  • Loading branch information
coder-karen authored May 14, 2024
1 parent 160c35d commit ad49374
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: changed

Forms: Ensuring non minified JS file location is also an option when loading the tiny-mce-plugin-form-button script file.
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,7 @@ public static function grunion_media_button() {
* @return array
*/
public static function mce_external_plugins( $plugin_array ) {
$plugin_array['grunion_form'] = Assets::get_file_url_for_environment(
'jetpack_vendor/automattic/jetpack-forms/dist/contact-form/js/tinymce-plugin-form-button.js',
'jetpack_vendor/automattic/jetpack-forms/dist/contact-form/js/tinymce-plugin-form-button.js'
);
$plugin_array['grunion_form'] = plugins_url( '../../dist/contact-form/js/tinymce-plugin-form-button.js', __FILE__ );
return $plugin_array;
}

Expand Down

0 comments on commit ad49374

Please sign in to comment.