Active
Project:
Yahoo YUI
Version:
6.x-1.3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Sep 2010 at 07:28 UTC
Updated:
30 Sep 2011 at 03:17 UTC
Hello All,
This morning I upgraded to version 6.x-1.2, but YUI Editor stopped working altogether. Firefox reports a "YAHOO is not defined" error in a number of js scripts for that module.
I have reverted to the previous version of YUI for now.
Regards
Craig
Comments
Comment #1
davidc1969 commentedIt seems like when the
print $scriptsfires from the page.tpl.php file it does not pull the Yahoo DOM script before the java that initializes it.My solution was to find the script tag in the output source and to copy it and paste it into page.tpl.php file, so it looks like this:
Comment #2
coreyd commentedProblem with pasting that in is that I'm not sure the JS optimization will work properly. I got it to work fine in 1.3 by putting the head last in my page.tpl.php, like so:
My site is relatively simple; $head contains just the stuff that yuimenu puts there and the icon link, so this may not work for everyone. But all the js rolls up properly so I only have one js file and drupal tells me I can do aggressive page caching now.