Project

General

Profile

Actions

Bug #15597

closed

Font color in table

Added by old_araymond almost 19 years ago. Updated almost 19 years ago.

Status:
Closed
Priority:
Should have
Category:
RTE (rtehtmlarea + ckeditor)
Target version:
-
Start date:
2006-02-09
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

I try to use font color in the rtehtmlarea, version 1.1.6, demo config, on Mozilla Linux.
When use in a table, sometimes the color work sometimes it don't. I can't find the sequence to make it work every time because it seems that wathever I do, it can or can't work.
In the back end, it always show the good thing, even if sometimes I have to do it twice before the color appear after the save botton is hit. It's in the frontend that it does'nt work.

But for sure, in the source code there is something wrong. The color is affect to the cell and not to the font tag.

I always do the same action. Select text, choose color or font size, or both. But there's no magic ways to make it work.

<table class="htmlarea-showtableborders" style="border-style: solid; border-width: 1px; width: 100%;" cellpadding="1" cellspacing="1"><tbody><tr><td><font color="#ff0000"><span>Work</span></font></td><td><font color="#ff0000" size="6">Work</font></td></tr><tr><td style="color: rgb(255, 0, 0);"><font size="5">Don't work</font></td><td><font color="#ff0000" size="6">Work</font></td></tr></tbody></table>

(issue imported from #M2524)

Actions #1

Updated by Stanislas Rolland almost 19 years ago

What version of Mozilla? What version of htmlArea RTE? With what default configuration?

Normally, in order to set color, Mozilla would wrap the selected text with a span tag with a style attribute. However, if you select the cell itself, the style attribute will be added to the cell element.

Note that in the default processing options the style attribute is unset. You may modify this behavior with:
RTE.default.proc.entryHTMLparser_db.tags.span.fixAttrib.style.unset >
This will be added to the Demo default settings.

P.S. I noted a problem: Firefox will change its behavior as soon as you assign a font size or font face: therafter il will assign color to the selected text using a font tag instead of a span tag. Can you reproduce this problem?

Actions #2

Updated by old_araymond almost 19 years ago

Hi Stanislas,
I use Typo3 3.8.1
Firefox 1.5.0.1
Rtehtmlarea 1.1.6, deafult config

Finally, I retest and can not reproduce the problem again. It's seem that it append randomly or I do something different this time. It's a mistery. But I will give you feed back if it append again.

For your note about mozilla using font instead of span. It's really what it did for me.
But the result is working fine anyway.

Thanks

Actions #3

Updated by Stanislas Rolland almost 19 years ago

I like those problems that just disappear by themselves!

I will then close this issue and submit the browser bug to Mozilla.

Regards.

Actions

Also available in: Atom PDF