Problem/Motivation

jQuery.once() is no longer a function in Drupal 10 and as a consequence, the module does not work at all really; it shows the floating Settings icon but clicking it has already been smashed by the following on page load...

Uncaught TypeError: $(...).find(...).once is not a function
    at Object.attach (cool_editor_tabs.js?v=1.x:9:48)
    at drupal.js?v=10.0.0-beta2:166:24
    at Array.forEach (<anonymous>)
    at Drupal.attachBehaviors (drupal.js?v=10.0.0-beta2:162:34)
    at drupal.init.js?v=10.0.0-beta2:32:12
    at HTMLDocument.listener (drupal.init.js?v=10.0.0-beta2:20:7)
drupal.js?v=10.0.0-beta2:64 Uncaught TypeError: $(...).find(...).once is not a function
    at Object.attach (cool_editor_tabs.js?v=1.x:9:48)
    at drupal.js?v=10.0.0-beta2:166:24
    at Array.forEach (<anonymous>)
    at Drupal.attachBehaviors (drupal.js?v=10.0.0-beta2:162:34)
    at big_pipe.js?v=10.0.0-beta2:98:14
    at Array.forEach (<anonymous>)
    at bigPipeProcessDocument (big_pipe.js?v=10.0.0-beta2:97:55)
    at big_pipe.js?v=10.0.0-beta2:121:12
drupal.js?v=10.0.0-beta2:64 Uncaught TypeError: $(...).find(...).once is not a function
    at Object.attach (cool_editor_tabs.js?v=1.x:9:48)
    at drupal.js?v=10.0.0-beta2:166:24
    at Array.forEach (<anonymous>)
    at Drupal.attachBehaviors (drupal.js?v=10.0.0-beta2:162:34)
    at HTMLUListElement.<anonymous> (ajax.js?v=10.0.0-beta2:1324:20)
    at Function.each (jquery.min.js?v=3.6.1:2:3003)
    at S.fn.init.each (jquery.min.js?v=3.6.1:2:1481)
    at Drupal.AjaxCommands.insert (ajax.js?v=10.0.0-beta2:1322:21)
    at ajax.js?v=10.0.0-beta2:996:41

I think this is likely due to line 9 of cool_editor_tabs.js file.

CommentFileSizeAuthor
#5 3320499-5.patch2.29 KBjeroent
Command icon 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

SirClickALot created an issue. See original summary.

dennis cohn’s picture

You're right. This module isn't compatible with D10.
I don't know how that got into the .info file.

Feel free to make a patch to make it compatible with D10.

JeroenT made their first commit to this issue’s fork.

jeroent’s picture

Status: Active » Needs review
StatusFileSize
new2.29 KB

Had the same problem. Patch attached (and MR) should fix this.

mistrae’s picture

Status: Needs review » Reviewed & tested by the community

Patch is working fine. Thanks.

dennis cohn’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.