css/widgContent.css Not Found

shadyman@errora... - February 11, 2007 - 20:32
Project:widgEditor - A WYSIWYG editor
Version:5.x-1.x-dev
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

I have Aggregate and compress CSS files enabled in Administer » Site configuration » Performance.

I am getting warnings in my log for comment/reply/css/widgContent.css File Not Found. Is it just me?

#1

Gurpartap Singh - February 11, 2007 - 21:20
Status:active» fixed

Probably aggressive mode side effect. You should change to Normal Caching, is feasible.

#2

Anonymous - February 25, 2007 - 21:30
Status:fixed» closed

#3

Tanc - November 15, 2007 - 06:36
Priority:minor» normal
Status:closed» active

I'd like to reopen this bug as I can confirm that the stylesheet for the content iframe textarea is not being loaded. This results in the browser displaying the default font (Times) for the textarea. I don't think this has anything to do with aggregating the stylesheet as it affects widgeditor with aggregation turned off (default install setting).

To get around this problem I have edited the widgStylesheet variable to point to the full path of the stylesheet. It would be much better if this was done automatically, but I don't know how in JS.

For example, the original in widgEditor.js:

/* Location of stylesheet file for editor content */
var widgStylesheet = "css/widgContent.css";

My altered version:

/* Location of stylesheet file for editor content */
var widgStylesheet = "/sites/all/modules/widgeditor/scripts/css/widgContent.css";

Any chance of a fix for this? It would be good if the JS could replace the path with something like Drupal's base_path() variable so as to avoid problems if the Drupal installation was not in the root www folder.

#4

Tanc - November 15, 2007 - 06:37
Title:comment/reply/css/widgContent.css Not Found» css/widgContent.css Not Found

Edited title to reflect problem

#5

dr00b - February 29, 2008 - 22:52

I can confirm that your change fixes the problem (thanks).

 
 

Drupal is a registered trademark of Dries Buytaert.