From 5e0b3948d4a52ba2d65b4b9d7477955b6a22012e Mon Sep 17 00:00:00 2001 From: Karen Attfield Date: Tue, 7 May 2024 19:11:21 +0100 Subject: [PATCH 1/3] Replacing the minified JS file path with non minified, to prevent editor errors on WoA sites --- projects/packages/forms/src/contact-form/class-editor-view.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/packages/forms/src/contact-form/class-editor-view.php b/projects/packages/forms/src/contact-form/class-editor-view.php index 8e1c561e65034..c0f80cf21f4f2 100644 --- a/projects/packages/forms/src/contact-form/class-editor-view.php +++ b/projects/packages/forms/src/contact-form/class-editor-view.php @@ -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; From fd7fe012d7c59bd88d868c73084994f1054799b9 Mon Sep 17 00:00:00 2001 From: Karen Attfield Date: Tue, 7 May 2024 19:12:29 +0100 Subject: [PATCH 2/3] changelog --- .../changelog/fix-contact-form-tiny-mce-editor-min-error | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 projects/packages/forms/changelog/fix-contact-form-tiny-mce-editor-min-error diff --git a/projects/packages/forms/changelog/fix-contact-form-tiny-mce-editor-min-error b/projects/packages/forms/changelog/fix-contact-form-tiny-mce-editor-min-error new file mode 100644 index 0000000000000..164a8824ea0e6 --- /dev/null +++ b/projects/packages/forms/changelog/fix-contact-form-tiny-mce-editor-min-error @@ -0,0 +1,4 @@ +Significance: patch +Type: fixed + +Contact Form: Prevent an editor error when using the Classic Editor and contact forms are enabled From b6c020c80f3002c4b0447f1090c9d4d9566bffc1 Mon Sep 17 00:00:00 2001 From: Karen Attfield Date: Tue, 7 May 2024 19:28:20 +0100 Subject: [PATCH 3/3] Update package versions --- projects/packages/forms/package.json | 2 +- projects/packages/forms/src/class-jetpack-forms.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/packages/forms/package.json b/projects/packages/forms/package.json index 6023dc4307bc9..a33a846ed2c5a 100644 --- a/projects/packages/forms/package.json +++ b/projects/packages/forms/package.json @@ -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": { diff --git a/projects/packages/forms/src/class-jetpack-forms.php b/projects/packages/forms/src/class-jetpack-forms.php index 592d131be3934..8cf2a62f00784 100644 --- a/projects/packages/forms/src/class-jetpack-forms.php +++ b/projects/packages/forms/src/class-jetpack-forms.php @@ -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.