- Issue created by @johnle
- 🇺🇸United States slucero Arkansas
I've been able to reproduce this locally and confirmed it does not occur in the Beta 6 release making this a regression. The other important identification is that this issue exists for all string fields, not just HTML fields that would otherwise have a WYSIWYG attached to them.
My early testing has identified the following steps that were present in the Beta 6 version of the jsoneditor behavior, but these are missing from the beforeSubmit handler of the Beta 7 release.
Drupal.Ajax.prototype.beforeSubmit = function (formValues, elementSettings, options) { // [...] let index = formValues.findIndex(function (o) { return o.name === "settings[instance_config]"; }); if (index !== -1) { window.patternkitEditor.disable(); formValues[index] = { name: "settings[instance_config]", value: JSON.stringify(window.patternkitEditor.getValue()), type: "hidden", required: false }; window.patternkitEditor.destroy(); delete window.patternkitEditor; $(once.remove('patternkit-editor', $target)); } } }
Adding this back into the beforeSubmit handler seems to resolve the issue.
- last update
over 1 year ago 316 pass, 2 fail - @slucero opened merge request.
- last update
over 1 year ago 326 pass - Status changed to Needs review
over 1 year ago 3:13pm 20 June 2023 - 🇮🇳India minsharm India
I have retested the issue for both the below conditions on D9 and D10 website and we are good with the results.
Condition 1-> "None" is selected for WYSIWYG editor under JSON Pattern library settings.
Result -> Texts and formatted text fields are getting saved now even if do not click anywhere else outside there.
Condition 2-> "CKEditor 5" is selected for WYSIWYG editor under JSON Pattern library settings.
Result -> Text and formatted text are getting saved even if do not click anywhere else outside there.
- Status changed to RTBC
over 1 year ago 7:34pm 27 June 2023 - last update
over 1 year ago 326 pass - Status changed to Fixed
over 1 year ago 7:36pm 27 June 2023 Automatically closed - issue fixed for 2 weeks with no activity.
- Status changed to Fixed
11 months ago 2:48pm 4 January 2024