i need to get rid of <span>
from
<span style="font-family: Arial;"><span style="color: rgb(255, 0, 0);">RED</span></span>
to
<FONT FACE="Arial" SIZE=3 COLOR="#FF0000">RED</FONT>
from
<span style="font-family: Arial;"><span style="color: rgb(255, 0, 0);">RED</span></span>
to
<FONT FACE="Arial" SIZE=3 COLOR="#FF0000">RED</FONT>
Re: <span> - get rid of it
this way i get rid of <p>
FCKConfig.EnterMode = 'div' ; // p | div | br
FCKConfig.ShiftEnterMode = 'div' ; // p | div | br
my fckconfig.js doesn't have a FCKConfig.GeckoUseSPAN but i typed and did nothing.
Font size i figure out
FCKConfig.FontSizes = '2;3;4;5' ;
'Size' :
{
Element : 'font',
Attributes : { 'size' : '#("Size","fontSize")' },
Overrides : [ { Element : 'font', Attributes : { 'SIZE' : null } } ]
},
Also with font family
'FontFace' :
{
Element : 'font',
Styles : { 'font-family' : '#("Font")' },
Overrides : [ { Element : 'font', Attributes : { 'face' : null } } ]
},
font color
'Color' :
{
Element : 'font',
Styles : { 'color' : '#("Color","color")' },
Overrides : [ { Element : 'font', Attributes : { 'COLOR' : null } } ]
},
but i need to change something else too, it comes this way
<font style="color: rgb(255, 0, 0);"><font size="4"><font style="font-family: Arial;"> TEST</font></font></font>
and i need
from
font style="color: rgb(255, 0, 0)
to
FONT FACE="Arial" COLOR="#FF0000"
and from
font style="font-family: Arial
to
FONT FACE="Arial"
Someone pls??
Re: <span> - get rid of it
Re: <span> - get rid of it
but i still have problems with justify, left, right, center, block

pls a help would be great
if i not able to fix this i won't be able to use fckeditor
Re: <span> - get rid of it
just i hint for who wants to help me

no tag with style will work for me
Re: <span> - get rid of it
We do similar things using regexps on the server side. Pretty complex piece of code. I am actually debgging it now, thats why I am here
We had no success with similar transformation on the browser side.
Re: <span> - get rid of it
i don't kown what is regexps but i will search about
Re: <span> - get rid of it
Re: <span> - get rid of it
From sample 15 i found good things but, when i use justify even there i got this
<p style="text-align: center"><font face="Courier New">TEST</font></p>
now i m testing fckeditor 2.4.3
and if i do the same thing a got it
<p align="center"><font face="Courier New">TEST</font></p>
that's what i need.
What should i do to make 2.6.3 output works just like 2.4.3 ?
Re: <span> - get rid of it
<html dir="ltr">
<head>
<title></title>
</head>
<body>
<p align="center"><font face="Tahoma" color="#339966" size="4">TEST</font></p>
</body>
</html>
With 2.4.3 when i use Firefox my code-source
<html dir="ltr">
<head>
</head>
<body spellcheck="false">
<div style="text-align: center; font-family: Tahoma; color: rgb(51, 153, 102);"><font size="4">TESTE</font></div>
</body>
</html>
i need just like the first one, with 2.6.3 using IE or Firefox
What should i do?
Re: <span> - get rid of it
With 2.6.3 when i use IE my code-source
<html dir="ltr">
<head>
<title></title>
</head>
<body>
<p style="text-align: center"><font color="#339966"><font size="4"><font face="Tahoma">TESTE</font></font></font></p>
</body>
</html>
With 2.6.3 when i use Firefox my code-source
<html dir="ltr">
<head>
<title></title>
</head>
<body>
<p style="text-align: center;"><font color="#339966"><font size="4"><font face="Tahoma">TEST</font></font></font></p>
</body>
</html>
Re: <span> - get rid of it
<p style="text-align: center;">
to
<p align="center">
where is it? i got this tag right only when i use 2.4.3 with IE
How can i change it?
Is there anyone from the project here?
Re: <span> - get rid of it
FCKConfig.JustifyClasses = [] ;
can i do something here? what?
Re: <span> - get rid of it
i receive the content on my class as String conteudo so i did it
conteudo = conteudo.replaceAll("style=\"text-align: center;\"", "align=\"center\"");
conteudo = conteudo.replaceAll("style=\"text-align: left;\"", "align=\"left\"");
conteudo = conteudo.replaceAll("style=\"text-align: right;\"", "align=\"right\"");
conteudo = conteudo.replaceAll("style=\"text-align: justify;\"", "align=\"justify\"");
it will work for me, but i feel sorry about FCKeditor because it does not do that for me.