I'm having issues using the content editor web part on publishing pages of a SharePoint 2010 site. I paste the following JavaScript into a CEWP:
<script>
$(document).ready(function () {
/* Show the column headers for the views of
the list named in the tables' summary attributes.
*/
$("table[summary*='Move list']").each(function(){
$(this).find("tr:eq(0)").show();
});
});
</script>
And it mangles it to this:
<script>
$(document).ready(function () {
/* Show the column headers for the views of
the list named in the tables' summary attributes.
*/
$("table[summary*='Move list']").each(function(){
$(this).find("t(0)").show();
});
});
</script>
Notice the .find()
has been changed. This is one of the less dramatic mangling done by the CEWP; I've had it rip entire chunks out of the code block.
Anyone know what causes this? Very annoying, and this happens with style
tags too.