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
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.

AttachmentSize
patch.txt273 bytes

#1

markoshust - June 5, 2009 - 14:36

<?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

juangabriel - July 8, 2009 - 18:57

can you say what file needs to be modified?

#3

drupalhizmetleri - August 1, 2009 - 08:29
Assigned to:Anonymous» drupalhizmetleri
Status:active» fixed

Thank you. I have applied your patch to dev version.

#4

System Message - August 15, 2009 - 08:30
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.