The style tags tends to disappear on firefox.
I have users that upload HTML and then go to the WYSIWYG to make some minor changes. Within the HTML they upload a <style> tag. For some reason the editor deletes the <style> tag in Firefox. try going to http://www.fckeditor.net/demo click on the source button, paste the html below and then press the source button 2 more times. You will notice the <style> is gone. What can I do to keep these tags? Is there a way I can write a patch via javascript?
thanks.
Isaac
<!-- start HTML -->
<style>
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-color: #E5F7FF;
}
.style1 {font-family: Georgia, "Times New Roman", Times, serif}
.style2 {
font-size: 20px;
color: #503901;
font-weight: bold;
}
.style3 {
font-size: 18px;
color: #007e07;
font-weight: bold;
}
.style6 {color: #C10000; font-size: 24px;}
.style7 {font-size: 20px}
</style>
<!-- end HTML -->
Wed, 11/15/2006 - 17:07
#1
RE: <style> in firefox
FCKConfig.ProtectedSource.Add(/<style[\s\S]*?<\style>/gi) ;
The problem with this method is then the information inside the style tags gets ignored by the editor while the user is inside the WYSIWYG.
RE: <style> in firefox