Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2006-01-30 15:39:36

chakal
Xinha Community Member
Registered: 2005-08-10
Posts: 18

trouble with external stylesheet

Hi,

I use pageStyleSheets to load an external stylesheet in the editor.
All work fine except for links colors under Firefox.

If editor is not active, links are good (for example in red) but if editor is active they switch to black.

When I try with 2 editors:
- if I activate the first one: links are good in the second
- if I activate the second one: links are good in the first

Idem if I use pageStyle.
Idem if I don't use any plugin or skin.
Idem if I delete all other stylesheets loaded.

So I think the problem is in htmlarea.js

Any idea ?

chaK!

Offline

#2 2006-02-06 04:26:33

gogo
Xinha Leader
From: New Zealand
Registered: 2005-02-11
Posts: 1,015
Website

Re: trouble with external stylesheet

I believe the browsers enforce link differentiation when in an editable area (such as Xinha)...ie it's not Xinha changing them, it's the browser.


James Sleeman

Offline

#3 2007-02-09 09:36:16

marcini
New member
Registered: 2005-12-30
Posts: 5

Re: trouble with external stylesheet

Hi!

I`m experiencing the same problem. Style for links is ok in IE, but not in Firefox.
Does anybody have a solution to this?

Last edited by marcini (2007-02-09 12:01:17)

Offline

#4 2007-02-09 09:52:17

jedi58
Xinha Authority
From: Leicester, UK
Registered: 2007-01-14
Posts: 113
Website

Re: trouble with external stylesheet

it could be how you're doing your CSS, if you style just the a, it needs to style a:visited as well. If each link state is style individually remember that they must be in the order of:

a:link
a:visited
a:hover
a:active

otherwise you are likely to get unexpected results in your browser.

There's also the case that stylesheets loaded by Xinha's pageStyles don't always appear to update because they are cached - if you make a change and it's not reflected in Xinha just clear your cache and refresh the page.


David G. Paul
[url]http://www.newearthonline.co.uk[/url]

Offline

#5 2007-02-13 03:49:04

marcini
New member
Registered: 2005-12-30
Posts: 5

Re: trouble with external stylesheet

Hi!

No, it's not the style construction (I have a, a:visited, a:hover) and not the cache.
Seems that Firefox doesn`t carry about my stylesheet and sets it`s own blue links (but all other elements are styled correctly). But why? Is there a way to handle it?

Offline

#6 2007-02-13 08:59:35

ray
Xinha Administrator
From: Germany
Registered: 2005-03-23
Posts: 521
Website

Re: trouble with external stylesheet

as gogo wrote: It's the browser. There's things that happen so deep in the engine that there is no way to change it

Offline

Board footer

Powered by FluxBB