From 7d9e9d4cb807c8f9cecee3c6f2ac8a69c0120929 Mon Sep 17 00:00:00 2001 From: ObitoTM Date: Thu, 28 May 2026 17:06:28 +0300 Subject: [PATCH] FIX: duplicate WYSIWYG editor IDs https://github.com/Crocoblock/issues-tracker/issues/8469 --- modules/wysiwyg/blocks/wysiwyg/block-template.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/wysiwyg/blocks/wysiwyg/block-template.php b/modules/wysiwyg/blocks/wysiwyg/block-template.php index 4a51d14ba..79866791b 100644 --- a/modules/wysiwyg/blocks/wysiwyg/block-template.php +++ b/modules/wysiwyg/blocks/wysiwyg/block-template.php @@ -17,7 +17,11 @@ $keep_format = $this->args['keep_format'] ?? false; -$editor_id = 'wp_editor_' . $this->block_type->get_field_id( $args['name'] ); +$editor_id = sprintf( + 'wp_editor_%1$s_%2$s', + absint( $this->form_id ), + $this->block_type->get_field_id( $args['name'], 'wysiwyg_editor' ) +); $editor = apply_filters( 'jet-form-builder/fields/wysiwyg-field/config', array(