Post by maskcomp » Tue Jan 06, 2009 4:33 am

I'm having problems with my editor.

On the cart description page the information does not show what was typed in the editor. It will show the text, but not the text color or the double spacing.

Any suggestions?

New member

Posts

Joined
Mon Jan 05, 2009 5:43 am

Post by hm2k » Tue Jan 06, 2009 4:46 am

What browser are you using?

UK Web Hosting


User avatar
Global Moderator

Posts

Joined
Tue Mar 11, 2008 9:06 am
Location - UK

Post by Qphoria » Tue Jan 06, 2009 4:47 am

Confirmed on my dev site with FF3. Bold is there but font color is not.
Same on IE7

my source shows:

Code: Select all

<p><span style="color: rgb(0, 255, 0);"><span style="font-size: larger;"><span style="font-family: Comic Sans MS;"><strong>L'orem ipsum dolor sit amet, consectetuer adipiscing elit.</strong></span></span></span></p>
But the color and Font family are both not showing up. Only the strong and font-size is working.
In FCK it shows as it should.
Last edited by Qphoria on Tue Jan 06, 2009 4:54 am, edited 1 time in total.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by maskcomp » Tue Jan 06, 2009 5:01 am

I'm using IE6

New member

Posts

Joined
Mon Jan 05, 2009 5:43 am

Post by Qphoria » Tue Jan 06, 2009 5:16 am

Tried with TinyMCE too. same issue.

It seems that if you do color first, then bold.. it shows color
if you do bold then color, it shows bold

But on the admin side it shows fine. Why does the front not show?

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by bruce » Tue Jan 06, 2009 7:33 am

Hi Q,

In the example html that you posted, line 22 of default.css (shown below) is effectively killing off any effects normally produced by the strong tag.

Code: Select all

b, strong, th 
{
    color: #000000;
}

Active Member

Posts

Joined
Wed Dec 12, 2007 2:26 pm

Post by Qphoria » Tue Jan 06, 2009 8:45 am

ahh good eyes my friend. Thanks!

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by fido-x » Tue Jan 06, 2009 10:00 am

Another issue here that everybody seems to be overlooking, is the font that has been chosen, ie. Comic Sans MS. What does the "MS" stand for? Think about it. This is a proprietary font, subsequently, not everybody has it.

It's all very well to make the product descriptions look pretty with some fancy font, but if it is not going to display in your client's browser, what is the purpose of using it?

Image
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool

If you're not living on the edge ... you're taking up too much space!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia

Post by Qphoria » Tue Jan 06, 2009 10:21 am

also forgetting that comic sans is soooo 1997  8)

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by maskcomp » Tue Jan 06, 2009 1:04 pm

So how do we solve the editor problem? If we need another editor I have one that I'm using in another program we could use.

New member

Posts

Joined
Mon Jan 05, 2009 5:43 am

Post by Qphoria » Tue Jan 06, 2009 1:06 pm

There's nothing wrong with the editor.
As bruce said, there is a conflicting CSS value. Just need to edit the CSS and correct it tho I'm not sure if that means just deleting the "strong" reference from the stylesheet or adding further qualifiers for it.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Active Member

Posts

Joined
Wed Sep 03, 2008 11:33 am
Location - Canada

Post by Qphoria » Tue Jan 06, 2009 10:06 pm

following a certain order is not a solution. wysiwyg is not supposed to make this more difficult by instilling rules. the problem is definitely css overriding.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by bthirsk » Wed Jan 07, 2009 12:51 am

Sorry, but I thought inline Css had priority over attached Style sheets.

As far as the editor, it does not seem to care about the order.
As you said, it shows the color and bold.

It is the browser that cares. All I know is, You can not embed a tag such as
bold or italic inside a span tag. If you do, browsers don't seem to interpret the span tag.

I didn't make the CSS standards, just have to live by them.

And yes, I use Bold and or color on over 1100 items.

Brent


Active Member

Posts

Joined
Wed Sep 03, 2008 11:33 am
Location - Canada

Post by Qphoria » Wed Jan 07, 2009 1:03 am

This has been fixed in the latest SVN and will be in RC6

Attachments

???
product_font_catalog.jpg
???
product_font_admin.jpg
Last edited by Qphoria on Wed Jan 07, 2009 1:28 am, edited 1 time in total.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am
Who is online

Users browsing this forum: No registered users and 1 guest