Problem/Motivation
When add an library js thats depends on drupal.editor.admin only, this library don't declare dependency directly for core/underscore causing an exception.
Steps to reproduce
Create an library thats depends on drupal.editor.admin only and include in the page.
Proposed resolution
Add dependendy for core/underscore in drupal.editor.admin library.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | drupal_editor_admin_needs_declare_dependency_for_core_underscore-3263873-3.patch | 388 bytes | ljcarnieri |
Comments
Comment #2
ljcarnieri commentedComment #3
ljcarnieri commentedThe patch for fix the problem.
Comment #4
longwaveThanks for the patch. The closure shows that editor.admin.js uses underscore:
so the dependency should be added, and this patch is one line that does exactly that.
Comment #7
lauriiiCommitted 97ff906 and pushed to 10.0.x. Also cherry-picked to 9.4.x. Thanks!