Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
Problem/Motivation
On Drupal 9.5.10, CKEditor5, If I add "Augmentor Default Widget" to a content type node add form I see 3 event listeners attached to the Augmentor button (see screenshot) and 3 POST XHR requests are generated when the button is clicked. The XHR wait icon appears and is not removed.
Steps to reproduce
1. Enable Augmentor, Key, an Augmentor plugin such as NLPCloud Keyword extraction, enable for text format e.g. basic_html and add a field with "Augmentor Default Widget" to a content type. Open node add form for the appropriate content type. Inspect the button for javascript event listeners and/or XHR network requests.
Proposed resolution
Apply once() or similar debounce when subscribing event listeners?
Comment | File | Size | Author |
---|---|---|---|
#2 | Screenshot from 2024-04-30 14-37-14.png | 101.76 KB | eleonel |
Screen Shot 2023-07-28 at 1.53.53 PM.png | 41.85 KB | jonathan_hunt |
Comments
Comment #2
eleonelI can't replicate the issue using the latest version of the module. We refactored and improved the JS event handlers in the past months so we may fixed this already.