Problem/Motivation
Drupal has removed the jQuery dependency from the once feature (https://www.drupal.org/node/3158256).
Even though Radix v4 mention it works with Drupal ^10.0, `text.js` has not been updated to use the new once API.
This cause the following error when opening a formatted text field:
```
Uncaught TypeError: $(...).find(...).once is not a function
```
Steps to reproduce
- Install Drupal 10.5.2 with Radix 4.15.0
- Open a formatted text editor in the layout builder
- Open the inspector console
Proposed resolution
Update `text.js` to use the new once API as documented by Drupal.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3543217-2.patch | 2.97 KB | franknoel |
Issue fork radix-3543217
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
franknoel commentedComment #3
doxigo commentedThanks frank, could you do me a favor and provide a MR and use let instead of var?
Comment #7
doxigo commentedThanks guys, merged without testing. let's hope for the best 🤞