Skip to content

Commit

Permalink
Contact Form: Replacing the tinymce JS file path with non minified, p…
Browse files Browse the repository at this point in the history
…reventing editor errors (#37270)

* Replacing the minified JS file path with non minified, to prevent editor errors on WoA sites

* changelog

* Update package versions
  • Loading branch information
coder-karen authored May 7, 2024
1 parent 84cc418 commit 4a59c08
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fixed

Contact Form: Prevent an editor error when using the Classic Editor and contact forms are enabled
2 changes: 1 addition & 1 deletion projects/packages/forms/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "@automattic/jetpack-forms",
"version": "0.31.0",
"version": "0.31.1-alpha",
"description": "Jetpack Forms",
"homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/packages/forms/#readme",
"bugs": {
Expand Down
2 changes: 1 addition & 1 deletion projects/packages/forms/src/class-jetpack-forms.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
class Jetpack_Forms {

const PACKAGE_VERSION = '0.31.0';
const PACKAGE_VERSION = '0.31.1-alpha';

/**
* Load the contact form module.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public static function grunion_media_button() {
*/
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.min.js',
'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'
);
return $plugin_array;
Expand Down

0 comments on commit 4a59c08

Please sign in to comment.