_setContent : function(ed, o) {\r
var t = this, sp, ep, c = o.content, v, st = '';\r
\r
+ // Ignore raw updated if we already have a head, this will fix issues with undo/redo keeping the head/foot separate\r
+ if (o.format == 'raw' && t.head)\r
+ return;\r
+\r
if (o.source_view && ed.getParam('fullpage_hide_in_source_view'))\r
return;\r
\r