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.
I have the Ace Editor running great on one Drupal 7.31 site, but on different 7.31 site that happens to be a multi-site, I get:
The Ace Editor JS library is missing, please check the README for installation instructions.
The readme says to extract and place the contents of the zip file under sites/all/libraries so that ace.js is located at sites/all/libraries/ace/src/ace.js
. What about multi-sites?
Comment | File | Size | Author |
---|---|---|---|
#7 | multi_site_libraries_path-2330383-7.patch | 554 bytes | mkhamash |
Comments
Comment #1
interdruper CreditAttribution: interdruper commentedCould you please test the last dev version in your multi-site environment ? Particularly the already committed patch #2270799: Not working when library is not in sites/all/libraries may fix your issue.
Comment #2
torotil CreditAttribution: torotil at more onion commentedThe newest dev-version works just fine for me. :)
[… with the library installed in sites/mysite/libraries/ace/src/…]
Comment #3
interdruper CreditAttribution: interdruper commentedComment #4
torotil CreditAttribution: torotil at more onion commentedSeems that there is something missing after all. In
ace_editor_library_installed()
sites/all is still hardcoded. Here is a patch for that.The patch also removes the unused function
ace_editor_include_installed()
.Comment #5
torotil CreditAttribution: torotil at more onion commentedComment #6
interdruper CreditAttribution: interdruper commentedComment #7
mkhamash CreditAttribution: mkhamash as a volunteer commentedThere is still a static path ("sites/all/libraries") hanging around in the latest dev in ace_editor_requirements hook implementation, I think this is the last one of them.
Comment #9
interdruper CreditAttribution: interdruper commented