htmlArea

A directory of browser-based WYSIWYG editors

  MAIN
INDEX
SEARCH
POSTS
WHO'S
ONLINE
LOG
IN

Home: htmlArea 3 (beta): htmlArea 2 & 3 archive (read only): htmlArea v3.0 - Discussion:
[Patch] Fix for @import url() included style sheets


The htmlArea 2 & 3 editors have been discontinued.

We've made these forums available as a read-only reference and knowledge-base for people using or developing editors based on htmlArea 2 or 3.

Anyone who is interested in taking over version 2 or 3 is free to do so. All we ask is that you choose a new name that doesn't have "htmlarea" in it to avoid confusion with this site. We'll even give you a link in the directory to make it easier for people to find you. If you are developing or hosting an htmlArea based-editor under a new name, please submit it to our directory.

 


Hipikat
User

Feb 5, 2004, 8:50 PM

Post #1 of 2 (485 views)
Shortcut
[Patch] Fix for @import url() included style sheets Can't Post

I've found that, at least for the current gecko running under OS X, @imported style sheets have to come before the other style definitions in a <style/> tag, or they're ignored.

Thus,

Code
    html += "<style> html,body { border: 0px; } " + 
editor.config.pageStyle + "</style>\n";

breaks it, when I've got something like, say,

Code
    cfg.pageStyle = "@import url(<?=$stylesheet?>);\nbody { padding: 1em; }\n";

in my htmlArea setup.

No fear, the attached patch fixes this!.. Changing the above to:

Code
    html += "<style>" + editor.config.pageStyle + "\nhtml,body { border: 0px; }\n</style>\n";


Should I be sending patches like this to a QA guy somewhere? I'm not too familiar with the structure, organization and etiquette on this project (or any real world project, for that matter =O.o=)


(This post was edited by Hipikat on Feb 5, 2004, 8:54 PM)
Attachments: fiximportedcss040206.diff (1.04 KB)


OscarWilde
Novice

Feb 6, 2004, 3:08 AM

Post #2 of 2 (476 views)
Shortcut
Re: [Hipikat] [Patch] Fix for @import url() included style sheets [In reply to] Can't Post

Thanks a lot! You saved my life...Wink

cu

Frank

 
 
 


Search for (options)