yui code pulls first in view->source when used remotely, but not locally
markoshust - June 5, 2009 - 14:36
| Project: | Yahoo YUI |
| Version: | 6.x-1.1-rc2 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | drupalhizmetleri |
| Status: | closed |
Jump to:
Description
i noticed this when using yui_editor with this module and enabled 'plugins' (view source and add table). when enabling these plugin images on yui editor did not load when yui was hosted locally, but did when yui was hosted remotely. the images did not show up because when yui was hosted remotely the yui files were loaded in code before other css files, but when local they were loaded later in the code. yui files must be loaded first before other code to function properly.
| Attachment | Size |
|---|---|
| patch.txt | 273 bytes |

#1
<?php
//line 100 must be changed to
drupal_set_html_head('<script type="text/javascript" src="/'.$yui_source.$file_and_path.'"></script>');
//line 130 must be changed to
drupal_set_html_head('<link rel="stylesheet" type="text/css" href="/'.$yui_source.$file_and_path.'"/>');
?>
#2
can you say what file needs to be modified?
#3
Thank you. I have applied your patch to dev version.
#4
Automatically closed -- issue fixed for 2 weeks with no activity.