Hi,
When ever I am changing the text format it ends up in creation of some empty which I need to remove it. Following is an example to explain in what scenario it is normally creating this empty span tags:
I entered a text say "Hello" with text color as red and font size as 12 pt and font as Arial the code generated in source is:
<p><span style="color: #ff0000"><span style="font-size: 12pt"><span style="font-family: Arial">Hello</span></span></p>
If I change the above style to text color as Blue and font size as 10 pt and font as verdana the code generated in source is:
<p><span style="color:#0000ff"><span style="font-size: 10pt"><span style="font-family: Verdana">Hello</span>
</span><span style="color: #ff0000"><span style="font-size: 12pt"><span style="font-family: Arial">Hello</span></span>
</p>
As we are storing the data in database we do not want it to store unwanted empty span tags, I am using Fckeditor version 2.6.1
Please help and suggest me with a solution as it also results into another issue, I need to fix this soon.
Thanks in advance and looking forward for your replies.
Regards,
Mahendra
When ever I am changing the text format it ends up in creation of some empty which I need to remove it. Following is an example to explain in what scenario it is normally creating this empty span tags:
I entered a text say "Hello" with text color as red and font size as 12 pt and font as Arial the code generated in source is:
<p><span style="color: #ff0000"><span style="font-size: 12pt"><span style="font-family: Arial">Hello</span></span></p>
If I change the above style to text color as Blue and font size as 10 pt and font as verdana the code generated in source is:
<p><span style="color:#0000ff"><span style="font-size: 10pt"><span style="font-family: Verdana">Hello</span>
</span><span style="color: #ff0000"><span style="font-size: 12pt"><span style="font-family: Arial">Hello</span></span>
</p>
As we are storing the data in database we do not want it to store unwanted empty span tags, I am using Fckeditor version 2.6.1
Please help and suggest me with a solution as it also results into another issue, I need to fix this soon.
Thanks in advance and looking forward for your replies.
Regards,
Mahendra