The address tag is a block level element and shouldn't be included in the paragraph tag. However, our templating system needs the paragraph because we don't control what our customers enter as their signatures. There are a number of instances where the address tag is used and we're getting complaints that their signature does not look right. Here is the sample code that I end up sending to CKEditor:
In Chrome and Firefox, the html is altered like so:
This is fine, except in IE 7-9, where the resulting html is:
Aside from scanning the html to detect an address tag within a paragraph, is there anything I can do so that CKEditor behaves the same in IE as it does in Chrome and FF? Thanks!
<p style="font-family: arial,sans-serif; font-size: 14px;"> <address> <strong style="font-size: 14px;">Johnny Sales</strong></address> <address> <span style="font-size: 14px;">Title</span></address> <address> <span style="font-size: 14px;">Company Name</span></address> <address> <span style="font-size: 14px;">800.555.1234</span></address> <address> <a href="mailto:johnny@email.com" style="font-size: 14px;">johnny@email.com</a></address> </p>
In Chrome and Firefox, the html is altered like so:
<p style="font-family: arial,sans-serif; font-size: 14px;"> </p> <address><strong style="font-size: 14px;">Johnny Sales</strong></address> <address><span style="font-size: 14px;">Title</span></address> <address><span style="font-size: 14px;">Company Name</span></address> <address><span style="font-size: 14px;">800.555.1234</span></address> <address><a href="mailto:johnny@email.com" style="font-size: 14px;">johnny@email.com</a></address> <p> </p>
This is fine, except in IE 7-9, where the resulting html is:
<p style="font-family: arial,sans-serif; font-size: 14px;"> <strong style="font-size: 14px;">Johnny Sales</strong> <span style="font-size: 14px;">Title</span> <span style="font-size: 14px;">Company Name</span> <span style="font-size: 14px;">800.555.1234</span> <a href="mailto:johnny@email.com" style="font-size: 14px;">johnny@email.com</a> </p>
Aside from scanning the html to detect an address tag within a paragraph, is there anything I can do so that CKEditor behaves the same in IE as it does in Chrome and FF? Thanks!
Re: Address tag is removed when in paragraph for IE only