Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello,
I had installed a new Drupal 10 site a few days ago and started using Ace Editor Module to highlight Javascript.
It all worked fine, used it until yesterday and now tody it no longer loads.
I just get a regular text editor.
I have attached a screenshot of the errors I see in the console because I have no clue where to start looking into this problem,
Any help is appreciated,
greetings,
Rob
Comment | File | Size | Author |
---|---|---|---|
#2 | add_drupal_editor_dependency.patch | 311 bytes | marioki |
Screenshot 2023-12-29 at 18.49.26.png | 482.93 KB | RobBNL |
Comments
Comment #2
marioki CreditAttribution: marioki as a volunteer commentedThis is an issue on some sites due to a missing dependency in libraries.yml.
Comment #3
dillix CreditAttribution: dillix commentedI tested this patch and it's works on beta2.
Comment #4
RobBNL CreditAttribution: RobBNL commentedHi,
Thanks for looking into this.
I was not sure how to apply the patch. I searched for procedures to apply it to the ace_editor files through a git command but with the examples I found on line I was getting different errors.
But when I looked at the syntax of the patch file I found that it just adds this line to the js dependencies:
- editor/drupal.editor
So I have manually added that line to the ace_editor.libraries.yml file and that works.
For anyone also applying this don't forget to clear your cache under Configuration - Performance.
Thanks for your support.
Rob