I hope someone can help with a strange behaviour of the editor:
We use the editor for editing HTML email messages. For rendering reasons with web email clients (especially Gmail) it's necessary to put all style directives into the <body> section of the HTML source code instead of the <head> area (because they cut the head tags).
So a HTML email message would look like this:
<head>...</head>
<body>
<style ...> </style>
Contents...
</body>
For some reasons the editor always changes this and puts the styles directions back in the head section.
No matter where I put <style> in the body area of the source before - when I switch back from source view or save the message/file - <style> ... </style> will be put back in the <head> </head> section
Do you have any idea how to tell the editor to keep things where I have placed them in the source?
Thanks a lot,
Devics
Wed, 11/07/2007 - 01:41
#1
Re: How to keep <style> in the <body> area?
This line in fckconfig.js will protect the style tags from beeing touched by the editor:
FCKConfig.ProtectedSource.Add( /<style[sS]*?/style>/gi ) ; // <STYLE> tags.