Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
385
Changing font color - IE vs Chrome
posted

Hi,

We have been facing few issues around the HTML created when a font color is changed.

You can repro this in your demo page itself here - https://www.igniteui.com/html-editor/highlight-code

Steps - 

In IE - 

1. Select some text. Change the font color.

2. At the bottom of the editor, click on 'html ->' to check the html generated.

3. Notice that, font tags have been added with color attribute.

Example from demo page - 

Use the <font color="#ff0000">Insert </font>code <font color="#00b050">snippet </font>button {;} to paste your code.

In older version of html editor, the color was in RGB like. This RBG colors has been changed to Hex in Bug No 224051 (From 2015.2 release notes)

Use the <font color="rgb(0, 176, 80)">Insert </font>code <font color="rgb(255, 0, 0)">snippet </font>button {;} to paste your code.

In Chrome - 

1. Select some text. Change the font color.

2. At the bottom of the editor, click on 'html ->' to check the html generated.

3. Notice that, span tags have been added with color attribute.

Example from demo page - 

Use the <span style="color: rgb(0, 176, 80);">Insert</span> code <span style="color: rgb(255, 0, 0);">snippet</span> button {;} to paste your code.

So, The questions are - 

1. Why is the HTML different for IE and Crome ?

2. Every New line is added as a paragraph (<p>...</p>) in IE. The same is added as a div (<div>...</div>). Why ?

Is there anyway these can be made identical ?

I believe the demo version would be the latest and the issue still persists in latest version.

We are using vesion 13.2.

Any help is greatly appreciated.

Thanks & Regards,

Vaishnavi M G

Parents Reply Children
No Data