--- a/includes/clientside/tinymce/plugins/fullpage/editor_plugin_src.js Mon Dec 21 15:41:05 2009 -0500
+++ b/includes/clientside/tinymce/plugins/fullpage/editor_plugin_src.js Tue Dec 22 13:09:59 2009 -0500
@@ -1,5 +1,5 @@
/**
- * $Id: editor_plugin_src.js 920 2008-09-09 14:05:33Z spocke $
+ * $Id: editor_plugin_src.js 1029 2009-02-24 22:32:21Z spocke $
*
* @author Moxiecode
* @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved.
@@ -82,6 +82,9 @@
_setContent : function(ed, o) {
var t = this, sp, ep, c = o.content, v, st = '';
+ if (o.source_view && ed.getParam('fullpage_hide_in_source_view'))
+ return;
+
// Parse out head, body and footer
c = c.replace(/<(\/?)BODY/gi, '<$1body');
sp = c.indexOf('<body');
@@ -133,7 +136,8 @@
_getContent : function(ed, o) {
var t = this;
- o.content = tinymce.trim(t.head) + '\n' + tinymce.trim(o.content) + '\n' + tinymce.trim(t.foot);
+ if (!o.source_view || !ed.getParam('fullpage_hide_in_source_view'))
+ o.content = tinymce.trim(t.head) + '\n' + tinymce.trim(o.content) + '\n' + tinymce.trim(t.foot);
}
});